Skip to content

Webhooks API reference

Outbound webhook notifications and deliveries. 6 endpoints, each with its scope, parameters, answers and an example call.

6 endpointsBearer keyhttps://falconproxy.com/api/v1

Receiving events

FalconProxy sends events for changes made through the API. Each event is a POST request with a JSON body to every active endpoint that subscribed to it.

http
POST /your/webhook/path HTTP/1.1
Content-Type: application/json
User-Agent: FalconProxy-Webhooks/1.0
Falcon-Signature: t=1768478400,v1=HEX_SIGNATURE

{
  "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "event": "proxy.assigned",
  "created_at": "2026-01-15T12:00:00.000Z",
  "data": {
    "proxy_endpoint_id": "9b2c1f0e-4d3a-4c8e-9f1a-2b7d6e5c4a31",
    "end_user_id": "c1d2e3f4-a5b6-4c7d-8e9f-0a1b2c3d4e5f"
  }
}

Answer with a 2xx status within 10 seconds: any other status, or no answer, is recorded as a failed delivery. Redirects are not followed, so register the URL that answers. An event is sent once and a failed delivery is not retried, so acknowledge quickly, do the work afterwards, and read the current state through the API to catch up after any downtime.

Verify the signature

Each request carries a Falcon-Signature header, t=<unix seconds>,v1=<hex>. The value of v1 is the HMAC-SHA256 of the timestamp, a dot and the raw request body, in hex, keyed with the endpoint’s secret. The secret starts with whsec_ and is returned once, when the endpoint is created, so store it then.

javascript
import { createHmac, timingSafeEqual } from 'node:crypto'

// rawBody is the request body exactly as received, before any JSON parsing.
export function isFromFalconProxy(rawBody, signatureHeader, secret) {
  const parts = Object.fromEntries(signatureHeader.split(',').map((part) => part.split('=')))
  if (!parts.t || typeof parts.v1 !== 'string') return false

  const age = Math.abs(Date.now() / 1000 - Number(parts.t))
  if (!(age <= 300)) return false

  const expected = createHmac('sha256', secret).update(`${parts.t}.${rawBody}`).digest('hex')
  const received = Buffer.from(parts.v1)
  const wanted = Buffer.from(expected)
  return received.length === wanted.length && timingSafeEqual(received, wanted)
}

Reject a request whose timestamp is more than 5 minutes from your clock, and compare the signatures in constant time, as above.

Event types

Webhook event types, when each is sent and what its data holds
EventSent whenData
user.createdAn end-user is created.user
user.updatedAn end-user is updated.user
user.deletedAn end-user is deleted. The record is archived, not erased.user_id, archived
user.status_changedAn end-user’s status changes.user, previous_status, reason
proxy.assignedA proxy is assigned to an end-user.proxy_endpoint_id, end_user_id
proxy.unassignedA proxy is unassigned from an end-user.proxy_endpoint_id, end_user_id
proxy.rotatedThe relay accepts a request to rotate a proxy’s IP. The event is sent when the rotation starts, not when the new IP is known, and it does not carry the new IP: details is the relay’s answer to the request.proxy_endpoint_id, device_id, details
pingYou test an endpoint.message, endpoint_id, org_id

GET/webhooks

List webhook endpoints

Returns all configured outbound webhook endpoints for this organization.

Requires the webhooks:manage scope and an active subscription.

Responses

Responses of List webhook endpoints
StatusMeaning
200List of webhook endpoints.
401Missing, invalid, expired, or revoked API token.
402The subscription is inactive. Reading is allowed, but mutating actions require an active subscription.
403The token lacks a required scope.

Response body (200)

Response 200 fields of List webhook endpoints
FieldTypeDescription
endpointsarray of objectsYour webhook endpoints.
endpoints[].idstring (uuid)Webhook endpoint id.
endpoints[].urlstring (uri)The HTTPS address events are delivered to.
endpoints[].descriptionstring or nullYour note about what the endpoint is for.
endpoints[].eventsarray of "user.created" | "user.updated" | "user.deleted" | "user.status_changed" | "proxy.assigned" | "proxy.unassigned" | "proxy.rotated" | "ping"The event types the endpoint receives.
endpoints[].is_activebooleanWhether events are delivered to the endpoint.
endpoints[].secretstringHMAC-SHA256 signing secret. Returned only once upon endpoint creation.
endpoints[].created_atstringISO 8601 timestamp.
endpoints[].updated_atstringISO 8601 timestamp.
json
{
  "endpoints": [
    {
      "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "url": "https://example.com/webhooks/falconproxy",
      "description": "string",
      "events": [
        "user.created"
      ],
      "is_active": true,
      "secret": "string",
      "created_at": "2026-01-15T12:00:00Z",
      "updated_at": "2026-01-15T12:00:00Z"
    }
  ]
}

Example request

curl
curl "https://falconproxy.com/api/v1/webhooks" \
  -H "Authorization: Bearer $FALCONPROXY_API_KEY"

