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.
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
| Name | In | Type | Required | What it is |
|---|---|---|---|---|
project | query | string | Yes | The project the call is about. Every route is scoped to one. |
Pod-Organisation | header | string | No | The 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.
{
"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"
}| Field | Type | Always | What it is |
|---|---|---|---|
source | "scim" | "oidc" | Yes | Where 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. |
oidc | DirectoryOidc | null | Yes | How the identity provider's sign-in tokens are checked; null when not set. |
subject_claim | string | Yes | The sign-in token's claim that names the person, as SCIM's externalId does. |
groups_claim | string | Yes | |
membership_ttl_s | integer | Yes | From 300 to 86400. |
scim_token_made_at | string | null | Yes | When the SCIM token in use was made; null for a directory of sign-in tokens. |
people | integer | Yes | At least 0. |
groups | integer | Yes | At least 0. |
linked_accounts | integer | Yes | Identity accounts linked to a person of the directory by a sign-in through it. At least 0. |
version | integer | Yes | At least 1. |
updated_at | string | Yes | RFC 3339 in UTC with milliseconds, for example 2026-11-23T17:04:05.123Z. |
updated_by | string | Yes | Who 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.