Receive Transcription
Xosum.am will send a POST request to this URL once a transcription is complete. This endpoint does not require any Authorization header. Use the secret field to verify the source.
Note: This is a callback URL provided by the user and is not part of the public Xosum.am API.
/your-webhook-url is a placeholder for whatever publicly-reachable URL you configure in your account at app.xosum.am. Xosum does not host this URL.POST request to your configured webhook URL with the payload below. Your endpoint should:
- Verify the
secretfield matches thewebhookSecretconfigured in your Xosum account, and reject the request otherwise. - Return
200 OKquickly. Acknowledge first, process asynchronously — Xosum does not retry indefinitely, so don’t tie up the connection while you do downstream work. - Be prepared for two content shapes in
transcription. The JSON envelope is identical regardless of recording type, but the text insidetranscriptiondiffers:- For
type: single_voice, the text is plain (no speaker labels). - For
type: phone_call, the text is diarized with inlineԽոսնակ 1:/Խոսնակ 2:speaker labels.
- For
GET /api/getTranscription instead.Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
Event type for transcription completion.
transcript_ready Webhook secret to validate authenticity.
Transcription job ID.
The transcript text. The JSON shape of this payload is identical regardless of recording type, but the content of this field differs: for type: phone_call, the text is diarized with inline Խոսնակ 1: / Խոսնակ 2: speaker labels; for type: single_voice, the text is plain with no labels.
Metadata passed during creation.
{
"phonenumber": "+37400000000",
"agent": "King Ruzi"
}Short title automatically generated from the transcript.
A concise summary or resolution for the call.
Direct URL to the recording details inside Xosum.am.
Response
Webhook received and acknowledged.
