Send a validation code or confirm the association
POST
/chat
const url = 'https://web.exactly.app/api/chat';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"token":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://web.exactly.app/api/chat \ --header 'Content-Type: application/json' \ --data '{ "token": "example" }'With a token, sends a validation code to the encoded id. With a code, verifies it and associates the id with the credential, overriding conflicts.
Request Body
Section titled “Request Body”Responses
Section titled “Responses”Validation code sent, or chat id associated with the credential.
Bad token, no pending verification, or the submitted code is wrong.
A code was already sent to this id recently.