Skip to main content
PUT
/
api
/
output-destinations
/
{destinationId}
cURL
curl -X PUT "https://app.cotool.ai/api/output-destinations/:destinationId" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"string","url":"string","authType":"bearer","headerName":"string","token":"string","type":"webhook"}'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "organizationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "name": "<string>",
  "createdAt": "<string>",
  "updatedAt": "<string>",
  "type": "<string>",
  "config": {
    "url": "<string>",
    "authType": "bearer",
    "headerName": "<string>"
  },
  "usageCount": 123,
  "token": "<string>",
  "hasToken": true
}

Documentation Index

Fetch the complete documentation index at: https://docs.cotool.ai/llms.txt

Use this file to discover all available pages before exploring further.

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

destinationId
string<uuid>
required

Body

application/json
type
string
required
Allowed value: "webhook"
name
string

Human-readable name for this destination

Required string length: 1 - 255
url
string<uri>

The webhook URL to POST to

authType
enum<string>

Type of authentication

Available options:
bearer,
header
headerName
string

Custom header name when authType is "header"

token
string

The authentication token (leave undefined to keep existing)

Response

200 - application/json

Successful response

id
string<uuid>
required

Unique identifier for the destination

organizationId
string<uuid>
required

Organization that owns this destination

name
string
required

Human-readable name for this destination

Required string length: 1 - 255
createdAt
string
required

When the destination was created

updatedAt
string
required

When the destination was last updated

type
string
required
Allowed value: "webhook"
config
object
required
usageCount
number
required

Number of detections using this destination

token
string

The authentication token (only returned to authorized users)

hasToken
boolean

Whether a token is configured