Skip to content
Build your own business

Subscribe or resume a webhook

POST/api/partner/v1/webhook-subscriptions

Owners can register an HTTPS URL on the exact hosted callback hostname that authorized the grant. Use the default HTTPS port and a URL without user information, query parameters or a fragment. Re-registering the same URL on the same grant with a fresh request key resumes its saved cursor. Save the signing secret from the first-dispatch response. A local loopback grant can poll the feed.

Authentication Send your OAuth access token as a Bearer token with the partner.lifecycle scope.

Parameters

  • Idempotency-Key header · required · string

    One key per intended change within this OAuth connection. Reuse only with the original method, path, query and JSON body.

Request body

application/json

  • url string · uri, max length 2048 · required

Example

{
  "url": "https://integration.example.com/colby/events"
}

Responses

200 · Operation receipt on retry. Inspect http_status and fetch the current resource.

Response headers include X-Request-Id.

application/json

  • request_id string · required
  • state processing | complete | reconcile · required
  • http_status integer or null · required
  • result object or null · required
201 · Created or resumed subscription

Response headers include X-Request-Id.

application/json

  • id string · required
  • cursor integer · min 0 · required
  • signing_secret string · required

    Store privately. This UTF-8 text is the HMAC key.

202 · Operation receipt on retry. Inspect http_status and fetch the current resource.

Response headers include X-Request-Id.

application/json

  • request_id string · required
  • state processing | complete | reconcile · required
  • http_status integer or null · required
  • result object or null · required
400 · Invalid input. Correct the request and use a new key for changed input.

application/json

  • error string · required
  • detail string
  • request_id string
401 · Missing, expired, revoked or wrong-resource access token.

application/json

  • error string · required
  • detail string
  • request_id string
403 · The signed account or role lacks access to this operation.

application/json

  • error string · required
  • detail string
  • request_id string
404 · The resource is unknown or outside this account.

application/json

  • error string · required
  • detail string
  • request_id string
409 · Resource state or idempotency conflict.

application/json

  • error string · required
  • detail string
  • request_id string
429 · Rate limit reached. Back off and retry.

application/json

  • error string · required
  • detail string
  • request_id string
503 · Service or provider unavailable. Check the operation receipt before retrying a write.

application/json

  • error string · required
  • detail string
  • request_id string

Download the full OpenAPI specification