Invoke a registered AT Function
Input
Encoding
application/jsonfunction
string
Required
at:// URI of the at.functions.metadata record
input
unknown
Required
JSON input passed to the function
Output
Encoding
application/jsondurationMs
integer
Optional
Wall-clock execution time in milliseconds
error
string
Optional
Error message if execution failed
functionCid
string
Optional
CID of the function record
ok
boolean
Required
Whether execution succeeded
output
unknown
Optional
JSON output from the function
Try It
Requests are sent directly from your browser. Some servers may block requests due to CORS.
View raw schema
{
"type": "procedure",
"input": {
"schema": {
"type": "object",
"required": [
"function",
"input"
],
"properties": {
"input": {
"type": "unknown",
"description": "JSON input passed to the function"
},
"function": {
"type": "string",
"description": "at:// URI of the at.functions.metadata record"
}
}
},
"encoding": "application/json"
},
"output": {
"schema": {
"type": "object",
"required": [
"ok"
],
"properties": {
"ok": {
"type": "boolean",
"description": "Whether execution succeeded"
},
"error": {
"type": "string",
"description": "Error message if execution failed"
},
"output": {
"type": "unknown",
"description": "JSON output from the function"
},
"durationMs": {
"type": "integer",
"description": "Wall-clock execution time in milliseconds"
},
"functionCid": {
"type": "string",
"description": "CID of the function record"
}
}
},
"encoding": "application/json"
},
"description": "Invoke a registered AT Function"
}