Skip to main content
POST
/
api
/
trigger
/
{source}
/
{triggerId}
cURL
curl --request POST \
  --url https://app.cotool.ai/api/trigger/{source}/{triggerId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '"<any>"'
{
  "executionId": "<string>"
}

Authorizations

Authorization
string
header
required

API Key authentication for programmatic access. Include your API key in the Authorization header as: Bearer your_api_key_here

Path Parameters

source
enum<string>
required

Source system sending the webhook (jira, slack, linear, or webhook)

Available options:
jira,
slack,
linear,
webhook
triggerId
string<uuid>
required

Unique identifier of the trigger to invoke

Body

application/json · any

Body of the webhook request. This can be any value, and it will be passed as input to the agent.

Response

200 - application/json

Successful response

  • Option 1
  • Option 2
  • Option 3

Response from webhook trigger containing execution ID, skip message, or error message Response from webhook trigger containing execution ID. Use this to retrieve the execution status of the agent.

executionId
string
required

Unique identifier for the agent execution