Cosmoner Docs
API Reference

API Keys

Create and manage API keys with scoped permissions for programmatic access.

API keys provide programmatic access to the platform. They support scoped permissions.

Create API Key

POST /v1/api-keys

Creates a new API key with optional permission scopes.

Auth: Required

Request Body:

{
  "name": "CI/CD Key",
  "permissions": ["apps:read", "apps:write", "servers:read"]
}

Available Scopes:

ScopeDescription
servers:readList and view servers
servers:writeCreate and delete servers
apps:readList and view apps, logs, metrics
apps:writeCreate, update, and delete apps
domains:readList and view domains
domains:writeRegister, migrate, and manage domains
email:readView email domains and credentials
email:writeCreate credentials, verify DNS, manage limits
storage:readList buckets and registries
storage:writeCreate and delete storage resources
members:readList project members
members:writeInvite, remove, and update members
support:readList and view support tickets
support:writeCreate and reply to tickets
webhooks:readList endpoints and their delivery history
webhooks:writeCreate, update, test, and delete endpoints

Update API Key

PATCH /v1/api-keys/:id

Updates the API key name and/or permissions.

Auth: Required

Request Body:

{
  "name": "Updated Name",
  "permissions": ["apps:read"]
}

On this page