Transform
Invoke Function
Invoke function.
POST
/
functions
/
{functionName}
/
invocations
This functionality is available on Cloud and Enterprise plans.
curl --request POST \
--url https://functions.cloud.us.stedi.com/2021-11-16/functions/{functionName}/invocations \
--header 'Authorization: Key {STEDI_API_KEY}' \
--data '{"message":"Hello, world!"}'
eyJldmVudCI6e319%
Headers
Content-Type
string
X-Amz-Invocation-Type
enum<string>
Specify 'Event' for asynchronous invocation. The default invocation type is 'RequestResponse' (or synchronous) Asynchronous invocations can have a request body payload up to 256KB.
Available options:
RequestResponse
, Event
Path Parameters
functionNamerequired
string
Body
application/octet-stream ยท string
The input data that you want to provide during execution.
Response
200 - application/octet-stream
The response from the execution, or an error object.
Was this page helpful?
curl --request POST \
--url https://functions.cloud.us.stedi.com/2021-11-16/functions/{functionName}/invocations \
--header 'Authorization: Key {STEDI_API_KEY}' \
--data '{"message":"Hello, world!"}'
eyJldmVudCI6e319%