{
"user": {
"id": "user_example",
"name": "Example User"
},
"organization": null
}{
"error": {
"code": "UNAUTHENTICATED",
"message": "Sign in to continue."
}
}Auth
Return the caller and current organization
Reads the session cookie or Authorization: Bearer API key. A session uses activeOrganizationId when the caller is a member of that organization. Otherwise the organization is the caller’s only membership, or null when they have none or more than one. An API key has no active organization and uses the sole-membership rule. A present Authorization header that is not a valid key does not fall back to the session cookie. x-api-key does not authenticate.
GET
/
api
/
v1
/
context
{
"user": {
"id": "user_example",
"name": "Example User"
},
"organization": null
}{
"error": {
"code": "UNAUTHENTICATED",
"message": "Sign in to continue."
}
}Authorizations
bearerAuthsessionCookie
Factrove API key, usually prefixed ftrv_. Send Authorization: Bearer <key>. Product routes do not accept x-api-key as a credential. A present Authorization header that is not a valid key does not fall back to the session cookie.