Authentication

https://api.cerulea.app/v1

Cerulea uses a dual authentication system, API keys for server-to-server communication and OAuth 2.0 for user-facing applications and third-party integrations.

API Key Authentication

For server-to-server communication and automated workflows.

POST /auth/api-keys

Create a new API key with custom scopes and expiration

Include your API key in every request header:

BASH
curl https://api.cerulea.app/v1/workspaces \
  -H "X-API-Key: ck_live_your_api_key_here" \
  -H "Content-Type: application/json"

OAuth 2.0

For user-facing applications and third-party integrations.

BASH
curl -X POST https://api.cerulea.app/oauth/token \
  -d "grant_type=authorization_code" \
  -d "code=AUTH_CODE" \
  -d "client_id=YOUR_CLIENT_ID" \
  -d "redirect_uri=https://yourapp.com/callback"

Available Scopes

ScopeDescription
workspace:readRead workspace data
workspace:writeCreate and modify workspaces
blockchain:readQuery blockchain data
blockchain:writeDeploy and manage blockchains
blockchain:deployDeploy smart contracts
validator:readView validators
validator:writeManage validators
governance:readView governance proposals
governance:writeCreate and vote on proposals
adminFull administrative access