Create token (Cloud-only)
/v1/client-side-access-tokens
Create a new client side access token with the specified configuration.
Body Parameters
Returns
token: string
expiresAt: string
hostname: string
Create token (Cloud-only)
curl https://api.letta.com/v1/client-side-access-tokens \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer $LETTA_API_KEY" \
-d '{
"hostname": "https://example.com",
"policy": [
{
"id": "id",
"access": [
"read_messages"
],
"type": "agent"
}
]
}'
{
"token": "token",
"expiresAt": "expiresAt",
"hostname": "hostname",
"policy": {
"data": [
{
"id": "id",
"access": [
"read_messages"
],
"type": "agent"
}
],
"version": "1"
}
}Returns Examples
{
"token": "token",
"expiresAt": "expiresAt",
"hostname": "hostname",
"policy": {
"data": [
{
"id": "id",
"access": [
"read_messages"
],
"type": "agent"
}
],
"version": "1"
}
}