Preflight a chat association
GET
/chat
const url = 'https://web.exactly.app/api/chat?token=example';const options = {method: 'GET'};
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://web.exactly.app/api/chat?token=example'Reports whether the chat id encoded in the token can be associated, surfacing conflicts as 400.
Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”token
required
Chat token
Encrypted token encoding the chat id to associate.
string
Responses
Section titled “Responses”The id is available to associate.
Bad token, associated with another credential, or this credential already has one.