subscriptions

Create subscription

Requires a linked administrator session or valid administrator OAuth grant with openid and profile scopes. Cookie-authenticated changes require same-origin JSON requests. This stores a destination; it does not send or verify a callback.

post/subscriptions

Request

  • Base URL: https://api.leisurevans.com
  • URL: https://api.leisurevans.com/subscriptions
  • Auth: none declared

Request body

eventstring required
targetstring

Response

Subscription created.

requestIdstring uuid required

Example response

{
  "data": {
    "id": "e2a84f32-5ed5-48f8-ab32-5c4a7858fc67",
    "legacyId": "65a7e9b3a0f3f4c2d7b7e551",
    "event": "lead.created",
    "target": "https://example.com/hooks/lead-created"
  },
  "requestId": "0d8b5744-7544-4bb0-8f95-65be635315d8"
}

Changes

No recorded changes to this operation across all 1 revision of this API.