Skip to content

List API Keys

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

List API keys, newest first (without secrets: one key’s own answer gives its maker the secret): every key for owners and admins, else one’s own; project_id keeps the keys that reach that project.

limit
Limit
integer
default: 20 >= 1 <= 100

How many items a page holds.

page_token
Page Token
Any of:

The next_page_token of the previous page

string

The previous page’s next_page_token, for the page after it; omitted: the first page.

project_id
Project Id
Any of:
string
/^prj_[0-7][0-9a-hjkmnp-tv-z]{25}$/

Only those of this project; omitted: of every project the caller sees.

inbox_id
Inbox Id
Any of:
string
/^inb_[0-7][0-9a-hjkmnp-tv-z]{25}$/

Only the keys given this inbox.

active
Active
boolean

Only the keys that still work: not revoked, not expired.

Successful Response

Media typeapplication/json
ApiKeyList

A page of the organization’s API keys, revoked included.

object
count
required
Count
integer
next_page_token
required
Next Page Token
Any of:
string
api_keys
required
Api Keys
Array<object>
ApiKeyOut

An API key without its secret.

object
version
required
Version

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

integer
api_key_id
required
Api Key Id
string
/^key_[0-7][0-9a-hjkmnp-tv-z]{25}$/
name
required
Name
string
access
required
KeyAccess

What it was given. It never does more than its maker can now: past that, limited.

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 project or inbox access names, as the caller sees them.

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
limited
required
Limited

Its maker’s access is narrower now than what it was given: it does only what both allow (until they are widened again).

boolean
prefix
required
Prefix
string
created_at
required
Created At
string format: date-time
last_used_at
required
Last Used At
Any of:
string format: date-time
revoked_at
required
Revoked At
Any of:
string format: date-time
expires_at
required
Expires At

When the key stops working by itself (null: never); past it, the key answers 401.

Any of:
string format: date-time

Example

{
"count": 1,
"next_page_token": null,
"api_keys": [
{
"version": 1,
"api_key_id": "key_01je56wqswfmn9pgbc1wq8tjgq",
"name": "CI",
"access": {
"all": "full",
"projects": {},
"inboxes": {},
"organization": []
},
"names": {
"projects": {},
"inboxes": {}
},
"limited": false,
"prefix": "da_4f8K",
"created_at": "2026-12-01T12:00:00Z",
"last_used_at": null,
"revoked_at": null,
"expires_at": null
}
]
}

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