how to use api "List all conversations" | Community
Skip to main content

i catn’t use the demo。 https://developers.intercom.com/docs/references/rest-api/api.intercom.io/conversations/listconversations

 

MyTEST:

curl -i -X GET \

  'https://api.intercom.io/conversations?per_page=20&starting_after=string' \

  -H 'Authorization: <my token>' \ 

  -H 'Intercom-Version: 2.13'

 

curl -i -X GET \

  'https://api.intercom.io/conversations?per_page=20&starting_after=string' \

  -H 'Authorization: <name> <my token>' \ 

  -H 'Intercom-Version: 2.13'

 

curl -i -X GET \

  'https://api.intercom.io/conversations?per_page=20&starting_after=string' \

  -H 'Authorization: Bearer <my token>' \ 

  -H 'Intercom-Version: 2.13'

 

<name> <toke> from 

ALL get the ERROR INFO:

{

"type": "error.list",

"request_id": "004d2a15vsgn3sc1e320",

"errors": e

{

"code": "unauthorized",

"message": "Access Token Invalid"

}

]

}

 

Question: what’s the right way to get conversation list ?

The DEMO 

 


curl --location 'https://api.intercom.io/conversations?per_page=20' \
--header 'Authorization: Bearer YOURBEARERTOKEN' \
--header 'Intercom-Version: 2.13'

This is how you get it. 

Obviously this is for the first request. Then you’ll get a pagination string that you will need to add like written: starting_after=string (where the string is what you’ll get in the answer of the first request).  


Reply