POST/webhooks

Create webhook endpoint

Registers a new outbound webhook endpoint and generates an HMAC signing secret.

Requires the webhooks:manage scope and an active subscription.

Request body

Request body fields of Create webhook endpoint
FieldTypeDescription
urlrequiredstring (uri)HTTPS destination URL for webhook delivery.
descriptionstring (max 255 characters)Your note about what the endpoint is for, up to 255 characters.
eventsrequiredarray of "user.created" | "user.updated" | "user.deleted" | "user.status_changed" | "proxy.assigned" | "proxy.unassigned" | "proxy.rotated" | "ping" (min 1 item)List of event types to subscribe to.
metadataobjectA JSON object of your own.
json
{
  "url": "https://example.com/webhooks/falconproxy",
  "description": "string",
  "events": [
    "user.created"
  ],
  "metadata": {}
}

Responses

Responses of Create webhook endpoint
StatusMeaning
201Webhook endpoint created.
401Missing, invalid, expired, or revoked API token.
402The subscription is inactive. Reading is allowed, but mutating actions require an active subscription.
403The token lacks a required scope.
404The resource does not exist or is not visible to this token.

Response body (201)

Response 201 fields of Create webhook endpoint
FieldTypeDescription
endpointobjectConfigured outbound webhook destination.
endpoint.idstring (uuid)Webhook endpoint id.
endpoint.urlstring (uri)The HTTPS address events are delivered to.
endpoint.descriptionstring or nullYour note about what the endpoint is for.
endpoint.eventsarray of "user.created" | "user.updated" | "user.deleted" | "user.status_changed" | "proxy.assigned" | "proxy.unassigned" | "proxy.rotated" | "ping"The event types the endpoint receives.
endpoint.is_activebooleanWhether events are delivered to the endpoint.
endpoint.secretstringHMAC-SHA256 signing secret. Returned only once upon endpoint creation.
endpoint.created_atstringISO 8601 timestamp.
endpoint.updated_atstringISO 8601 timestamp.
json
{
  "endpoint": {
    "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "url": "https://example.com/webhooks/falconproxy",
    "description": "string",
    "events": [
      "user.created"
    ],
    "is_active": true,
    "secret": "string",
    "created_at": "2026-01-15T12:00:00Z",
    "updated_at": "2026-01-15T12:00:00Z"
  }
}

Example request

curl
curl -X POST "https://falconproxy.com/api/v1/webhooks" \
  -H "Authorization: Bearer $FALCONPROXY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "url": "https://example.com/webhooks/falconproxy",
    "description": "string",
    "events": [
      "user.created"
    ],
    "metadata": {}
  }'

GET/webhooks/{id}

Get webhook endpoint

Returns webhook endpoint configuration and recent deliveries.

Requires the webhooks:manage scope and an active subscription.

Parameters

Parameters of Get webhook endpoint
NameInTypeDescription
idrequiredpathstring (uuid)Webhook endpoint UUID.

Responses

Responses of Get webhook endpoint
StatusMeaning
200Webhook endpoint details.
401Missing, invalid, expired, or revoked API token.
402The subscription is inactive. Reading is allowed, but mutating actions require an active subscription.
403The token lacks a required scope.
404The resource does not exist or is not visible to this token.

Response body (200)

Response 200 fields of Get webhook endpoint
FieldTypeDescription
endpointobjectConfigured outbound webhook destination.
endpoint.idstring (uuid)Webhook endpoint id.
endpoint.urlstring (uri)The HTTPS address events are delivered to.
endpoint.descriptionstring or nullYour note about what the endpoint is for.
endpoint.eventsarray of "user.created" | "user.updated" | "user.deleted" | "user.status_changed" | "proxy.assigned" | "proxy.unassigned" | "proxy.rotated" | "ping"The event types the endpoint receives.
endpoint.is_activebooleanWhether events are delivered to the endpoint.
endpoint.secretstringHMAC-SHA256 signing secret. Returned only once upon endpoint creation.
endpoint.created_atstringISO 8601 timestamp.
endpoint.updated_atstringISO 8601 timestamp.
json
{
  "endpoint": {
    "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "url": "https://example.com/webhooks/falconproxy",
    "description": "string",
    "events": [
      "user.created"
    ],
    "is_active": true,
    "secret": "string",
    "created_at": "2026-01-15T12:00:00Z",
    "updated_at": "2026-01-15T12:00:00Z"
  }
}

Example request

curl
curl "https://falconproxy.com/api/v1/webhooks/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
  -H "Authorization: Bearer $FALCONPROXY_API_KEY"

PATCH/webhooks/{id}

Update webhook endpoint

Updates destination URL, event subscriptions, or active status.

Requires the webhooks:manage scope and an active subscription.

Parameters

Parameters of Update webhook endpoint
NameInTypeDescription
idrequiredpathstring (uuid)Webhook endpoint UUID.

Request body

