Authentication
The YipYap API authenticates with API keys sent in the Authorization header. The console signs in with a session cookie, which is not part of the public contract.
Getting an API key
Section titled “Getting an API key”See Integrations: API Keys for the setup guide. An owner or admin creates keys in the console under Settings > API Keys. The full key is shown once, when it is created.
Using an API key
Section titled “Using an API key”Send the key as a Bearer token on every request:
curl https://console.yipyap.run/api/v1/monitors \ -H "Authorization: Bearer $YIPYAP_API_KEY"The header must start with Bearer (with the space). A missing header, a header without that prefix, or an unknown or deleted key returns 401.
Key format
Section titled “Key format”Every key is yy_ followed by 64 lowercase hexadecimal characters (32 random bytes), 67 characters in all:
yy_0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdefThere is one format for every key. Keys do not encode an environment (live or test) or an edition.
The console and GET /api/v1/org/api-keys show a key’s prefix: its first 11 characters (yy_ plus 8 hex characters). Use it to tell keys apart. It is not enough to authenticate.
Secret scanning
Section titled “Secret scanning”To catch leaked keys in code, logs or chat, match this pattern:
\byy_[0-9a-f]{64}\bIf a scanner finds a key, delete it under Settings > API Keys and create a new one. Deleting a key stops it working at once.
Scopes
Section titled “Scopes”A key can be limited to a list of scopes. A key with no scopes is unrestricted: it can call every endpoint an API key can reach.
Once a key has at least one scope, these route groups check for their scope and return 403 (api key missing required scope: <scope>) without it:
| Scope | Routes |
|---|---|
monitors | /monitors/**, /monitor-groups/**, /monitor-states/** |
alerts | /alerts/** |
escalation_policies | /escalation-policies/** |
notification_channels | /notification-channels/** |
maintenance_windows | /maintenance-windows/** |
Other routes do not check scopes today, so a key with any scope can call them.
A key whose scopes are all read scopes (read, or names ending in :read) is read-only: POST, PUT, PATCH and DELETE return 403 (api key is read-only). The route groups above match exact scope names, so a key holding only monitors:read is read-only and is also refused by the /monitors routes. Use the plain scope names in the table.
An API key acts with its own role, not the role of the person who created it. Routes that need the owner or admin role (managing members, org settings, SSO connections, API keys, integrations and billing) return 403 (insufficient permissions) to every API key. Routes a member can use, such as monitors, monitor groups, teams and incidents, accept API keys, limited by the key’s scopes.
Session cookies
Section titled “Session cookies”The console signs in with POST /api/v1/auth/login and receives an HttpOnly session cookie. Those endpoints are for the console. Integrations should use an API key.
Service-to-service authentication
Section titled “Service-to-service authentication”CloudEvents ingest (POST /api/v1/cloudevents/ingest/{token}, YipYap Cloud only) authenticates with the monitor’s integration key in the path, not an API key. An organization can also require an OIDC-issued Bearer JWT on top of that key. See Knative Eventing: Authentication.
Impersonation
Section titled “Impersonation”There is no public impersonation API. Customer API keys and sessions cannot reach YipYap’s staff tools.