Functions API
Serverless function deployment and invocation
REST API endpoints for Functions. 8 operations.
List functions
GET /v1/functionsReturns all serverless functions for the caller's project.
Auth: Bearer API key
Responses
| Status | Description |
|---|---|
200 | Function list |
401 | Missing or invalid API key |
500 | Internal error |
operationId: listFunctions
Create a function
POST /v1/functionsDeploys a serverless function and returns the created function.
Auth: Bearer API key
Request body
application/json (required) — schema FunctionDeployRequest.
Responses
| Status | Description |
|---|---|
201 | Function created |
401 | Missing or invalid API key |
500 | Internal error |
operationId: createFunction
Delete a function
DELETE /v1/functions/{id}Removes a serverless function by id or name.
Auth: Bearer API key
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | Yes | Function id or name |
Responses
| Status | Description |
|---|---|
200 | Function deleted |
401 | Missing or invalid API key |
500 | Internal error |
operationId: deleteFunction
Get a function
GET /v1/functions/{id}Returns a single serverless function by id or name.
Auth: Bearer API key
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | Yes | Function id or name |
Responses
| Status | Description |
|---|---|
200 | Function details |
401 | Missing or invalid API key |
500 | Internal error |
operationId: getFunction
Update a function
PUT /v1/functions/{id}Redeploys a serverless function with a new configuration.
Auth: Bearer API key
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | Yes | Function id or name |
Request body
application/json (required) — schema FunctionDeployRequest.
Responses
| Status | Description |
|---|---|
200 | Function updated |
401 | Missing or invalid API key |
500 | Internal error |
operationId: updateFunction
List function invocations
GET /v1/functions/{id}/invocationsReturns the invocation history for a serverless function.
Auth: Bearer API key
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | Yes | Function id or name |
Responses
| Status | Description |
|---|---|
200 | Invocation history |
401 | Missing or invalid API key |
500 | Internal error |
operationId: listFunctionInvocations
Invoke a function
POST /v1/functions/{id}/invokeInvokes a serverless function with the supplied payload and returns its result.
Auth: Bearer API key
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | Yes | Function id or name |
Request body
application/json (required) — schema object.
Responses
| Status | Description |
|---|---|
200 | Invocation result |
401 | Missing or invalid API key |
500 | Internal error |
operationId: invokeFunction
Get function logs
GET /v1/functions/{id}/logsReturns log output for a serverless function.
Auth: Bearer API key
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | Yes | Function id or name |
Responses
| Status | Description |
|---|---|
200 | Function logs |
401 | Missing or invalid API key |
500 | Internal error |
operationId: getFunctionLogs