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.
- If the payload has a
statefield, it is a CKG ingestion event. Otherwise, read the top-levelstatusfield to identify the product. - Handle the event based on its value.
additional_info.session_type to see which product sent it (AMBIENT, FORM_FILLING, or EM_CODES), then use session_id and _links to read the results from that product’s API.Failure:
Use error_code and error_detail to log the failure, notify your application, or display an appropriate message.CKG ingestion:
Read state (COMPLETED, FAILED, or ABORTED) and match the job by transaction_id.See Webhook event types for the fields each product sends.Return Successful Response
Return HTTP 200 within 30 seconds after successfully receiving the Webhook. Only 200 counts as delivered, so do not return
201 or 204.You can process additional work asynchronously after sending the response.Test Webhook Integration
The quickest end-to-end test is an 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