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.

Authorizations

X-MSS-API-APPID
string
header
required

Portal application identifier used as part of HMAC-authenticated API requests.

X-MSS-API-USERKEY
string
header
required

Portal user API key used together with the HMAC signature headers.

X-MSS-CUSTOM-DATE
string
header
required

Timestamp header included in the signed request to prevent replay attacks.

X-MSS-SIGNATURE
string
header
required

HMAC-SHA256 signature for the request, calculated over the canonical string defined in the authentication docs.

Headers

Accept
enum<string>
required

Accept Header

Available options:
application/json

Body

application/json

Webhook Services

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. Returned on create and update responses only; omitted from list responses.