Skip to main content
POST
/
webhook-endpoints
Create Webhook Endpoint
curl --request POST \
  --url https://api.flightlinehq.com/v1/webhook-endpoints \
  --header 'Content-Type: application/json' \
  --data '
{
  "url": "<string>",
  "description": "<string>"
}
'
{
  "created_at": "2023-11-07T05:31:56Z",
  "enabled": true,
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "secret_hint": "<string>",
  "signing_secret": "<string>",
  "url": "<string>",
  "description": "<string>"
}

Headers

authorization
string | null
X-Api-Key
string | null

Body

application/json

Body for POST /webhook-endpoints.

url
string
required

HTTPS URL Flightline will POST signed event notifications to.

Required string length: 1 - 4000
description
string | null
Maximum string length: 500

Response

Successful Response

The POST /webhook-endpoints response.

Extends the resource with the full signing_secret — returned exactly once, at creation, and never retrievable again.

created_at
string<date-time>
required
enabled
boolean
required
id
string<uuid>
required
secret_hint
string
required

Masked tail of the signing secret, e.g. 'whsec_…a1b2'. Not the secret.

signing_secret
string
required

The signing secret. Shown once — store it now; it cannot be retrieved later.

url
string
required
description
string | null