Skip to navigation

Get the signed-in person, their account and the invites they can accept

Returns the person the session token names, their memberships, each with the account name and the person’s role, and the invites they can accept. Any signed-in person gets 200, also one who belongs to no account yet: then memberships is empty and open_invites lists the open invites to their email. Every other route answers a person in no account with 403 no_account_access.

No request joins an account by itself: the person accepts one of open_invites with POST /v1/invites/{invite_id}/accept. open_invites is empty when the person already belongs to an account, and when user.email_verified is false: an invite matches only an email the sign-in provider verified.

People: any signed-in person, with or without an account. An API key gets 403 scope_missing.

curl -sS "$MEADOW_BASE_URL/v1/me" -H "Authorization: Bearer $SESSION_TOKEN"

Authentication

AuthorizationBearer

A Meadow API key, sent as Authorization: Bearer mdw_.... The header x-api-key: mdw_... is accepted in its place.

Response headers

x-request-idstringOptional

Meadow’s id for this request, req_ and 24 hex characters. Every response carries it, including errors, streams and unknown routes. Every error in the Error schema repeats it as request_id. Quote it when you report a problem.

Response

The person and their memberships.
objectenum
Allowed values:
userobject
membershipslist of objects
The accounts the person belongs to. One at launch. Empty for a person who has not joined an account.
open_inviteslist of objects
The open invites to the person's email, oldest first. Empty when the person belongs to an account or the email is not verified.

Errors

401
Unauthorized Error
403
Forbidden Error
500
Internal Server Error