Get a conversation transcript
GET
/v1/Accounts/{auth_id}/Conversation/Transcription/{conversationId}
const url = 'https://api.siprtc.io/v1/Accounts/example/Conversation/Transcription/example';const options = {method: 'GET', headers: {Authorization: 'Basic <credentials>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.siprtc.io/v1/Accounts/example/Conversation/Transcription/example \ --header 'Authorization: Basic <credentials>'Returns the messages of one conversation, oldest first, as a single plain-text transcript with one Name: message line per message. Messages sent by a contact-centre agent are labelled with the agent’s name.
A conversation ID with no messages on the account returns 200 with an empty transcription. The conversation is looked up on the account whose credentials you use.
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ” auth_id
required
string
Your account’s Auth ID
conversationId
required
string
Conversation ID (the conversationId of its messages)
Responses
Section titled “ Responses ”The transcript
Media type application/json
object
transcription
The conversation, oldest message first, one “Name: message” line per message.
string
Example
{ "transcription": "Alex Agent: Hello, how can I help?\nAlex Agent: Your order has shipped.\n"}The lookup failed
Media type application/json
object
error
Same text as message.
string
message
The storage error.
string
status
Always failed.
string
Example
{ "error": "context deadline exceeded", "message": "context deadline exceeded", "status": "failed"}Missing or wrong credentials (body: "Authentication failed")
Media type application/json
string
Example generated
example