Get Me
curl -s "https://api.yoagent.dev/v0/me" \ -H "Authorization: Bearer $YOAGENT_KEY"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();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()The signed-in person (if any) and their organization.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Successful Response
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
The person signed in to the dashboard; null for an API key (the call OpenAPI shows).
The signed-in person.
An organization and the caller’s role in it (null for an API key).
object
Goes up by one on every change: of two copies, the one with the higher version is the newer.
Billing plan of an organization.
An organization and the caller’s role in it (null for an API key).
object
Goes up by one on every change: of two copies, the one with the higher version is the newer.
Billing plan of an organization.
The caller’s access to projects (a key’s also says whether it may make projects); null: every project, everything.
An API key’s access: where and what (as Access), and what it may do in the organization itself
(organization).
object
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.
What it allows in a project, by its id: in place of all there.
object
Single inboxes it reaches, by their id: the inbox and its mail, whatever its project’s grant.
object
A grant on one inbox: the project it lives in and what it allows on the inbox and its mail.
object
The project the inbox is in.
What it allows on the inbox and its mail: full (everything, permissions added later included) or a list of
permissions.
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.
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
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.
What it allows in a project, by its id: in place of all there.
object
Single inboxes it reaches, by their id: the inbox and its mail, whatever its project’s grant.
object
A grant on one inbox: the project it lives in and what it allows on the inbox and its mail.
object
The project the inbox is in.
What it allows on the inbox and its mail: full (everything, permissions added later included) or a list of
permissions.
The names of the projects and inboxes access names.
object
object
A project as an access’s names show it: its name and its slug (the dashboard’s color for it).
object
The roles the caller may give a member or an invitation (empty without members; owner only by an
owner).
Where the API and MCP live (<api_url>/mcp/mail), for the commands the dashboard shows.
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 of the organization (never over the most a reorder takes, so their order can always be changed).
Inboxes of the organization, every project’s test@ too; the catch-all inbox of each domain is not
counted.
Days its activity log is kept.
Calls of its API keys and agent connections in a minute, REST and MCP tools together.
People in the organization, pending invitations included.
Custom domains of the organization, waiting and failed ones too.
Webhooks of the organization, paused ones too.
Webhook POSTs of the whole organization in a minute (retries too); one more is skipped, never sent later.
A project’s catch-all may be on (its catch_all_enabled).
A project may make inboxes from mail to unknown addresses (its auto_create_inboxes).
A project’s plus addresses may be on (its plus_addresses_enabled).
Inboxes of a custom domain may send, once its sending is verified (the domain’s sending_status).
Recipients of sent mail (To, Cc, Bcc; our own domains too) in a minute.
Recipients of sent mail in a UTC day.
New outside recipients are let in at once; without it they come slowly: what keeps a fresh account from mailing a list it bought.
For each paid feature the organization lacks, the plan that has it (the dashboard’s lock offers it).
object
Billing plan of an organization.
The organization’s subscription: for its owners only (null for others and API keys).
The organization’s subscription as Stripe last told (only its owner sees it).
object
Payments are set up on this server; false: nothing can be bought here.
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.
A Checkout was started and is not finished.
A subscription may be bought in the dashboard now (none is going on).
The dashboard opens Stripe’s Customer Portal (card, invoices, cancelling).
Whether the caller is an admin of the whole service: the dashboard shows its Admin pages.
Example
{ "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
Section titled “default”An error (400, 401, 403, 404, 405, 409, 413, 429, 500, 503), in the one shape every call answers: Errors.