Job types and pipelines
Read the account's job types and the status values each record type accepts.
Two read-only lookups give you the IDs and status values you need before you
create or update jobs, visits and other records. Both need the
settings:read scope.
| Lookup | Path | Use it for |
|---|---|---|
| Job types | /api/v1/job-types | The valid values for a job's jobTypeId. |
| Pipelines | /api/v1/pipelines | The valid status values for each record type, and which moves are allowed. |
Fetch them once at integration startup and cache the result. Re-fetch when your team changes job types or pipeline stages in FieldCamp.
Job types
curl https://api.fieldcamp.ai/api/v1/job-types \
-H "Authorization: Bearer $FIELDCAMP_API_KEY"| Field | Description |
|---|---|
id | Pass this as jobTypeId on a job. |
name | The job type's name. |
description | Free text, when set. |
estimatedDuration | The job type's default duration, when set. |
isDefault | true for the account's default job type. |
jobFormIds | IDs of the job form templates attached to this job type. |
createdAt, updatedAt | ISO-8601 timestamps. |
The list is cursor paged: limit (1–100, default 50) and cursor set to
meta.next.cursor from the previous response. updated_since (ISO-8601)
returns only job types changed since that time.
Pipelines
A pipeline is the ordered list of stages a record moves through, such as a
job's statuses. GET /api/v1/pipelines returns every pipeline on the
account: job, visit, client, request, estimate, invoice and each custom
object. Add ?object=<slug> for one record type.
curl "https://api.fieldcamp.ai/api/v1/pipelines?object=job" \
-H "Authorization: Bearer $FIELDCAMP_API_KEY"| Field | Description |
|---|---|
object | The record type, for example job. |
builtin | true for FieldCamp's own record types, false for a custom object. |
source | account when your team has saved this pipeline, default when the account still uses FieldCamp's default. |
isDefault | true for the record type's default pipeline. |
name | The pipeline's name. |
fieldName | The field the stage is stored in, for example jobStatus or visitStatus. |
stages | The stages, in order. See below. |
transitions | The raw transition rules. An empty list means every move is allowed. |
acceptedValues | Visit pipeline only: every status a visit write accepts. |
Each entry in stages:
| Field | Description |
|---|---|
value | The value to send in a create or update. |
label | The name your team sees. |
order | Position in the pipeline. |
isFinal | true for a closing stage. |
color | The stage colour, when set. |
allowedTransitions | Stages a record can move to from here. Each has to, and requiredFields when the move needs fields filled in first. |
This list is not paged. meta.total is the number of pipelines returned.
Endpoints
/api/v1/job-typesAuthorization
BearerAuth JWT from POST /api/auth/login (response.data.token). Tokens do not expire.
In: header
Query Parameters
1–100, default 50.
meta.next.cursor of the previous page.
ISO-8601; only rows updated since.
Response Body
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/api/v1/job-types"{ "success": true, "code": "success.created", "message": "Client created successfully", "data": null}/api/v1/job-types/{id}Authorization
BearerAuth JWT from POST /api/auth/login (response.data.token). Tokens do not expire.
In: header
Path Parameters
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/api/v1/job-types/665f1c2ab3e4d5f6a7b8c9d0"{ "success": true, "code": "success.created", "message": "Client created successfully", "data": null}/api/v1/pipelinesAuthorization
BearerAuth JWT from POST /api/auth/login (response.data.token). Tokens do not expire.
In: header
Query Parameters
Only this object slug.
Response Body
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/api/v1/pipelines"{ "success": true, "code": "success.created", "message": "Client created successfully", "data": null}