Fundamental concepts, standards, and conventions used across the Field Nation API.
Understanding these core concepts will help you integrate more effectively and avoid common pitfalls.
Most list endpoints (like GET /workorders) are paginated to improve performance. The API standardizes pagination using page and per_page query parameters.
| Parameter | Type | Default | Description |
|---|---|---|---|
page | integer | 1 | The page number to retrieve. |
per_page | integer | 25 | Number of items per page. |
Note: The maximum value for per_page may vary by endpoint, but is typically capped at 100 to ensure system stability.
Paginated responses typically include a metadata object with total counts:
{
"metadata": {
"total": 150,
"per_page": 25,
"pages": 6,
"page": 1
},
"results": [ ... ]
}The API supports powerful filtering and sorting capabilities to help you find the exact data you need.
f_)Filters are passed as query parameters prefixed with f_.
f_status: Filter by status ID (e.g., f_status=10 for "Work Done").f_project: Filter by project ID.f_created: Filter by creation date range (often supports start,end or specific dates).Example:
GET /workorders?f_status=10&f_project=55&page=1
Use sort_by and sort_direction to order your results.
sort_by: The field to sort on (e.g., created, status).sort_direction: asc or desc.Example:
GET /workorders?sort_by=created&sort_direction=desc
Content-Type: application/json (unless uploading files).application/json.Field Nation uses a specific object structure for timestamps to explicitly handle Timezones. You must typically send dates in this format.
"start": {
"utc": "2023-11-07 13:00:00"
}YYYY-MM-DD HH:mm:ss (24-hour format).To ensure fair usage and stability, the API enforces rate limits. If you exceed the limit, you will receive a 429 Too Many Requests response.
429 or 5xx error.Standard HTTP status codes are used to indicate success or failure. For detailed resolution steps, see the Troubleshooting guide.
| Code | Meaning |
|---|---|
200 | OK. The request was successful. |
201 | Created. A resource was successfully created. |
400 | Bad Request. Invalid payload. |
401 | Unauthorized. Authentication failed. |
403 | Forbidden. Permission denied. |
404 | Not Found. Resource does not exist. |
500 | Server Error. Internal error. |
If you encounter issues, check these common pitfalls:
type_of_work, project_id, or template_id must valid in the environment you are using (Sandbox IDs != Production IDs).{ "utc": "..." } format.Last updated on