Skip to content

Get Me

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

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

Successful Response

Media typeapplication/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

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
avatar_url
required
Avatar Url
Any of:
string
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
/^img_[0-7][0-9a-hjkmnp-tv-z]{25}$/
slug
required
Slug
string
plan
required
Plan

Billing plan of an organization.

string
Allowed values: free pro
role
required
Any of:
Role

What a person may do in an organization.

string
Allowed values: owner admin member
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 format: date-time
sending_suspended_reason
required
Sending Suspended Reason

Why, in words for people.

Any of:
string
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 format: date-time
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
/^img_[0-7][0-9a-hjkmnp-tv-z]{25}$/
slug
required
Slug
string
plan
required
Plan

Billing plan of an organization.

string
Allowed values: free pro
role
required
Any of:
Role

What a person may do in an organization.

string
Allowed values: owner admin member
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 format: date-time
sending_suspended_reason
required
Sending Suspended Reason

Why, in words for people.

Any of:
string
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 format: date-time
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

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
Allowed value: full
projects
Projects

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

object
key
additional properties
Any of:
string
Allowed value: full
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
Allowed value: full
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
names
required
AccessNames

The names of the projects and inboxes access names.

object
projects
required
Projects
object
key
additional properties
Any of:
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
inboxes
required
Inboxes
object
key
additional properties
Any of:
string
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
retention_days
required
Retention Days

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

Any of:
integer
> 0
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
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

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
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 format: date-time
cancel_at
required
Cancel At

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

Any of:
string format: date-time
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
currency
required
Currency
Any of:
string
interval
required
Interval
Any of:
string
offer
required
Any of:
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
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
admin
required
Admin

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

boolean

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
}

An error (400, 401, 403, 404, 405, 409, 413, 429, 500, 503), in the one shape every call answers: Errors.