Complete reference for the Precifarm REST API
All API requests should be made to:
https://api.precifarm.comInclude your API key in the Authorization header:
curl -X GET "https://api.precifarm.com/v1/projects" \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json"
Authenticate and manage API access
/v1/auth/tokenExchange API key for access token
/v1/auth/refreshRefresh an access token
/v1/auth/revokeRevoke an access token
API requests are rate limited based on your plan:
| Plan | Requests/Minute | Requests/Day |
|---|---|---|
| Free | 60 | 1,000 |
| Pro | 300 | 10,000 |
| Enterprise | 1,000 | 100,000 |
Rate limit headers are included in every response:
| Code | Description |
|---|---|
200 | Success |
201 | Created successfully |
400 | Bad request - invalid parameters |
401 | Unauthorized - invalid or missing API key |
403 | Forbidden - insufficient permissions |
404 | Not found |
429 | Rate limit exceeded |
500 | Internal server error |