The content of the request.
- Create a webhook subscription
Webhooks (1.0)
https://docs.solarisgroup.com/_mock/api-reference/onboarding/webhooks/
Request
Creates a new webhook subscription for a specific event.
When you create a webhook subscription, Solaris checks the validity of the provided url
by sending a single POST
notification. The notification contains an empty body and the SOLARIS-WEBHOOK-EVENT-TYPE
header with a value of WEBHOOK-SUBSCRIPTION
.
The response from this endpoint contains a unique id
for the subscription and a secret
. Use this secret
to verify the authenticity of the notifications.
Webhook URLs cannot be changed after creating a webhook subscription. You must delete the existing webhook and register a new one with the new URL. Note that you will receive a new id
and secret
.
- Mock Server
https://docs.solarisgroup.com/_mock/api-reference/onboarding/webhooks/v1/webhooks
- Payload
- cURL
- Java
- Python
- Node.js
- Go
- Ruby
- PHP
{ "event_type": "IDENTIFICATION", "url": "https://example.com/identification" }
{ "id": "4c6f93d4c8d427927257e2ce734a5a10", "event_type": "IDENTIFICATION", "url": "https://example.com/identification", "secret": "f82c389fb187274227186b5a58781978" }
- Mock Server
https://docs.solarisgroup.com/_mock/api-reference/onboarding/webhooks/v1/webhooks
- Payload
- cURL
- Java
- Python
- Node.js
- Go
- Ruby
- PHP
No request payload
[ { "id": "4c6f93d4c8d427927257e2ce734a5a10", "event_type": "IDENTIFICATION", "url": "https://example.com/identification", "secret": "f82c389fb187274227186b5a58781978" } ]
- Mock Server
https://docs.solarisgroup.com/_mock/api-reference/onboarding/webhooks/v1/webhooks/{id}
- Payload
- cURL
- Java
- Python
- Node.js
- Go
- Ruby
- PHP
No request payload
{ "id": "4c6f93d4c8d427927257e2ce734a5a10", "event_type": "IDENTIFICATION", "url": "https://example.com/identification", "secret": "f82c389fb187274227186b5a58781978" }
- Mock Server
https://docs.solarisgroup.com/_mock/api-reference/onboarding/webhooks/v1/webhooks/{id}
- Payload
- cURL
- Java
- Python
- Node.js
- Go
- Ruby
- PHP
No request payload
"string"