Skip to main content
Identities are an entity used to tie metrics within the orq.ai APIs. They can represent:
  • a User
  • a Team
  • a Project
  • a Client
Identities are created via the AI Studio, AI Gateway, or the API and then used as supplementary data to attribute metrics within any other call of the API. Identities list showing name, source tag, request count, cost in dollars, token count, and error rate columns.

Creating an identity

Head to the Identities section and choose Create an Identity.The following panel opens:Create identity form with fields for External ID, Display Name, Email, and a Budget toggle set to Monthly $10.

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:
Pass an 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.
Agents
Deployments

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.
The response returns the full identity record:
See the API Reference for the full parameter and response specification.

Listing identities with metrics

Pass include_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.
Each identity in the response includes a metrics object with usage data for the last 30 days:
See the API Reference for the full list of query parameters including pagination, search, and tag filtering.