APIAPI reference
Signed-in user and account
GET /v1/me
GET /v1/me
Web-app session only. The account is the token's organization (Better Auth's active one).
Authorization
This operation requires a bearer credential. The description defines additional role, scope or first-party-session restrictions; an API key does not grant those permissions by itself.
Request body
No request body.
Responses
| HTTP | Details | Type |
|---|---|---|
| 200 | Successful Response | application/json: Me |
| 401 | Unauthorized | application/problem+json: ProblemDetails |
| 403 | Forbidden | application/problem+json: ProblemDetails |
| 404 | Not Found | application/problem+json: ProblemDetails |
| 422 | Unprocessable Entity | application/problem+json: ProblemDetails |
Response: Me
| Property | Type | Required | Details |
|---|---|---|---|
user | User | yes | |
account | Account | yes | The account the token acts on: the active organization. |
Full schema
{
"properties": {
"user": {
"$ref": "#/components/schemas/User"
},
"account": {
"$ref": "#/components/schemas/Account",
"description": "The account the token acts on: the active organization."
}
},
"type": "object",
"required": [
"user",
"account"
],
"title": "Me"
}This page is generated from OpenAPI; examples are schemas, not a fabricated successful response.