Authentication
The Cedius API uses secret API keys.
Include a key as a bearer token:
http
Authorization: Bearer YOUR_API_KEYPortfolio note: The credentials shown here are examples and do not authenticate against a live service.
Key types
Test keys
text
cedius_test_sk_...Use test keys while developing or validating an integration.
Live keys
text
cedius_live_sk_...In a real deployment, live keys would provide access to production business data and must be treated as secrets.
Protect your key
Do not:
- commit a key to Git;
- place a secret key in frontend JavaScript;
- include it in screenshots;
- share it in support messages;
- embed it in a public web or mobile application.
Store secrets in environment variables or a secret manager.
bash
export CEDIUS_API_KEY="cedius_test_sk_example"Missing or invalid credentials
http
401 Unauthorizedjson
{
"error": {
"code": "authentication_failed",
"message": "A valid API key is required.",
"request_id": "req_71fa2c"
}
}Authentication vs authorization
Authentication identifies the caller. Authorization determines what the caller may do.
Cedius uses:
ownermanagerstaff
A valid caller without permission receives 403 Forbidden.
See Permissions.