Authorization header:
Bash
- All requests must be made over HTTPS
- API keys are environment-specific — sandbox keys don’t work in production and vice versa
- Missing or invalid tokens return
401 Unauthorized
Token Types
Cadana offers three token types for different integration scenarios:
*Can be manually revoked or regenerated at any time.
Org Tokens
The default for most integrations. An Org token gives your backend full access to your organization’s resources — persons, users, payrolls, payments, and settings.Bash
Platform Tokens
These tokens are not restricted to a particular organization. They grant access to the primary organization and any additional businesses created. When using a Platform API Key for business specific actions you must include theX-MultiTenantKey header to specify which business you’re accessing:
Bash
User Tokens
User tokens are scoped to an individual end-user — whether an admin, employee, or contractor. They grant access only to that user’s resources, making them safe for frontend applications (browser or mobile).- Valid for 1 hour, after which a new token must be obtained
- Obtained through Cadana’s built-in authentication or a custom authentication flow (SSO via your own JWT provider)
Which Token Do I Need?
Verify Your Token
GET /v1/me returns the calling key’s access level and the business the request resolved to, including its businessId and tenant key:
Bash
X-MultiTenantKey and the response shows which sub-business your requests operate on — useful for confirming tenant scoping before making changes.
Common Errors
Next Steps
Multi-Tenant Setup
Full guide to Platform API integration
Custom Authentication
SSO and custom JWT integration