Skip to main content
POST
Registers a new webhook subscription for your dealer account. Provide an HTTPS callback URL and the list of event types you want to receive. Portal.io will POST a signed JSON payload to your URL whenever a subscribed event occurs. The response includes a secretKey — store this securely, as it is used to verify the authenticity of every webhook delivery sent to your endpoint.
The secretKey is only returned once at creation time. If you lose it, you will need to update the subscription to generate a new one.

Headers

Accept
enum<string>
required

Accept Header

Available options:
application/json
X-MSS-API-APPID
string
required

Application Id

X-MSS-CUSTOM-DATE
string
required

A date timestamp of the request

X-MSS-SIGNATURE
string
required

A signature for the request

X-MSS-API-USERKEY
string
required

User API Key

Body

application/x-www-form-urlencoded
Url
string
required

Absolute HTTPS URL that will receive webhook POST payloads. Must use the https:// scheme and resolve to a publicly routable host — private, loopback, and link-local addresses are rejected. The value is trimmed before storage.

Events
string[]
required

One or more event-type names to subscribe to. Duplicate names are ignored case-insensitively. Returns 400 listing any unrecognised event names. Currently supported webhook event names are implementation-defined; see the published webhook documentation for the current set.

Description
string

Optional human-readable label for this subscription. Trimmed before storage; whitespace-only values are stored as null.

Response

Success

Webhook subscription returned by the public webhook management API

subscriptionId
integer<int64>
required

Unique numeric identifier of the webhook subscription

url
string
required

HTTPS URL that receives webhook POST deliveries

enabled
boolean
required

Whether the subscription is enabled

events
string[]
required

Event names that trigger this subscription

description
string

Optional human-readable label for the subscription

secretKey
string

Signing secret used to verify webhook deliveries. Only returned when a new secret is issued, such as during create or update operations