List API Keys
curl -s "https://api.yoagent.dev/v0/api-keys" \ -H "Authorization: Bearer $YOAGENT_KEY"const response = await fetch("https://api.yoagent.dev/v0/api-keys", { 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/api-keys", headers={"Authorization": f"Bearer {os.environ['YOAGENT_KEY']}"}, timeout=60,)response.raise_for_status()data = response.json()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.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”How many items a page holds.
Only the keys that still work: not revoked, not expired.
Responses
Section titled “Responses”Successful Response
A page of the organization’s API keys, revoked included.
object
An API key without its secret.
object
Goes up by one on every change: of two copies, the one with the higher version is the newer.
What it was given. It never does more than its maker can now: past that, limited.
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.
The names of the project or inbox access names, as the caller sees them.
object
object
A project as an access’s names show it: its name and its slug (the dashboard’s color for it).
object
Its maker’s access is narrower now than what it was given: it does only what both allow (until they are widened again).
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 } ]}default
Section titled “default”An error (400, 401, 403, 404, 405, 409, 413, 429, 500, 503), in the one shape every call answers: Errors.