Request body fields of Update webhook endpoint
FieldTypeDescription
urlstring (uri)The HTTPS address events are delivered to.
descriptionstring (max 255 characters) or nullYour note about what the endpoint is for, up to 255 characters.
eventsarray of "user.created" | "user.updated" | "user.deleted" | "user.status_changed" | "proxy.assigned" | "proxy.unassigned" | "proxy.rotated" | "ping" (min 1 item)The event types to receive. Replaces the current list.
is_activebooleanSwitch delivery on or off.
metadataobjectA JSON object of your own.
json
{
  "url": "https://example.com/webhooks/falconproxy",
  "description": "string",
  "events": [
    "user.created"
  ],
  "is_active": true,
  "metadata": {}
}

Responses

Responses of Update webhook endpoint
StatusMeaning
200Webhook endpoint updated.
401Missing, invalid, expired, or revoked API token.
402The subscription is inactive. Reading is allowed, but mutating actions require an active subscription.
403The token lacks a required scope.
404The resource does not exist or is not visible to this token.

Response body (200)

Response 200 fields of Update webhook endpoint
FieldTypeDescription
endpointobjectConfigured outbound webhook destination.
endpoint.idstring (uuid)Webhook endpoint id.
endpoint.urlstring (uri)The HTTPS address events are delivered to.
endpoint.descriptionstring or nullYour note about what the endpoint is for.
endpoint.eventsarray of "user.created" | "user.updated" | "user.deleted" | "user.status_changed" | "proxy.assigned" | "proxy.unassigned" | "proxy.rotated" | "ping"The event types the endpoint receives.
endpoint.is_activebooleanWhether events are delivered to the endpoint.
endpoint.secretstringHMAC-SHA256 signing secret. Returned only once upon endpoint creation.
endpoint.created_atstringISO 8601 timestamp.
endpoint.updated_atstringISO 8601 timestamp.
json
{
  "endpoint": {
    "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "url": "https://example.com/webhooks/falconproxy",
    "description": "string",
    "events": [
      "user.created"
    ],
    "is_active": true,
    "secret": "string",
    "created_at": "2026-01-15T12:00:00Z",
    "updated_at": "2026-01-15T12:00:00Z"
  }
}

Example request

curl
curl -X PATCH "https://falconproxy.com/api/v1/webhooks/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
  -H "Authorization: Bearer $FALCONPROXY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "url": "https://example.com/webhooks/falconproxy",
    "description": "string",
    "events": [
      "user.created"
    ],
    "is_active": true,
    "metadata": {}
  }'

DELETE/webhooks/{id}

Delete webhook endpoint

Deletes a webhook endpoint.

Requires the webhooks:manage scope and an active subscription.

Parameters

Parameters of Delete webhook endpoint
NameInTypeDescription
idrequiredpathstring (uuid)Webhook endpoint UUID.

Responses

Responses of Delete webhook endpoint
StatusMeaning
200Webhook endpoint deleted.
401Missing, invalid, expired, or revoked API token.
402The subscription is inactive. Reading is allowed, but mutating actions require an active subscription.
403The token lacks a required scope.
404The resource does not exist or is not visible to this token.

Response body (200)

Response 200 fields of Delete webhook endpoint
FieldTypeDescription
successbooleanTrue when the endpoint was deleted.
deletedstringId of the endpoint that was deleted.
json
{
  "success": true,
  "deleted": "string"
}

Example request

curl
curl -X DELETE "https://falconproxy.com/api/v1/webhooks/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
  -H "Authorization: Bearer $FALCONPROXY_API_KEY"

POST/webhooks/{id}/test

Test webhook endpoint

Dispatches a test ping event to the webhook endpoint.

Requires the webhooks:manage scope and an active subscription.

Parameters

Parameters of Test webhook endpoint
NameInTypeDescription
idrequiredpathstring (uuid)Webhook endpoint UUID.

Responses

Responses of Test webhook endpoint
StatusMeaning
200Test delivery result.
401Missing, invalid, expired, or revoked API token.
402The subscription is inactive. Reading is allowed, but mutating actions require an active subscription.
403The token lacks a required scope.
404The resource does not exist or is not visible to this token.

Response body (200)

Response 200 fields of Test webhook endpoint
FieldTypeDescription
successbooleanTrue when the test event was delivered.
event_idstring (uuid)Id of the ping event that was sent.
status_codenumber or nullThe HTTP status your endpoint answered with. Null when it did not answer.
errorstring or nullWhat went wrong, if the delivery failed.
json
{
  "success": true,
  "event_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "status_code": 0,
  "error": "string"
}

Example request

curl
curl -X POST "https://falconproxy.com/api/v1/webhooks/3fa85f64-5717-4562-b3fc-2c963f66afa6/test" \
  -H "Authorization: Bearer $FALCONPROXY_API_KEY"

Ready to create your own proxies?

2-hour free trial, no card—pair your phone in minutes.

Already have an account? Sign in

FalconProxy