Skip to main content
POST
Create an event endpoint: subscribe an HTTPS address to signed events.
Scope: events:endpoints:write. See API Tokens.

Authorizations

Authorization
string
header
required

CloudThinker token: a personal access token ct_pat_… (fine-grained scopes, created in Settings) or an OAuth access token ct_oat_… (1 hour, from the OAuth flow). Send Authorization: Bearer <token>. Scopes have the form module:resource:read|write; write includes read.

Headers

Idempotency-Key
string
required

Unique per logical write. A retry with the same key and body returns the first result.

Required string length: 1 - 255

Path Parameters

workspace_id
string<uuid>
required

Workspace to act in. Every call names it.

Body

application/json

Address and events to subscribe.

url
string
required

Public HTTPS address.

Required string length: 1 - 2048
event_types
enum<string>[]
required
Minimum array length: 1
Available options:
incident.opened,
investigation.completed,
fix.proposed,
approval.requested,
run.finished
description
string | null
Maximum string length: 500
enabled
boolean
default:true

Response

Created

The new endpoint and its signing secret.

id
string<uuid>
required
url
string
required

HTTPS address that receives events.

description
string | null
required
event_types
enum<string>[]
required

Events sent to this endpoint.

Available options:
incident.opened,
investigation.completed,
fix.proposed,
approval.requested,
run.finished
enabled
boolean
required
created_at
string<date-time>
required
updated_at
string<date-time>
required
secret
string
required

Signing secret, starting whsec_. Shown only once.