Get The Current User
GET
/me
const url = 'https://markdawn.space/api/v1/me';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Current user and authentication context.
Media typeapplication/json
object
id
required
string format: uuid
name
required
string
email
required
string
authentication
required
string
scopes
required
Any of:
Array<string>
null
Example
{ "authentication": "session", "scopes": [ "pages:read" ]}Authentication failed or was not provided.