curl -X GET https://api.telzino.com/v1/me \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"
const response = await fetch('https://api.telzino.com/v1/me', {
headers: {
'Authorization': 'Bearer YOUR_ACCESS_TOKEN'
}
});
const { account_id } = await response.json();
import requests
response = requests.get(
'https://api.telzino.com/v1/me',
headers={'Authorization': 'Bearer YOUR_ACCESS_TOKEN'}
)
account_id = response.json()['account_id']
{
"account_id": "m5b6g5jd-lanh-47yi-yhsg-cx56wjdah8h9"
}
{
"error": "invalid_token",
"error_description": "Token does not contain a valid client_id"
}
{
"error": "invalid_request",
"error_description": "Missing or malformed Authorization header"
}
{
"error": "not_found",
"error_description": "No account_id found for this client_id"
}
API Reference
Get Current Account
Returns the account ID associated with the authenticated client
GET
/
v1
/
me
curl -X GET https://api.telzino.com/v1/me \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"
const response = await fetch('https://api.telzino.com/v1/me', {
headers: {
'Authorization': 'Bearer YOUR_ACCESS_TOKEN'
}
});
const { account_id } = await response.json();
import requests
response = requests.get(
'https://api.telzino.com/v1/me',
headers={'Authorization': 'Bearer YOUR_ACCESS_TOKEN'}
)
account_id = response.json()['account_id']
{
"account_id": "m5b6g5jd-lanh-47yi-yhsg-cx56wjdah8h9"
}
{
"error": "invalid_token",
"error_description": "Token does not contain a valid client_id"
}
{
"error": "invalid_request",
"error_description": "Missing or malformed Authorization header"
}
{
"error": "not_found",
"error_description": "No account_id found for this client_id"
}
Overview
Resolves theaccount_id associated with the client_id in your access token. Useful for applications that need to know which Telzino account their API credentials belong to.
Requires a valid Bearer access token whose sub claim ends with @clients.
curl -X GET https://api.telzino.com/v1/me \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"
const response = await fetch('https://api.telzino.com/v1/me', {
headers: {
'Authorization': 'Bearer YOUR_ACCESS_TOKEN'
}
});
const { account_id } = await response.json();
import requests
response = requests.get(
'https://api.telzino.com/v1/me',
headers={'Authorization': 'Bearer YOUR_ACCESS_TOKEN'}
)
account_id = response.json()['account_id']
{
"account_id": "m5b6g5jd-lanh-47yi-yhsg-cx56wjdah8h9"
}
{
"error": "invalid_token",
"error_description": "Token does not contain a valid client_id"
}
{
"error": "invalid_request",
"error_description": "Missing or malformed Authorization header"
}
{
"error": "not_found",
"error_description": "No account_id found for this client_id"
}
Response Fields
| Field | Type | Description |
|---|---|---|
account_id | string (UUID) | Account ID associated with the authenticated client |
⌘I
