Create Subscription


Object containing data to make a request to create a subscription

{
  "eventSubscriptions": [
    "breadpayments.webhooks.my.super-rev1"
  ],
  "subscriptionURL": "https://example.com/callback",
  "name": "SubscriptionEndpoint-dbef2daf-f94a-41f3-8d07-52eb17cc17b3",
  "auth": "string"
}

Properties

NameTypeRequiredRestrictionsDescription
eventSubscriptions[string]truenonenone
subscriptionURLstring(uri)truenoneSubscriber endpoint to call with event
namestringtruenoneName of subscription
authanytruenonenone
TypeDescription
anynone
NameTypeRequiredRestrictionsDescription
➥➥ anonymousobjectfalsenoneRepresents sending of no Authorization header to the subscription endpoint
➥➥➥ authTypestringtruenonenone
NameTypeRequiredRestrictionsDescription
➥➥ anonymousobjectfalsenoneRepresents sending of an Authorization header in format of https://www.ietf.org/rfc/rfc2617.txt. Will be sent in the format of "Basic base64(username:password)" to the subscription endpoint
➥➥➥ authTypestringtruenonenone
➥➥➥ usernamestringtruenoneusername to be sent in the Authorization header
➥➥➥ passwordstringtruenonepassword to be sent in the Authorization header
NameTypeRequiredRestrictionsDescription
➥➥ anonymousobjectfalsenoneRepresents sending of an Authorization header in format of https://www.ietf.org/rfc/rfc6750.txt. Will be sent in the format of "Bearer token" to the subscription endpoint
➥➥➥ authTypestringtruenonenone
➥➥➥ tokenstringtruenonetoken to be sent in the Authorization header
NameTypeRequiredRestrictionsDescription
anonymousstringfalsenonenone
➥➥ authTypestringtruenonenone

Enumerated Values

Value
NONE
BASIC
STATIC_BEARER_TOKEN
NONE
BASIC
STATIC_BEARER_TOKEN