/v1/me Who am I
Return identity info for the authenticated principal. Always user_id, auth_type, plan, account_id, account_role and account_plan: a key acts in the account that was active when it was created, with its creator's role there. plan is the creator's own plan; account_plan is that account's.
Sensitive metadata fields (key_prefix, scopes, allowed_brand_id) are only included when the key carries the read:meta scope. persona says who the account works for, as the app reads it, and persona_answered whether its owner said so; ask_persona is true when the app asks this caller on its Home (app_url). brands_owned counts the account's brands as its plan's cap does, and help_url is its help center. A field the account read could not fill is left out; the identity fields always answer.
include=next_step adds next_step and next_step_brand_id when the caller works on one brand (a key restricted to it, or an account that owns one); a key needs read:brands for it.
Query parameters
-
next_stepadds the next step of the one brand the caller works on. -
Preview the call without executing it. Runs auth, scope, eligibility and body validation, then returns
200with adry_runobject reporting the request-unit and credit cost plus a non-consuming quota snapshot. Nothing is debited, reserved, dispatched or mutated. An invalid body still returns422.default: false
Responses
-
The account this key acts in: its creator's own (equal to
user_id), or the team account that was active when the key was created. The key stops working if its creator leaves that account. -
Plan of the account this key acts in: equal to
planin the creator's own account, the owner's plan in a team account. It sizes the monthly request pool every key in that account draws on, and plan-gated account features follow it. -
The creator's role in that account:
ownerin their own,editororviewerin a team account. -
Credential type used on this request:
api_key(server-to-server) orjwt(a signed-in session). -
The plan tier of the key creator's own subscription (
free,pro, …). The monthly request pool and plan-gated account features followaccount_plan, the plan of the account the key acts in. -
Stable identifier for the authenticated principal (UUID).
- allowed_brand_id string (nullable) nullable
If set, the key is restricted to this brand (UUID). Only present when the key has the
read:metascope; null for unrestricted keys. - app_url string (nullable) nullable
The account's Home in the app: an absolute URL on the account's app host (its white-label domain when it has one live; for an agency's client, the agency's). Absent for an agency's client whose agency has no live domain.
- ask_persona boolean (nullable) nullable
Whether the app is asking this caller who the account works for, on its Home (
app_url): true only for the account's own owner, with a key not restricted to a brand, whilepersona_answeredis false and the account has no white-label app; never for an agency's client. Absent when it could not be read. - brands_owned integer (nullable) nullable
The brands the account owns, as its plan's brand cap counts them: paused ones included, ones being deleted left out. Absent when it could not be read.
- help_url string (nullable) nullable
Where the account's help center lives, for how-to questions about the app: the platform's, or on a white-label account or for an agency's client the agency's own. Absent when that agency set none.
- key_prefix string (nullable) nullable
First 12 chars of the API key (e.g.
rp_live_abcd). Only present when the key has theread:metascope; null for JWT auth. - next_step BrandNextStep (nullable) nullable
With
include=next_step, when the caller works on one brand (the account owns one, or the key is restricted to one): the step that brand owner's Home in the app shows first, asnext_stepofGET /v1/brands/{brand_id}. Absent with more brands or none, for a key withoutread:brands, and wherever that brand read has none. - next_step_brand_id string (nullable) nullable
The brand
next_stepbelongs to. Absent withnext_step. - persona enum (nullable) nullable
Who the account works for, as the app reads it:
brand(its own brand),local(a local business),agencyorfreelancer(client brands). From the account owner's answer; without one, read from the account's first brand (localwhen it is a local business, elsebrand). Null when it could not be read. - persona_answered boolean (nullable) nullable
Whether the account owner said who the account works for. While false,
personais read from the account's first brand. Absent when it could not be read. - scopes array of enum (nullable) nullable
Scopes granted to this key. Only present when the key has the
read:metascope.
Example response
{
"account_id": "3f9c7e8a-1b6a-4d8e-92cf-7d9c8b1e2a04",
"account_plan": "pro",
"account_role": "owner",
"app_url": "https://app.rankprompt.com/home",
"ask_persona": true,
"auth_type": "api_key",
"brands_owned": 1,
"help_url": "https://help.rankprompt.com",
"key_prefix": "rp_live_abcd",
"persona": "brand",
"persona_answered": false,
"plan": "pro",
"scopes": [
"read:brands",
"write:brands"
],
"user_id": "3f9c7e8a-1b6a-4d8e-92cf-7d9c8b1e2a04"
}-
Show fields
-
Stable machine-readable error code from the catalog.
-
Human-readable description suitable for logging.
- details object
Optional, code-specific context (e.g.
errorsarray forvalidation_error,retry_afterforservice_unavailable). Shape depends onerror.code; treat as opaque otherwise.Show fields
Empty object (no properties).
-
- request_id string
Server-generated correlation id for the request. Mirrors the
X-Correlation-IDresponse header. Include this when contacting support.
Example response
{
"error": {
"code": "validation_error",
"message": "Request validation failed"
},
"request_id": "9f6c4e8a-1d3b-4c8b-9f1e-7a3b1c2d3e4f"
}-
Show fields
-
Stable machine-readable error code from the catalog.
-
Human-readable description suitable for logging.
- details object
Optional, code-specific context (e.g.
errorsarray forvalidation_error,retry_afterforservice_unavailable). Shape depends onerror.code; treat as opaque otherwise.Show fields
Empty object (no properties).
-
- request_id string
Server-generated correlation id for the request. Mirrors the
X-Correlation-IDresponse header. Include this when contacting support.
Example response
{
"error": {
"code": "unauthorized",
"message": "Missing or invalid credentials"
},
"request_id": "9f6c4e8a-1d3b-4c8b-9f1e-7a3b1c2d3e4f"
}-
Show fields
-
Stable machine-readable error code from the catalog.
-
Human-readable description suitable for logging.
- details object
Optional, code-specific context (e.g.
errorsarray forvalidation_error,retry_afterforservice_unavailable). Shape depends onerror.code; treat as opaque otherwise.Show fields
Empty object (no properties).
-
- request_id string
Server-generated correlation id for the request. Mirrors the
X-Correlation-IDresponse header. Include this when contacting support.
Example response
{
"error": {
"code": "forbidden",
"message": "You do not have permission to access this resource"
},
"request_id": "9f6c4e8a-1d3b-4c8b-9f1e-7a3b1c2d3e4f"
}-
Show fields
-
Stable machine-readable error code from the catalog.
-
Human-readable description suitable for logging.
- details object
Optional, code-specific context (e.g.
errorsarray forvalidation_error,retry_afterforservice_unavailable). Shape depends onerror.code; treat as opaque otherwise.Show fields
Empty object (no properties).
-
- request_id string
Server-generated correlation id for the request. Mirrors the
X-Correlation-IDresponse header. Include this when contacting support.
Example response
{
"error": {
"code": "conflict",
"message": "Resource conflict"
},
"request_id": "9f6c4e8a-1d3b-4c8b-9f1e-7a3b1c2d3e4f"
}-
Show fields
-
Stable machine-readable error code from the catalog.
-
Human-readable description suitable for logging.
- details object
Optional, code-specific context (e.g.
errorsarray forvalidation_error,retry_afterforservice_unavailable). Shape depends onerror.code; treat as opaque otherwise.Show fields
Empty object (no properties).
-
- request_id string
Server-generated correlation id for the request. Mirrors the
X-Correlation-IDresponse header. Include this when contacting support.
Example response
{
"error": {
"code": "rate_limit_exceeded",
"message": "Per-minute rate limit exceeded"
},
"request_id": "9f6c4e8a-1d3b-4c8b-9f1e-7a3b1c2d3e4f"
}-
Show fields
-
Stable machine-readable error code from the catalog.
-
Human-readable description suitable for logging.
- details object
Optional, code-specific context (e.g.
errorsarray forvalidation_error,retry_afterforservice_unavailable). Shape depends onerror.code; treat as opaque otherwise.Show fields
Empty object (no properties).
-
- request_id string
Server-generated correlation id for the request. Mirrors the
X-Correlation-IDresponse header. Include this when contacting support.
Example response
{
"error": {
"code": "internal_error",
"message": "An unexpected error occurred"
},
"request_id": "9f6c4e8a-1d3b-4c8b-9f1e-7a3b1c2d3e4f"
}-
Show fields
-
Stable machine-readable error code from the catalog.
-
Human-readable description suitable for logging.
- details object
Optional, code-specific context (e.g.
errorsarray forvalidation_error,retry_afterforservice_unavailable). Shape depends onerror.code; treat as opaque otherwise.Show fields
Empty object (no properties).
-
- request_id string
Server-generated correlation id for the request. Mirrors the
X-Correlation-IDresponse header. Include this when contacting support.
Example response
{
"error": {
"code": "service_unavailable",
"message": "Service temporarily unavailable, please retry"
},
"request_id": "9f6c4e8a-1d3b-4c8b-9f1e-7a3b1c2d3e4f"
}