Skip to main content
GET
/
api
/
agents
/
{agentId}
/
trigger
/
{source}
/
fields
cURL
curl --request GET \
  --url https://app.cotool.ai/api/agents/{agentId}/trigger/{source}/fields \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "data": {
    "secret": "<string>",
    "webhookUrl": "<string>",
    "additionalFields": {
      "type": "jira",
      "jiraUrl": "<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

agentId
string<uuid>
required

Unique identifier of the agent

source
string
required

Source type for the trigger (e.g., jira, slack, linear)

Response

200 - application/json

Successful response

Response containing webhook configuration fields for external service setup

success
boolean
required

Whether the webhook fields were generated successfully

data
object
required

Webhook configuration data