Authentication
Bearer Token
Section titled “Bearer Token”All endpoints require a Bearer token in the Authorization header:
curl -H "Authorization: Bearer your-token" https://app.com/kick/healthToken Configuration
Section titled “Token Configuration”Tokens are configured in config/kick.php:
'tokens' => [ env('KICK_TOKEN') => ['*'], env('KICK_READONLY_TOKEN') => ['health:read', 'stats:read'],],Each token maps to an array of scopes.
Scopes
Section titled “Scopes”| Scope | Endpoints |
|---|---|
* | All endpoints |
health:read | GET /kick/health |
stats:read | GET /kick/stats |
logs:read | GET /kick/logs, GET /kick/logs/{file} |
queue:read | GET /kick/queue, GET /kick/queue/failed |
queue:retry | POST /kick/queue/retry/* |
artisan:list | GET /kick/artisan |
artisan:execute | POST /kick/artisan |
Response Codes
Section titled “Response Codes”| Code | Meaning |
|---|---|
| 401 | Missing or invalid token |
| 403 | Token lacks required scope |
| 200 | Success |