Who this key is
/api/v1/meNeeds a key with the full scope.
The call to make first. It resolves the account behind the key, the companies and branches it can file against, the permissions it acts with and the plan features that decide which other endpoints answer.
One of the few responses with no data envelope: the object is the
payload.
Response · 200
userobjectShow fieldsHide fields
iduuidnamestringnullableemailstringrolestringlocalestringai_response_localestringnullableverifiedboolean
accountobjectShow fieldsHide fields
iduuidexternal_account_idintegerThe number that appears in browser URLs for this account.
namestring
current_branchobjectnullableAlways
nullfor an API key: a key belongs to the account, not to a desk. Name a branch per call instead.Show fieldsHide fields
iduuidnamestringcodestringnullableis_headquartersbooleancompany_iduuidcompany_namestringnullable
companiesobject[]Every company the principal can reach, default first, each with its branches.
Show fieldsHide fields
iduuidnamestringcompany_typestringnullableis_defaultbooleanactivebooleanbranchesobject[]Show fieldsHide fields
iduuidnamestringcodestringnullableis_headquartersbooleanactiveboolean
policiesobjectWhat the principal may do, as booleans.
featuresobjectPlan features, as booleans.
api_accessis the one that decides whether a key works at all: false here means every authenticated call answers403 plan_upgrade_required.billingobjectnullableShow fieldsHide fields
statusstringplan_slugstringnullableplan_namestringnullabletrialingbooleanactivebooleantrial_ends_atdate-timenullablecancel_at_period_endboolean
server_timedate-timeUseful for checking clock drift before you sign or schedule anything.
Responses
401Missing or invalid Bearer token403Policy denied or account has no owner429Rate limit exceeded
curl -X GET 'https://YOUR-CELL.lydira.com/api/v1/me' \
-H 'Authorization: Bearer sek_YOUR_API_KEY'{
"user": {
"id": "9d2f7c3a-1b4e-4a7d-8e51-2c0f6b9a4d18",
"name": "Ayşe Yılmaz",
"email": "ayse@example.com",
"role": "owner",
"locale": "tr",
"ai_response_locale": "string",
"verified": true
},
"account": {
"id": "9d2f7c3a-1b4e-4a7d-8e51-2c0f6b9a4d18",
"external_account_id": 1000001,
"name": "Ayşe Yılmaz"
},
"current_branch": {
"id": "9d2f7c3a-1b4e-4a7d-8e51-2c0f6b9a4d18",
"name": "Ayşe Yılmaz",
"code": "CUST-0042",
"is_headquarters": true,
"company_id": "9d2f7c3a-1b4e-4a7d-8e51-2c0f6b9a4d18",
"company_name": "Ayşe Yılmaz"
},
"companies": [
{
"id": "9d2f7c3a-1b4e-4a7d-8e51-2c0f6b9a4d18",
"name": "Ayşe Yılmaz",
"company_type": "agency",
"is_default": true,
"active": true,
"branches": [
{
"id": "9d2f7c3a-1b4e-4a7d-8e51-2c0f6b9a4d18",
"name": "Ayşe Yılmaz",
"code": "CUST-0042",
"is_headquarters": true,
"active": true
}
]
}
],
"policies": {},
"features": {},
"billing": {
"status": "active",
"plan_slug": "studio",
"plan_name": "Studio",
"trialing": true,
"active": true,
"trial_ends_at": "2026-03-14T09:30:00Z",
"cancel_at_period_end": true
},
"server_time": "2026-03-14T09:30:00Z"
}