Skip to main content
GET
/
api
/
agents
/
{agentId}
/
trigger
/
{source}
/
fields
cURL
curl -X GET "https://app.cotool.ai/api/agents/:agentId/trigger/:source/fields" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json"
{
  "success": true,
  "data": {
    "secret": "<string>",
    "webhookUrl": "<string>",
    "additionalFields": {
      "type": "<string>",
      "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