---
title: "Get Me"
url: "https://docs.yoagent.dev/reference/rest-api/operations/getme"
---

# Get Me

GET

/v0/me

```sh
curl -s "https://api.yoagent.dev/v0/me" \
  -H "Authorization: Bearer $YOAGENT_KEY"
```

```js
const response = await fetch("https://api.yoagent.dev/v0/me", {
  headers: {
    Authorization: `Bearer ${process.env.YOAGENT_KEY}`,
  },
});
if (!response.ok) throw new Error(await response.text());
const data = await response.json();
```

```python
import os

import requests

response = requests.get(
    "https://api.yoagent.dev/v0/me",
    headers={"Authorization": f"Bearer {os.environ['YOAGENT_KEY']}"},
    timeout=60,
)
response.raise_for_status()
data = response.json()
```

- api.yoagent.dev/v0/me

The signed-in person (if any) and their organization.

## Authorizations

- **[ApiKey](https://docs.yoagent.dev/reference/rest-api#apikey)**

## Responses

### 200

Successful Response

application/json

_Me_

Who is calling: the person (absent for API keys), the organization this request acts in, every organization the person belongs to, and what the caller may do here.

object

**user**

required

The person signed in to the dashboard; null for an API key (the call OpenAPI shows).

Any of:

**UserOut**

_UserOut_

The signed-in person.

object

**version**

required

_Version_

Goes up by one on every change: of two copies, the one with the higher version is the newer.

integer

**user_id**

required

_User Id_

string

/^usr\_\[0-7]\[0-9a-hjkmnp-tv-z]{25}$/

**email**

required

_Email_

string

**name**

required

_Name_

Any of:

**string**

string

**null**

null

**avatar_url**

required

_Avatar Url_

Any of:

**string**

string

**null**

null

**null**

null

**organization**

required

_OrganizationOut_

An organization and the caller’s role in it (null for an API key).

object

**version**

required

_Version_

Goes up by one on every change: of two copies, the one with the higher version is the newer.

integer

**organization_id**

required

_Organization Id_

string

/^org\_\[0-7]\[0-9a-hjkmnp-tv-z]{25}$/

**name**

required

_Name_

string

**image**

required

_Image_

Its picture’s id; null: none.

Any of:

**string**

string

/^img\_\[0-7]\[0-9a-hjkmnp-tv-z]{25}$/

**null**

null

**slug**

required

_Slug_

string

**plan**

required

_Plan_

Billing plan of an organization.

string

Allowed values: free pro

**role**

required

Any of:

**Role**

_Role_

What a person may do in an organization.

string

Allowed values: owner admin member

**null**

null

**sending_suspended_at**

required

_Sending Suspended At_

When its mail to the outside was paused (complaints, bounces, SES); null: it sends. Mail to YoAgent inboxes goes either way; an operator lifts it.

Any of:

**string**

string format: date-time

**null**

null

**sending_suspended_reason**

required

_Sending Suspended Reason_

Why, in words for people.

Any of:

**string**

string

**null**

null

**history_kept_until**

required

_History Kept Until_

Until when its mail and activity are kept as before a move to a plan that keeps them shorter; null: the plan’s terms hold.

Any of:

**string**

string format: date-time

**null**

null

**organizations**

required

_Organizations_

Array\<object>

_OrganizationOut_

An organization and the caller’s role in it (null for an API key).

object

**version**

required

_Version_

Goes up by one on every change: of two copies, the one with the higher version is the newer.

integer

**organization_id**

required

_Organization Id_

string

/^org\_\[0-7]\[0-9a-hjkmnp-tv-z]{25}$/

**name**

required

_Name_

string

**image**

required

_Image_

Its picture’s id; null: none.

Any of:

**string**

string

/^img\_\[0-7]\[0-9a-hjkmnp-tv-z]{25}$/

**null**

null

**slug**

required

_Slug_

string

**plan**

required

_Plan_

Billing plan of an organization.

string

Allowed values: free pro

**role**

required

Any of:

**Role**

_Role_

What a person may do in an organization.

string

Allowed values: owner admin member

**null**

null

**sending_suspended_at**

required

_Sending Suspended At_

When its mail to the outside was paused (complaints, bounces, SES); null: it sends. Mail to YoAgent inboxes goes either way; an operator lifts it.

Any of:

**string**

string format: date-time

**null**

null

**sending_suspended_reason**

required

_Sending Suspended Reason_

Why, in words for people.

Any of:

**string**

string

**null**

null

**history_kept_until**

required

_History Kept Until_

Until when its mail and activity are kept as before a move to a plan that keeps them shorter; null: the plan’s terms hold.

Any of:

**string**

string format: date-time

**null**

null

**access**

required

_Access_

The caller’s access to projects (a key’s also says whether it may make projects); null: every project, everything.

Any of:

**KeyAccess**

_KeyAccess_

An API key’s access: where and what (as `Access`), and what it may do in the organization itself (`organization`).

object

**all**

_All_

What it allows in every project, present and future: `full` (everything, permissions added later included) or a list of permissions; null: no project as a whole.

Any of:

**string**

string

Allowed value: full

**Array\<string>**

Array\<string>

Allowed values: inbox_read inbox_create inbox_update inbox_delete message_read message_update message_delete message_send webhook_read webhook_create webhook_update webhook_delete domain_read domain_create domain_update domain_delete

**null**

null

**projects**

_Projects_

What it allows in a project, by its id: in place of `all` there.

object

**_key_**

additional properties

Any of:

**string**

string

Allowed value: full

**Array\<string>**

Array\<string>

Allowed values: inbox_read inbox_create inbox_update inbox_delete message_read message_update message_delete message_send webhook_read webhook_create webhook_update webhook_delete domain_read domain_create domain_update domain_delete

**inboxes**

_Inboxes_

Single inboxes it reaches, by their id: the inbox and its mail, whatever its project’s grant.

object

**_key_**

additional properties

_InboxGrant_

A grant on one inbox: the project it lives in and what it allows on the inbox and its mail.

object

**project_id**

required

_Project Id_

The project the inbox is in.

string

/^prj\_\[0-7]\[0-9a-hjkmnp-tv-z]{25}$/

**grant**

required

_Grant_

What it allows on the inbox and its mail: `full` (everything, permissions added later included) or a list of permissions.

Any of:

**string**

string

Allowed value: full

**Array\<string>**

Array\<string>

Allowed values: inbox_read inbox_update message_read message_update message_delete message_send domain_read

**organization**

_Organization_

What the key may do in the organization itself: create, rename and delete projects, within the plan’s limit and the role of the person who made it.

Array\<string>

default:

Allowed values: project_create project_update project_delete

**Access**

_Access_

Where and what: `all` covers every project, present and future; `projects` adds or narrows it per project; `inboxes` adds single inboxes (the inbox and its mail, whatever its project’s grant).

object

**all**

_All_

What it allows in every project, present and future: `full` (everything, permissions added later included) or a list of permissions; null: no project as a whole.

Any of:

**string**

string

Allowed value: full

**Array\<string>**

Array\<string>

Allowed values: inbox_read inbox_create inbox_update inbox_delete message_read message_update message_delete message_send webhook_read webhook_create webhook_update webhook_delete domain_read domain_create domain_update domain_delete

**null**

null

**projects**

_Projects_

What it allows in a project, by its id: in place of `all` there.

object

**_key_**

additional properties

Any of:

**string**

string

Allowed value: full

**Array\<string>**

Array\<string>

Allowed values: inbox_read inbox_create inbox_update inbox_delete message_read message_update message_delete message_send webhook_read webhook_create webhook_update webhook_delete domain_read domain_create domain_update domain_delete

**inboxes**

_Inboxes_

Single inboxes it reaches, by their id: the inbox and its mail, whatever its project’s grant.

object

**_key_**

additional properties

_InboxGrant_

A grant on one inbox: the project it lives in and what it allows on the inbox and its mail.

object

**project_id**

required

_Project Id_

The project the inbox is in.

string

/^prj\_\[0-7]\[0-9a-hjkmnp-tv-z]{25}$/

**grant**

required

_Grant_

What it allows on the inbox and its mail: `full` (everything, permissions added later included) or a list of permissions.

Any of:

**string**

string

Allowed value: full

**Array\<string>**

Array\<string>

Allowed values: inbox_read inbox_update message_read message_update message_delete message_send domain_read

**null**

null

**names**

required

_AccessNames_

The names of the projects and inboxes `access` names.

object

**projects**

required

_Projects_

object

**_key_**

additional properties

Any of:

**ProjectName**

_ProjectName_

A project as an access’s names show it: its name and its slug (the dashboard’s color for it).

object

**name**

required

_Name_

string

**slug**

required

_Slug_

string

**null**

null

**inboxes**

required

_Inboxes_

object

**_key_**

additional properties

Any of:

**string**

string

**null**

null

**permissions**

required

_Permissions_

Array\<string>

Allowed values: api_keys all_api_keys project_create project_update project_delete members organization

**assignable_roles**

required

_Assignable Roles_

The roles the caller may give a member or an invitation (empty without `members`; `owner` only by an owner).

Array\<string>

Allowed values: owner admin member

**api_url**

required

_Api Url_

Where the API and MCP live (`<api_url>/mcp/mail`), for the commands the dashboard shows.

string

**entitlements**

required

_Entitlements_

What the organization may have and do now: its plan’s limits and paid features with its overrides (the dashboard locks what it lacks).

object

**projects**

required

_Projects_

Projects of the organization (never over the most a reorder takes, so their order can always be changed).

integer

<= 1000

**inboxes**

required

_Inboxes_

Inboxes of the organization, every project’s `test@` too; the catch-all inbox of each domain is not counted.

integer

**messages_per_month**

required

_Messages Per Month_

Messages sent in the organization’s quota period (its paid period, else a month from its registration day; each send, reply and forward is one, whatever its recipients); null: no limit (still counted).

Any of:

**integer**

integer

**null**

null

**retention_days**

required

_Retention Days_

Days the organization’s mail is kept; null: kept until deleted.

Any of:

**integer**

integer

\> 0

**null**

null

**activity_retention_days**

required

_Activity Retention Days_

Days its activity log is kept.

integer

\> 0

**received_per_day**

required

_Received Per Day_

Messages its inboxes take in a UTC day (each recipient address of the organization in a transaction is one); null: no limit.

Any of:

**integer**

integer

**null**

null

**api_requests_per_minute**

required

_Api Requests Per Minute_

Calls of its API keys and agent connections in a minute, REST and MCP tools together.

integer

\> 0

**members**

required

_Members_

People in the organization, pending invitations included.

integer

\> 0

**custom_domains**

required

_Custom Domains_

Custom domains of the organization, waiting and failed ones too.

integer

**webhooks**

required

_Webhooks_

Webhooks of the organization, paused ones too.

integer

**webhook_deliveries_per_minute**

required

_Webhook Deliveries Per Minute_

Webhook POSTs of the whole organization in a minute (retries too); one more is skipped, never sent later.

integer

\> 0

**catch_all**

required

_Catch All_

A project’s catch-all may be on (its `catch_all_enabled`).

boolean

**auto_create_inboxes**

required

_Auto Create Inboxes_

A project may make inboxes from mail to unknown addresses (its `auto_create_inboxes`).

boolean

**plus_addresses**

required

_Plus Addresses_

A project’s plus addresses may be on (its `plus_addresses_enabled`).

boolean

**custom_domain_sending**

required

_Custom Domain Sending_

Inboxes of a custom domain may send, once its sending is verified (the domain’s `sending_status`).

boolean

**recipients_per_minute**

required

_Recipients Per Minute_

Recipients of sent mail (To, Cc, Bcc; our own domains too) in a minute.

integer

\> 0

**recipients_per_day**

required

_Recipients Per Day_

Recipients of sent mail in a UTC day.

integer

\> 0

**new_recipients_without_ramp**

required

_New Recipients Without Ramp_

New outside recipients are let in at once; without it they come slowly: what keeps a fresh account from mailing a list it bought.

boolean

**upgrades**

required

_Upgrades_

For each paid feature the organization lacks, the plan that has it (the dashboard’s lock offers it).

object

**_key_**

additional properties

_Plan_

Billing plan of an organization.

string

Allowed values: free pro

**billing**

required

The organization’s subscription: for its owners only (null for others and API keys).

Any of:

**BillingOut**

_BillingOut_

The organization’s subscription as Stripe last told (only its owner sees it).

object

**enabled**

required

_Enabled_

Payments are set up on this server; false: nothing can be bought here.

boolean

**status**

required

_Status_

The Stripe status of the subscription that governs the plan (`active`, `past_due`, `canceled`…); null: none ever.

Any of:

**string**

string

**null**

null

**gives_plan**

required

_Gives Plan_

That subscription gives the organization its plan (paid, at a price of ours); false: the plan is not its doing (Free, or one given by hand) and its end changes nothing.

boolean

**checkout_pending**

required

_Checkout Pending_

A Checkout was started and is not finished.

boolean

**period_end**

required

_Period End_

When the paid period ends: renewed then, unless `cancel_at`.

Any of:

**string**

string format: date-time

**null**

null

**cancel_at**

required

_Cancel At_

When the subscription ends (cancelled in the Customer Portal).

Any of:

**string**

string format: date-time

**null**

null

**amount**

required

_Amount_

The subscription’s price a period (its own, maybe an older one), in cents of `currency`: before a promotion code’s discount and tax, which Stripe applies on the invoice.

Any of:

**integer**

integer

**null**

null

**currency**

required

_Currency_

Any of:

**string**

string

**null**

null

**interval**

required

_Interval_

Any of:

**string**

string

**null**

null

**offer**

required

Any of:

**Offer**

_Offer_

The paid plan on sale and its price.

object

**plan**

required

_Plan_

Billing plan of an organization.

string

Allowed values: free pro

**amount**

required

_Amount_

In cents of `currency`, tax not included.

integer

**currency**

required

_Currency_

string

**interval**

required

_Interval_

string

**null**

null

**can_checkout**

required

_Can Checkout_

A subscription may be bought in the dashboard now (none is going on).

boolean

**can_portal**

required

_Can Portal_

The dashboard opens Stripe’s Customer Portal (card, invoices, cancelling).

boolean

**null**

null

**admin**

required

_Admin_

Whether the caller is an admin of the whole service: the dashboard shows its Admin pages.

boolean

#### Example

```json
{
  "user": null,
  "organization": {
    "version": 1,
    "organization_id": "org_01je56wqswfmn9pgbc1wq8tjgq",
    "name": "Acme",
    "image": "img_01je56wqswfmn9pgbc1wq8tjgq",
    "slug": "r7d2mq",
    "plan": "free",
    "role": null,
    "sending_suspended_at": null,
    "sending_suspended_reason": null,
    "history_kept_until": null
  },
  "organizations": [
    {
      "version": 1,
      "organization_id": "org_01je56wqswfmn9pgbc1wq8tjgq",
      "name": "Acme",
      "image": "img_01je56wqswfmn9pgbc1wq8tjgq",
      "slug": "r7d2mq",
      "plan": "free",
      "role": null,
      "sending_suspended_at": null,
      "sending_suspended_reason": null,
      "history_kept_until": null
    }
  ],
  "access": {
    "all": "full",
    "projects": {},
    "inboxes": {},
    "organization": []
  },
  "names": {
    "projects": {},
    "inboxes": {}
  },
  "permissions": [],
  "assignable_roles": [],
  "api_url": "https://api.yoagent.dev",
  "entitlements": {
    "projects": 2,
    "inboxes": 10,
    "messages_per_month": 3300,
    "retention_days": 30,
    "activity_retention_days": 30,
    "received_per_day": 500,
    "api_requests_per_minute": 60,
    "members": 2,
    "custom_domains": 1,
    "webhooks": 3,
    "webhook_deliveries_per_minute": 5,
    "catch_all": false,
    "auto_create_inboxes": false,
    "plus_addresses": false,
    "custom_domain_sending": true,
    "recipients_per_minute": 10,
    "recipients_per_day": 150,
    "new_recipients_without_ramp": false
  },
  "upgrades": {
    "auto_create_inboxes": "pro",
    "catch_all": "pro",
    "new_recipients_without_ramp": "pro",
    "plus_addresses": "pro"
  },
  "billing": null,
  "admin": false
}
```

### default

An error (400, 401, 403, 404, 405, 409, 413, 429, 500, 503), in the one shape every call answers: [Errors](https://docs.yoagent.dev/reference/conventions#errors).
