Authentication
Secure access to the Tiquo API using API keys.API Key Authentication
Bearer Token
Include in Authorization header:Full Example
API Key Types
Live Keys
Production keys for live data:- Prefix:
sk_live_ - Access real customer data
- Process real transactions
Test Keys
Sandbox keys for development:- Prefix:
sk_test_ - Isolated test environment
- No real transactions
Obtaining API Keys
1
Go to Settings
Navigate to Settings → API Keys
2
Create Key
Click Create API Key
3
Select Environment
Choose Live or Test
4
Set Scopes
Select permissions
5
Copy Key
Save immediately
API Keys Setup
Detailed API key management
Scopes
Available Scopes
| Scope | Permission |
|---|---|
customers:read | Read customer data |
customers:write | Create/update customers |
orders:read | Read orders |
orders:write | Create/manage orders |
services:read | Read services |
services:write | Manage services |
products:read | Read products |
products:write | Manage products |
analytics:read | Access analytics |
settings:read | Read settings |
settings:write | Modify settings |
Checking Scopes
Insufficient scope returns 403:Authentication Errors
401 Unauthorized
Invalid or missing API key:- Missing Authorization header
- Malformed API key
- Revoked API key
403 Forbidden
Valid key but insufficient permissions:- Missing required scope
- Organization-level restriction
- Resource doesn’t belong to you
Security Best Practices
Store Keys Securely
Store Keys Securely
Use environment variables:
Use Minimum Scopes
Use Minimum Scopes
Only request permissions you need:
- Read-only for dashboards
- Write only when creating data
Rotate Regularly
Rotate Regularly
Rotate keys periodically:
- Create new key
- Update applications
- Revoke old key
Use Test Keys for Development
Use Test Keys for Development
Never use live keys during:
- Local development
- Automated testing
- CI/CD pipelines
Server-Side Only
Bad Practice:Organization Context
API keys are scoped to organizations:- Each key belongs to one organization
- Access only that organization’s data
- Use separate keys per organization if needed