Skip to content

Retrieve information about the current user and their organization

GET
/v1/context
curl --request GET \
--url https://api.adversarial.com/api/v1/context

Retrieve information about the current user and their organization

Media typeapplication/json
object
organization
One of:

The organization this request named, or — when it named none — the one the caller resumes in. Absent only for a principal with no organization at all: a first login that has not created or joined one, which must complete onboarding before it can reach organization-scoped endpoints.

object
description
required
string
display_name
required
string
icon
string | null
id
required
string format: uuid
name
required
string
slug
required

URL-safe human-readable identifier.

string
verified
required
boolean
roles
required
Array<string>
user
required

A User as returned by the API.

Profile images are not embedded — clients fetch them from GET /api/v1/{icon} when icon is Some.

object
email
required
string
first_name
required
string
icon

Relative path to the user’s avatar endpoint, e.g. "users/{id}/avatar?v={hash}". None when the user has no avatar.

string | null
id
required
string format: uuid
last_name
required
string
Examplegenerated
{
"organization": {
"description": "example",
"display_name": "example",
"icon": "example",
"id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"name": "example",
"slug": "example",
"verified": true
},
"roles": [
"example"
],
"user": {
"email": "example",
"first_name": "example",
"icon": "example",
"id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"last_name": "example"
}
}