Flambe docs

Get the current user

Resolves the bearer token to a profile. The cheapest way to check that a token is valid.

GET
/api/users/me

Resolves the bearer token to a profile. The cheapest way to check that a token is valid.

Authorization

bearerAuth
AuthorizationBearer <token>

A Clerk session JWT. Obtain one with a Clerk frontend SDK (session.getToken()) or, for server-to-server use, with a Clerk machine token. The token's sub claim is the Flambe user id that scopes every request.

In: header

Response Body

application/json

application/json

application/json

curl -X GET "https://example.com/api/users/me"
{  "id": "string",  "email": "user@example.com",  "household_ids": [    "54c1f54b-a917-49ec-b7cf-11c9ad962a82"  ],  "is_admin": true,  "created_at": "2019-08-24T14:15:22Z"}