# Func call

```
GET/POST/PUT/DELETE https://$region.hyperfunc.io/call/$name/$uuid[/sync]

{payload}
```

Call a function (by default the call is asynchronous, add the `/sync` parameter for synchronous call).

**The endpoint should be** `$region.hyperfunc.io`**, and no signature authentication requirements.**

**Example call**:

```
POST https://us-west-1.hyperfunc.io/call/helloworld/e62c014e-386c-42ea-8d07-41d44e98cc3d HTTP/1.1

Hello
```

**Example response**:

```
HTTP/1.1 200 OK
Content-Type: application/json

{
  "CallId": "218b7b10-e7f1-4c48-ac3c-66792f8ffc06"
}
```

**URL parameters**:

* $region - Supported region.
* $name - The function name.
* $uuid - The uuid of func.
* /sync - Block until the function call has completed.

**Json parameters**:

* CallId - The call id of a function call.

**Status Codes**:

* 200 - no error
* 404 - no such function
* 413 - request entity too large
* 500 - server error
* If the `/sync` parameter is used: same status codes as with the [get](https://hyperhq.gitbook.io/docs-hyper-sh/index-2/index-1/index/index-11/get) endpoint.

**Notes**

* The finished/failed function call will be removed once the api with `/sync` parameter is successfully called.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://hyperhq.gitbook.io/docs-hyper-sh/index-2/index-1/index/index-11/call.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
