Skip to content
This repository has been archived by the owner on Jun 27, 2024. It is now read-only.

Latest commit

 

History

History
99 lines (78 loc) · 3.12 KB

File metadata and controls

99 lines (78 loc) · 3.12 KB

Request PDF Transcript

Request a PDF transcript for an Omnichannel conversation.

{% hint style="info" %}

  • The conversation must be closed before it can be exported.
  • It requires the request-pdf-transcript permission. Omnichannel managers and agents have this permission by default. {% endhint %}
HTTP MethodURLRequires Auth
POST/api/vi/omnichannel/:rid/request-transcriptyes

Path Variables

KeyExample ValueDescription
rid*gLanBL8wSfXG7AqBoThe room ID.

Example Call

{% code overflow="wrap" %}

curl --location --request POST 'http://localhost:3000/api/v1/omnichannel/teSNo3QPv4ebudmab/request-transcript' \
--header 'x-auth-token: fjiPBhtyFAn5JO3RDdDvKjkXToV2pd4_lb-nkdgJ_Q4' \
--header 'x-user-id: rbAXPnMktTFbNpwtJ'

{% endcode %}

Example Response

Success

{
    "success": true
}

Error

Any of the following errors can occur on the endpoint.

  • Authorization: Requires an authentication token for the request to be made.
  • Invalid Room: This occurs when the rid does not exist in the workspace.
  • Room still open: This happens when the room you're requesting a transcript for is still open. Only closed conversations can be exported.
  • No Permission: This occurs when the authenticated user doesn't have the request-pdf-transcript permission.
  • Can't Access Room: Occurs when the authenticated user doesn't have access to the conversation room.

{% tabs %} {% tab title=" Authorization" %}

{
    "status": "error",
    "message": "You must be logged in to do this."
}

{% endtab %}

{% tab title="Invalid Room" %}

{
    "success": false,
    "error": "error-invalid-room"
}

{% endtab %}

{% tab title="Room still open" %}

{
    "success": false,
    "error": "room-still-open"
}

{% endtab %}

{% tab title="No Permission" %}

{
    "success": false,
    "error": "User does not have the permissions required for this action [error-unauthorized]"
}

{% endtab %}

{% tab title="Can't Access Room" %}

{
    "success": false,
    "error": "error-not-allowed"
}

{% endtab %} {% endtabs %}

Change Log

Version Description
6.0.0 Added