To export all of your chat transcripts from archives, all you need is software such as Postman which will let you make API calls easily, your account ID, and Personal Access Token which you can find and generate in the developer's console.
The video above will show you the entire process, below you'll find a written instruction in case you have any doubts.
Our API method you need to use is
list_archives - full documentation is available here. When you will open your Postman, you will see this page:
The first thing you need to do is to find the request URL you want to use - it’s always listed in our documentation in the method specifics:
You need to copy the method URL and paste it in the “enter request URL field”. You need to change the method operator on the left side from “GET” to “POST” as well.
Now you need to move to the “authorization” tab and choose the “basic auth” option. In the username field, you need to provide your account ID and in the password field- personal access token.
The last thing we have to do is to define additional parameters. In order to do that please go to “body” section, click on “raw” option and choose JSON under “text” field:
Now all you need to do is to adjust payload - if you don’t want to use specific parameters to filter results, you need to use empty payload:
In case if you wish to use filters, you need to add them to your body section, inside of the payload. Let’s take a look at the example for filters “from” and “to” specifying data range for exported chats.
You can feel confused by taking a look at the date format listed in our documentation: YYYY-MM-DDTHH:MM:SS.ssssssZHH:MM It’s much less complicated than it looks! If you wish to set date for midnight on January 1st 2021 all you need to do is provide date 2020-01-01 followed by letter T and hour 00:00:00.00000 and then your timezone in GMT format - for example for GMT+1 timezone, it would be +01:00.
Please note than calling request like the one presented in example will return you only 10 chats - it’s default limit, which can be changed in rage from 1 to 100 with “limit” parameter:
If you need export more than 100 transcripts, you will need to find next page ID at the end of the response from call: