/api/v1/meGet the authenticated account
Returns the profile of the account the credential belongs to: id, email, name, role, avatar, preferred locale, and verification/creation timestamps. Account-level: a team-scoped API key is refused with 403.
Petición
curl "https://nextjs-saas-template.lubomirgeorgiev.com/api/v1/me" \
-H "Authorization: Bearer $API_KEY"Respuesta
idstringObligatorioemailstringObligatorioacepta nullfirstNamestringObligatorioacepta nulllastNamestringObligatorioacepta nullrolestringObligatorioavatarstringObligatorioacepta nullpreferredLocalestringObligatorioacepta nullemailVerifiedstringObligatorioacepta nullformat: date-timecreatedAtstringObligatorioformat: date-timeupdatedAtstringObligatorioformat: date-time{
"id": "string",
"email": "string",
"firstName": "string",
"lastName": "string",
"role": "string",
"avatar": "string",
"preferredLocale": "string",
"emailVerified": "2026-01-01T00:00:00.000Z",
"createdAt": "2026-01-01T00:00:00.000Z",
"updatedAt": "2026-01-01T00:00:00.000Z"
}Respuestas de error400401403404429Ampliar
Todo fallo es un documento problem de RFC 9457 cuyo code es estable y sin traducir.
- 400
- The request body, query, or path failed validation.
- 401
- The credential is missing, malformed, expired, or revoked.
- 403
- The credential lacks the required scope or the caller lacks the team permission.
- 404
- The addressed resource does not exist or is not visible to this credential.
- 429
- Rate limit exceeded; retry after the number of seconds in `retry-after`. The `RateLimit-*` headers describe the exhausted bucket.
{
"type": "string",
"title": "string",
"status": 0,
"code": "string",
"detail": "string",
"requestId": "string",
"retryAfter": 0,
"errors": [
{
"in": "body",
"pointer": "string",
"code": "required",
"params": {}
}
]
}