Common schema
See Management API schema for every domain, the endpoint and authentication.
Queries
ping
Checks that the API is up. Answers pong.
ping: String!Types
JSON
"""
Any JSON value: an object, an array, a number, a string, a boolean or null. Carries data whose
shape varies, such as flow graphs, condition logic and content entry values.
"""
scalar JSONDateTime
"""
A date-time in UTC with millisecond precision, such as `2026-05-14T08:30:00.000Z`.
"""
scalar DateTimeIsoDate
"""
An ISO 8601 date (`YYYY-MM-DD`) or date-time, as a content entry's `DATE` field holds it. The
value comes back exactly as it was written, so a date never gains a time of day.
"""
scalar IsoDateAuthType
"""The kind of credential an `@auth` field accepts."""
enum AuthType {
"""A user access token, sent as `Authorization: Bearer <token>`."""
USER
"""An API key, sent as `X-API-Key`."""
API_KEY
"""
An app assertion, sent as `picked-app-assertion`: a JWT the app signs with its key, naming the
installation it acts for. Only fields that name `APP` accept it.
"""
APP
}AuthMfaPolicy
"""
Whether an `@auth` field holds a user to the two-factor authentication policy.
"""
enum AuthMfaPolicy {
"""
Refuse a user who owes a second factor with `MFA_REQUIRED` until their session is `AAL2`.
"""
ENFORCE
"""Serve the field to a user whose session is `AAL1`."""
EXEMPT
}auth
"""
Authenticates the request before the field resolves. A request carries a user access token
(`Authorization: Bearer <token>`) or an API key (`X-API-Key`).
Without `only`, the field accepts either credential. `only: USER` accepts a user access token and
refuses an API key. `only: API_KEY` accepts an API key and refuses a user access token. A missing,
invalid or refused credential fails with `UNAUTHENTICATED`.
`mfa` applies to user access tokens only. With `mfa: ENFORCE`, the default, a super admin, a client
manager or a member of an organization that requires two-factor authentication is refused with
`MFA_REQUIRED` while their session is `AAL1`; a token issued through OAuth counts as `AAL2`.
`mfa: EXEMPT` serves the field at `AAL1`, so such a user can enrol or verify a second factor.
"""
directive @auth(only: AuthType, mfa: AuthMfaPolicy = ENFORCE) on FIELD_DEFINITIONcache
"""
Sets the response's HTTP `Cache-Control` header to `policy`, verbatim. A response that has errors,
or in which an `@auth` field ran, gets no header.
"""
directive @cache(policy: String!) on FIELD_DEFINITIONrateLimit
"""
Refuses the field with `RATE_LIMITED` once the caller is past the limit of the rate-limit rule
named `rule`. A field may carry several; it resolves only when the caller is within every limit.
"""
directive @rateLimit(rule: String!, key: RateLimitKey!) repeatable on FIELD_DEFINITIONRateLimitKey
"""The bucket a `@rateLimit` check counts against."""
enum RateLimitKey {
"""The client IP address."""
IP
"""The input email address."""
EMAIL
"""The signed-in user."""
USER
}Scope
"""
A permission that an operation checks. `ORGANIZATION_` scopes come from an organization membership
or an API key. `STAFF_`, `FLAGS_`, `USERS_` and `CHAT_` scopes are system-level and held by Picked
staff.
"""
enum Scope {
"""Create new organizations."""
ORGANIZATION_CREATE
"""Read organization details."""
ORGANIZATION_READ
"""Update organization settings."""
ORGANIZATION_UPDATE
"""Delete an organization."""
ORGANIZATION_DELETE
"""Invite new organization members."""
ORGANIZATION_MEMBERS_CREATE
"""View organization members."""
ORGANIZATION_MEMBERS_READ
"""Update organization member roles."""
ORGANIZATION_MEMBERS_UPDATE
"""Remove organization members."""
ORGANIZATION_MEMBERS_DELETE
"""Grant and revoke the scopes held by organization members."""
ORGANIZATION_MEMBERS_MANAGE_SCOPES
"""Create organization invitations."""
ORGANIZATION_INVITATIONS_CREATE
"""View organization invitations."""
ORGANIZATION_INVITATIONS_READ
"""Revoke organization invitations."""
ORGANIZATION_INVITATIONS_DELETE
"""Create projects within an organization."""
ORGANIZATION_PROJECTS_CREATE
"""View organization projects."""
ORGANIZATION_PROJECTS_READ
"""Update organization projects."""
ORGANIZATION_PROJECTS_UPDATE
"""Delete organization projects."""
ORGANIZATION_PROJECTS_DELETE
"""Create API keys for an organization."""
ORGANIZATION_API_KEYS_CREATE
"""View organization API keys."""
ORGANIZATION_API_KEYS_READ
"""Revoke organization API keys."""
ORGANIZATION_API_KEYS_DELETE
"""Create organization integrations."""
ORGANIZATION_INTEGRATIONS_CREATE
"""View organization integrations."""
ORGANIZATION_INTEGRATIONS_READ
"""Update organization integrations."""
ORGANIZATION_INTEGRATIONS_UPDATE
"""Delete organization integrations."""
ORGANIZATION_INTEGRATIONS_DELETE
"""
View organization apps, their versions and installations, and open an installed app.
"""
ORGANIZATION_APPS_READ
"""Create organization apps and install them on projects."""
ORGANIZATION_APPS_CREATE
"""
Deploy new app versions, upgrade installations and manage an app's public keys.
"""
ORGANIZATION_APPS_UPDATE
"""Delete organization apps and uninstall them from projects."""
ORGANIZATION_APPS_DELETE
"""Create organization reports."""
ORGANIZATION_REPORTS_CREATE
"""View organization reports."""
ORGANIZATION_REPORTS_READ
"""Update organization reports."""
ORGANIZATION_REPORTS_UPDATE
"""Delete organization reports."""
ORGANIZATION_REPORTS_DELETE
"""View the content a project's workspaces hold."""
ORGANIZATION_WORKSPACE_READ
"""Create, change and remove the content a project's workspaces hold."""
ORGANIZATION_WORKSPACE_UPDATE
"""Create leads for an organization's projects."""
ORGANIZATION_LEADS_CREATE
"""View leads captured by an organization's projects."""
ORGANIZATION_LEADS_READ
"""Update leads and their labels."""
ORGANIZATION_LEADS_UPDATE
"""Delete leads and their labels."""
ORGANIZATION_LEADS_DELETE
"""
View a project's analytics sessions, and the Leads and Sessions reports.
"""
ORGANIZATION_SESSIONS_READ
"""Read the action run a workflow was started by."""
ORGANIZATION_ACTION_RUNS_READ
"""Record a response against an action run."""
ORGANIZATION_ACTION_RUNS_UPDATE
"""Call an external API registered to the project."""
ORGANIZATION_EXTERNAL_APIS_CALL
"""View staff-level data."""
STAFF_READ
"""Invite super admins."""
STAFF_INVITE_ADMIN
"""Invite client managers."""
STAFF_INVITE_CLIENT_MANAGER
"""Create platform feature flags."""
FLAGS_CREATE
"""Update platform feature flags."""
FLAGS_UPDATE
"""Delete platform feature flags."""
FLAGS_DELETE
"""Publish an app to every organization."""
APPS_PUBLISH
"""
Reset a user's two-factor authentication: delete their factors and revoke their sessions.
"""
USERS_RESET_MFA
"""Sign in to Picked Chat."""
CHAT_USE
"""
Administer Picked Analytics: sign in to Metabase in its `Administrators` group, and change
which analytics scopes other staff members hold.
"""
ANALYTICS_ADMIN
"""Sign in to Picked Analytics in its `Data Engineers` group."""
ANALYTICS_DATA_ENGINEER
"""Read a workspace's preview configuration."""
ORGANIZATION_WORKSPACE_VERSION_READ
"""Read what a project serves to visitors, and run its actions."""
ORGANIZATION_WORKSPACE_VERSION_READ_PUBLIC
}ErrorCode
"""
The codes an entry in the GraphQL `errors` array carries in `extensions.code`. Branch on the code,
not on `message`.
"""
enum ErrorCode {
"""The credentials are invalid."""
INVALID_CREDENTIALS
"""The operation needs a signed-in user."""
UNAUTHORIZED
"""The caller is authenticated but lacks the scope."""
FORBIDDEN
"""The organization does not exist."""
ORGANIZATION_NOT_FOUND
"""An organization with this name already exists."""
ORGANIZATION_ALREADY_EXISTS
"""The slug is already in use."""
SLUG_ALREADY_EXISTS
"""
The slug holds characters other than lowercase letters, digits and hyphens.
"""
INVALID_SLUG
"""The member does not exist."""
MEMBER_NOT_FOUND
"""The user is already a member of the organization."""
MEMBER_ALREADY_EXISTS
"""The primary owner cannot be removed from the organization."""
CANNOT_REMOVE_PRIMARY_OWNER
"""The invitation does not exist."""
INVITATION_NOT_FOUND
"""The invitation has expired."""
INVITATION_EXPIRED
"""The invitation has already been accepted."""
INVITATION_ALREADY_ACCEPTED
"""The project does not exist."""
PROJECT_NOT_FOUND
"""The user does not exist."""
USER_NOT_FOUND
"""The user already holds the role."""
ROLE_ALREADY_GRANTED
"""The user does not hold the role."""
ROLE_NOT_GRANTED
"""The input is invalid. `extensions.fields` names the paths at fault."""
VALIDATION_ERROR
"""An unexpected server error."""
INTERNAL_ERROR
}PageInfo
"""
Where a page sits in a list. Cursors are opaque: pass `endCursor` as `after` to read the next
page, and `startCursor` as `before` to read the previous one.
"""
type PageInfo {
"""Whether items follow this page."""
hasNextPage: Boolean!
"""Whether items precede this page."""
hasPreviousPage: Boolean!
"""
The cursor of the first item in this page. Null when the page is empty.
"""
startCursor: String
"""The cursor of the last item in this page. Null when the page is empty."""
endCursor: String
}UserError
"""
A problem with a mutation's input that stopped the mutation, returned in its payload's
`userErrors`. Some mutations return their own error type with a typed `code`.
"""
type UserError {
"""
The path to the input field at fault. Null when no single field is at fault.
"""
field: [String!]
"""A message to show the user."""
message: String!
"""A machine-readable code. Null when the mutation defines none."""
code: String
}