Get the organization's directory

The organization's directory: where its groups come from (SCIM, or the groups claim of the identity provider's sign-in tokens), how sign-in tokens are checked (the key set by key id only), and how many people, groups and linked accounts it holds.

GET/v1/directory

Not available yet Pod's API does not answer this call yet.

The organization's directory: where its groups come from (SCIM, or the groups claim of the identity provider's sign-in tokens), how sign-in tokens are checked (the key set by key id only), and how many people, groups and linked accounts it holds. Never the SCIM token. not_found when there is none.

A key with the permissions:read scope.

Request

curl "https://api.pod.mapier.ai/v1/directory?project=example" \
  -H "Authorization: Bearer $POD_API_KEY"

Parameters

NameInTypeRequiredWhat it is
projectquerystringYesThe project the call is about. Every route is scoped to one.
Pod-OrganisationheaderstringNoThe organization, for a person who belongs to several. An API key's organization is its own, and a different one here is forbidden.

Answer

200. The directory.

200
{
  "source": "scim",
  "oidc": null,
  "subject_claim": "example",
  "groups_claim": "example",
  "membership_ttl_s": 300,
  "scim_token_made_at": null,
  "people": 0,
  "groups": 0,
  "linked_accounts": 0,
  "version": 1,
  "updated_at": "2026-11-23T12:00:00.000Z",
  "updated_by": "example"
}
FieldTypeAlwaysWhat it is
source"scim" | "oidc"YesWhere groups come from: pushed by the identity provider over SCIM 2.0 to /scim/v2, or the groups claim of its sign-in tokens, each membership lapsing after membership_ttl_s without a newer sign-in.
oidcDirectoryOidc | nullYesHow the identity provider's sign-in tokens are checked; null when not set.
subject_claimstringYesThe sign-in token's claim that names the person, as SCIM's externalId does.
groups_claimstringYes
membership_ttl_sintegerYesFrom 300 to 86400.
scim_token_made_atstring | nullYesWhen the SCIM token in use was made; null for a directory of sign-in tokens.
peopleintegerYesAt least 0.
groupsintegerYesAt least 0.
linked_accountsintegerYesIdentity accounts linked to a person of the directory by a sign-in through it. At least 0.
versionintegerYesAt least 1.
updated_atstringYesRFC 3339 in UTC with milliseconds, for example 2026-11-23T17:04:05.123Z.
updated_bystringYesWho made a change. An identity account id for a person, or a key id (key_…) for an API key.

Errors

The refusals this call is known for: unauthorized, forbidden, not_found. Any call can also answer unauthorized, rate_limited, unavailable or internal; the error list says what each means and when to send the call again.