Create an API key
Mint a new API key on the project. The token is NOT returned — the response carries the key's metadata plus a one-time revealUrl that only a signed-in dashboard session can open.
Scope attenuation: a key created with a delegated credential (an OAuth token or another API key) may not carry a scope that credential does not itself hold. A request that asks for more is refused with 400 SCOPE_ESCALATION rather than quietly narrowed, so the mistake is reported where it was made instead of surfacing later as an unexplained 403. Naming only legacyGrantPreset counts as asking for every scope that preset implies.
Requires the api-keys:write scope — Create, rotate, and revoke API keys — these keep working even after you disconnect this app.
Request
- Base URL: https://api.sendly.now
- URL: https://api.sendly.now/api/projects/{id}/api-keys
- Auth: one of:
- API key in cookie better-auth.session_token
- OAuth 2 (authorization code, authorization URL https://app.sendly.now/api/auth/oauth2/authorize, token URL https://app.sendly.now/api/auth/oauth2/token, scopes: api-keys:write)
Path parameters
Project id.
Request body
Response
API key created; the secret is behind the reveal link.
Changes
No recorded changes to this operation across all 1 revision of this API.