Sign the person in to Bottle Support
GET
/support/token
const url = 'https://example.com/support/token';const options = { method: 'GET', headers: {cookie: '__Host-bottle.session_token=<__Host-bottle.session_token>'}};
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://example.com/support/token \ --cookie __Host-bottle.session_token=<__Host-bottle.session_token>Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”A five-minute token for Bottle Support
Media typeapplication/json
object
token
required
string
expiresAt
required
string format: date-time
supportOrigin
required
string format: uri
Example generated
{ "token": "example", "expiresAt": "2026-04-15T12:00:00Z", "supportOrigin": "https://example.com"}Sign in required
Media typeapplication/json
object
error
required
string
message
required
string
Example
{ "error": "not_found", "message": "Customer not found"}Bottle staff looking as the person, or no membership
Media typeapplication/json
object
error
required
string
message
required
string
Example
{ "error": "not_found", "message": "Customer not found"}Bottle Support is not switched on
Media typeapplication/json
object
error
required
string
message
required
string
Example
{ "error": "not_found", "message": "Customer not found"}