Refresh token for conversation
curl --request POST \
--url https://api.operator.xyz/conversations/{conversation_id}/token/refresh \
--header 'Authorization: Bearer <token>' \
--header 'Operator-Version: <operator-version>'import requests
url = "https://api.operator.xyz/conversations/{conversation_id}/token/refresh"
headers = {
"Operator-Version": "<operator-version>",
"Authorization": "Bearer <token>"
}
response = requests.post(url, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Operator-Version': '<operator-version>', Authorization: 'Bearer <token>'}
};
fetch('https://api.operator.xyz/conversations/{conversation_id}/token/refresh', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"token": "<string>",
"expires_at": "2023-11-07T05:31:56Z"
}{
"code": "<string>",
"message": "<string>",
"data": "<unknown>"
}Conversations
Refresh token for conversation
Generates a new ephemeral token for the specified conversation, extending the session lifetime. The old token will become invalid immediately after this operation completes.
POST
/
conversations
/
{conversation_id}
/
token
/
refresh
Refresh token for conversation
curl --request POST \
--url https://api.operator.xyz/conversations/{conversation_id}/token/refresh \
--header 'Authorization: Bearer <token>' \
--header 'Operator-Version: <operator-version>'import requests
url = "https://api.operator.xyz/conversations/{conversation_id}/token/refresh"
headers = {
"Operator-Version": "<operator-version>",
"Authorization": "Bearer <token>"
}
response = requests.post(url, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Operator-Version': '<operator-version>', Authorization: 'Bearer <token>'}
};
fetch('https://api.operator.xyz/conversations/{conversation_id}/token/refresh', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"token": "<string>",
"expires_at": "2023-11-07T05:31:56Z"
}{
"code": "<string>",
"message": "<string>",
"data": "<unknown>"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Headers
The API version to use.
Available options:
2025-06-19 Path Parameters
Unique identifier for the conversation, e.g. conv_8qm9JBCiTe7.

