API Authentication
How to authenticate with the FoPost API.
API Authentication
All API requests require a valid API key.
Header authentication
Include your key in the Authorization header:
Authorization: Bearer owlsk_your_api_key_hereExample request
curl -X POST https://api.owlstack.app/v1/publish \
-H "Authorization: Bearer owlsk_your_api_key_here" \
-H "Content-Type: application/json" \
-d '{
"body": "Hello from the API!",
"platforms": ["twitter"]
}'API key format
OwlStack API keys are prefixed with owlsk_ followed by a random string:
owlsk_a1b2c3d4e5f6g7h8i9j0...Key management
- Create keys at app.owlstack.app under Project Settings > API Keys
- Each key belongs to a project and inherits the project's plan
- Keys can be revoked immediately
- Create separate keys for production, staging, and development
Errors
| Status | Code | Description |
|---|---|---|
| 401 | unauthorized | Missing or invalid API key |
| 403 | forbidden | Key valid but insufficient permissions |