Prerequisites
Before you begin, make sure you have:- Completed Partner onboarding.
- Provided Suki with an HTTPS callback URL. See Configuration.
- Received your partner secret key. You use this to verify incoming Webhook requests. See Signature verification.
- A publicly accessible HTTPS endpoint (TLS 1.2 or later).
- An integration that creates and ends Ambient sessions using the Ambient APIs or a Suki SDK.
Suki configures one Webhook callback URL per partner during onboarding. You cannot create or update the callback URL through an API or self-service portal.
Implementation
Configure Webhook Callback URL
Provide Suki with the HTTPS endpoint that should receive Webhook notifications, for example:
https://your-app.example.com/webhooks/notificationSuki stores this URL for your partner account and sends all Webhook notifications to this endpoint.Create Webhook Endpoint
Implement an endpoint that accepts:
- POST requests.
- Content-Type: application/json.
Verify Webhook Request
Before processing the payload:
- Read the generated-at and X-API-Key headers.
- Verify the HMAC-SHA-256 signature using your partner secret.
- Reject the request if signature verification fails.
Process Webhook Event
After verification succeeds:
- Parse the JSON payload.
- Read the top-level status field.
- Handle the event based on its value.
Return Successful Response
Return an HTTP 2xx response after successfully receiving the Webhook.You can process additional work asynchronously after sending the response.
Test Webhook Integration
Run a complete ambient workflow:
- Create an Ambient session.
- Stream audio.
- End the session.
- Wait for processing to complete.
- Receives the Webhook.
- Verifies the signature.
- Processes the payload.
- Returns a successful response.
Example Webhook handlers
The following examples show a basic Webhook endpoint that receives notifications and processes successful and failed events.- Python
- TypeScript
Available cookbooks
Available tutorials
Next steps
- Learn more about event types in the Webhook event types guide.
- Implement a secure connection with Signature verification process.
- Review the Webhook payload & response schema for the complete payload schema.
- Refer to the Webhook API reference for the OpenAPI specification and additional examples.