curl --request POST \
--url https://api.airtop.ai/api/hooks/agents/{agentId}/webhooks/{webhookId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"configVars": {
"slackChannel": "#general"
},
"callbackConfig": {
"url": "<string>",
"headers": {}
}
}
'{
"invocationId": "<string>"
}Triggers an agent execution via webhook. You can optionally provide configuration variables and a callback URL.
curl --request POST \
--url https://api.airtop.ai/api/hooks/agents/{agentId}/webhooks/{webhookId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"configVars": {
"slackChannel": "#general"
},
"callbackConfig": {
"url": "<string>",
"headers": {}
}
}
'{
"invocationId": "<string>"
}Enter your API Key. You can generate one at https://portal.airtop.ai/api-keys.
The unique identifier of the agent
The unique identifier of the webhook
Agent triggered successfully
Unique identifier for the agent invocation
Was this page helpful?