Authentication
All Recuro API endpoints require authentication via a Bearer token.
Getting your API token
- Log in to the Recuro dashboard
- Go to Settings > API
- Click Generate Token (or Regenerate to replace an existing one)
- Copy the token — it is shown only once
Using the token
Pass your token in the Authorization header with every API request:
curl -X POST https://app.recurohq.com/api/crons \ -H "Authorization: Bearer YOUR_API_TOKEN" \ -H "Content-Type: application/json" \ -d '{ ... }'How authentication works
- Recuro hashes your token using SHA-256
- The hash is matched against stored token hashes in the database
- If a match is found, the request runs in the context of the associated user’s current team
- All resources created belong to that team
The same token works for the REST API and the MCP server.
Error responses
Missing token:
{ "error": "Missing authorization token" }Status: 401 Unauthorized
Invalid token:
{ "error": "Invalid webhook token" }Status: 401 Unauthorized
Team scope
Your API token operates in the context of your current team. If you belong to multiple teams, switch teams in the dashboard before making API calls to target the correct team.
All API calls create and access resources within that team only. Resources from other teams are never accessible.
Security recommendations
- Store your API token in environment variables, not in code
- Rotate your token periodically from Settings > API
- Use separate tokens (and separate teams) for staging and production
- Never expose your token in client-side code or public repositories
Next steps
- POST /api/crons — Create a cron job
- POST /api/jobs — Schedule a one-off job
- Webhook Signing — Verify outbound request authenticity