Invoke resource

POST/v1/servers/{serverId}/invoke

Invoke a deployed function or HTTP resource by forwarding an HTTP request to its service URL.

How to call this endpoint

Every ACP API request uses bearer authentication. The examples here show the actual request path, auth header, and body shape that the platform expects.

Path, query, and header parameters

These parameters control which ACP object the endpoint acts on and how the request is processed.

Path parameters
NameLocationTypeRequiredDescription
serverIdpathstringYesResource ID
Query parameters
None.

Body schema

Content type: application/json · Optional

FieldTypeRequiredDescription
methodGET | POST | PUT | PATCH | DELETENo
pathstringNoWorkspace-relative file path.
bodyobjectNo
expectedRevisionstringNoOptional immutable deployment revision. Invocation fails with 409 if the currently deployed function no longer matches it.

What the API returns

Each response code below includes the documented payload shape for the ACP API.

200Invocation resultapplication/json
FieldTypeRequiredDescription
statusintegerNoCurrent lifecycle status.
okbooleanNo
urlstringNo
bodyobjectNo
textstringNo
headersobjectNo
deploymentRevisionstringNo
Invoke resource
Loading...
Response 200
Loading...
See the ACP quickstart and SDK flow