title: API Keys
description: Create and manage API keys for authenticating Wontopos API requests.
API Keys
API keys are the simplest way to authenticate with the Wontopos API. They are long-lived tokens tied to your account.
Creating a key
- Go to Settings → API Keys in your dashboard
- Click Create new key
- Give it a descriptive name (e.g.
production-backend) - Select the scopes you need
- Copy and securely store the key — it is only shown once
Store keys securely
The full key is only displayed at creation time. Store it in a secrets manager or environment variable immediately.
Key types
| Prefix | Environment | Use | Base URL |
|---|---|---|---|
sk_live_... | Production | Live traffic | https://api.wontopos.com |
sk_test_... | Sandbox | Development and testing | https://sandbox.wontopos.com |
Use test keys during development
Test keys have the same API surface but operate against sandbox data. No real charges are incurred.
Using your key
Include the key in the Authorization header of every request:
GET /v1/marketplace/apis HTTP/1.1
Host: api.wontopos.com
Authorization: Bearer sk_live_your_key_here # cURL
curl https://api.wontopos.com/v1/marketplace/apis
-H "Authorization: Bearer sk_live_your_key_here" // JavaScript
const res = await fetch("https://api.wontopos.com/v1/marketplace/apis", {
headers: {
Authorization: "Bearer sk_live_your_key_here",
},
}); # Python
import requests
resp = requests.get(
"https://api.wontopos.com/v1/marketplace/apis",
headers={"Authorization": "Bearer sk_live_your_key_here"},
) Key rotation
To rotate a key without downtime:
- Create a new key in the dashboard with the same scopes
- Update your services to use the new key
- Verify requests succeed with the new key
- Delete the old key
Tip
Rotate keys on a regular schedule (e.g. every 90 days) or immediately if you suspect a compromise.
Rate limits per key
Each API key has its own rate limit allocation.
| Plan | Requests/min | Requests/day |
|---|---|---|
| Free | 60 | 1,000 |
| Pro | 600 | 50,000 |
| Enterprise | 6,000 | Unlimited |
When rate limited, the API returns 429 Too Many Requests with a Retry-After header.
Revoking a key
Delete a key from Settings → API Keys in the dashboard. Requests using the deleted key will immediately return 401 Unauthorized.
Revocation is immediate
Deleting a key cannot be undone. All active requests using that key will fail immediately.