- a User
- a Team
- a Project
- a Client

Creating an identity
AI Studio
- API / SDK
Head to the Identities section and choose Create an Identity.The following panel opens:

Attaching an identity to a request
Every request can be attributed to a specific user, team, or client. The gateway checks each of the following sources in order and uses the first match found:| Order | Source | Effect |
|---|---|---|
| 1 | identity object in the request body | Tags the request and upserts the identity record (name, email, metadata) |
| 2 | X-ORQ-IDENTITY-ID request header | Tags the request only; does not update the identity record |
| 3 | API key owner | Tags the request only; applies automatically when the key is user-owned |
- Body
- X-ORQ-IDENTITY-ID Header
- API Key Owner
Pass an AgentsDeployments
identity object on each Agent response or Deployment invocation to attribute the request to an Identity.The
identityId / identity_id constructor option was removed in SDK v4.10.0. Pass identity on each request instead.Retrieving an identity via the API
Once an identity is in use, you can fetch its full record at any time using its_id (ULID) or external_id.
See the API Reference for the full parameter and response specification.
Listing identities with metrics
Passinclude_metrics=true to the list endpoint to include 30-day usage metrics for each identity in the response. This is useful for auditing spend, spotting high error rates, or building identity-level dashboards.
metrics object with usage data for the last 30 days:
| Field | Description |
|---|---|
total_cost | Total spend in USD over the last 30 days |
total_tokens | Total tokens consumed over the last 30 days |
total_requests | Total number of requests made over the last 30 days |
error_rate | Ratio of failed requests over the last 30 days (e.g. 0.33 = 33% of requests returned an error) |
See the API Reference for the full list of query parameters including pagination, search, and tag filtering.