Skip to content

Get The Current User

GET
/me
curl --request GET \
--url https://markdawn.space/api/v1/me \
--header 'Authorization: Bearer <token>'

Returns the authenticated user’s profile and how the request was authenticated. Token-authenticated responses include the token’s scopes; session-authenticated responses set scopes to null.

Current user and authentication context.

Media typeapplication/json
object
id
required
string format: uuid
/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/
name
required
string
email
required
string
image
required
Any of:
string
authentication
required
string
Allowed values: session token
scopes
required
Any of:
Array<string>
Allowed values: pages:read pages:write
Example
{
"authentication": "session",
"scopes": [
"pages:read"
]
}

Authentication failed or was not provided.