Skip to content

Get Webhook Subscription

Request

Security
Bearer
Path
subscriptionIdstring, (uuid)required
curl -i -X GET \
  'https://api-ext-sboxmeta.partners.spotnana.com/v3/webhooks/subscriptions/{subscriptionId}' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>'

Responses

Successful Get Webhook Subscription Response

Bodyapplication/json
idstring, (uuid)required

UUID of the webhook subscription.

namestringrequired

Human-readable display name for the subscription.

eventTypesArray of stringsrequired

List of event types this subscription is configured to receive.

subscriberIdstring, (uuid)required

UUID of the company that owns this webhook subscription.

eventSourceobject(EventSource)required

Defines which event sources this subscription matches.

urlstring, (uri)required

HTTPS endpoint that Spotnana POSTs event payloads to.

customHeadersobject

Additional HTTP headers included on every webhook request sent to url. Reserved headers managed by Spotnana (such as Authorization and Content-Type) take precedence over values configured here.

Example:
{ "X-Custom-Header": "my-value", "Authorization-Extra": "token123" }
isActivebooleanrequired

Whether the subscription is active. When false, the subscription is preserved but incoming events will not be matched against it and no deliveries will be made.

createdBystring, (uuid)

UUID of the user who created the subscription.

updatedBystring, (uuid)

UUID of the user who last updated the subscription.

createdAtobject(Date)

Timestamp at which the subscription was created.

updatedAtobject(Date)

Timestamp at which the subscription was last updated.

Response
{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string", "eventTypes": [ "TRAVELER_V2" ], "subscriberId": "96d0a1b8-7f77-4d5c-847e-2afd90ed23b3", "eventSource": { "scopes": [ … ] }, "url": "http://example.com", "customHeaders": { "X-Custom-Header": "my-value", "Authorization-Extra": "token123" }, "isActive": true, "createdBy": "25a02396-1048-48f9-bf93-102d2fb7895e", "updatedBy": "b0efe45f-0520-4e21-90f0-7e35f137732e", "createdAt": { "iso8601": "2017-07-21" }, "updatedAt": { "iso8601": "2017-07-21" } }