{
"emails": [
"string"
],
"external_id": "string",
"from": "string",
"mailbox_id": "string",
"tags": [
"string"
]
}
const response = await fetch(
"POST /api/v1/chat/token",
{
method: "post",
headers: {
"Content-Type": "application/json",
"Authorization": `Bearer {token}`
},
body: JSON.stringify({
"emails": [
"string"
],
"external_id": "string",
"from": "string",
"mailbox_id": "string",
"tags": [
"string"
]
})
}
);
{
"expires_at": "integer",
"token": "string"
}
{
"errors": [
{
"code": "string",
"deprecated": "boolean",
"message": "string",
"will_be_deprecated": "boolean"
}
]
}
Go!Chat
Create end user token
Creates a token meant to be used for the end user.
POST
/
api
/
v1
/
chat
/
token
{
"emails": [
"string"
],
"external_id": "string",
"from": "string",
"mailbox_id": "string",
"tags": [
"string"
]
}
const response = await fetch(
"POST /api/v1/chat/token",
{
method: "post",
headers: {
"Content-Type": "application/json",
"Authorization": `Bearer {token}`
},
body: JSON.stringify({
"emails": [
"string"
],
"external_id": "string",
"from": "string",
"mailbox_id": "string",
"tags": [
"string"
]
})
}
);
{
"expires_at": "integer",
"token": "string"
}
{
"errors": [
{
"code": "string",
"deprecated": "boolean",
"message": "string",
"will_be_deprecated": "boolean"
}
]
}
Body parameters
string[]
string
string
string
string[]
Response body
- 200
- default
{
"emails": [
"string"
],
"external_id": "string",
"from": "string",
"mailbox_id": "string",
"tags": [
"string"
]
}
const response = await fetch(
"POST /api/v1/chat/token",
{
method: "post",
headers: {
"Content-Type": "application/json",
"Authorization": `Bearer {token}`
},
body: JSON.stringify({
"emails": [
"string"
],
"external_id": "string",
"from": "string",
"mailbox_id": "string",
"tags": [
"string"
]
})
}
);
{
"expires_at": "integer",
"token": "string"
}
{
"errors": [
{
"code": "string",
"deprecated": "boolean",
"message": "string",
"will_be_deprecated": "boolean"
}
]
}
⌘I