https://www.youtube.com/watch?v=PtNoKNkpZ3o

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:

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/c1407d40-37a6-46a9-a2de-f07ebe8c8902/image-20210115-132210.png

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:

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/f9521b00-1ddf-4b21-b64b-846a1b1d7cfb/getarchives2.png

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.

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/d56a4ff0-123f-43f4-b7d1-54e53ee6bbb1/getarchives3.png

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.

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/4a25b210-a498-436c-a83d-52ed42398fba/archives.png

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:

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/252de0e3-431f-453a-a333-1c2f2698fef5/archives11.png

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:

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/b529c070-c9e3-4ddd-8ccd-35dbbdb6f9ad/archives12.png

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.

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/c5f533a0-b879-4c4d-b104-c85c3dad8d13/archives22.png

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:

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/2f671f64-3b89-4910-9313-7a4d6123ce2e/archives23.png

If you need export more than 100 transcripts, you will need to find next page ID at the end of the response from call: