Skip to Content
API and MCPResources

Requests

Create, list, update and delete service requests through the objects route.

A request is a client asking for work, before it becomes an estimate or a job. Use the API to push requests from your website form, a marketplace or another system into FieldCamp.

Requests have no path of their own. They are served through the objects route, with request as the slug:

You want toRoute
List requestsGET /api/v1/objects/request
Create onePOST /api/v1/objects/request
Read oneGET /api/v1/objects/request/{id}
Update onePATCH /api/v1/objects/request/{id} (PUT works the same)
Delete oneDELETE /api/v1/objects/request/{id}

Reads need the requests:read scope and writes need requests:write.

The body is flat

Unlike a custom object, a request's fields go at the top level of the request body, not inside a data object.

Create a request

clientId is required. So is any custom request field your account has marked Required; a create without it returns 400 naming the missing fields.

curl -X POST https://api.fieldcamp.ai/api/v1/objects/request \
  -H "Authorization: Bearer $FIELDCAMP_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: web-form-55120" \
  -d '{
    "clientId": "665f1c2ab7e4a91d3c0f8a11",
    "description": "Kitchen tap is leaking under the sink.",
    "urgency": "high",
    "preferredContactMethod": "phone",
    "startDate": "2026-06-10T09:00:00Z",
    "endDate": "2026-06-10T11:00:00Z"
  }'
FieldDescription
clientIdRequired. Cannot be changed later.
descriptionWhat the client needs.
urgencylow, medium (default), high or critical.
stageOne of the request pipeline's stages. GET /api/v1/pipelines?object=request lists them.
requestAddressWhere the work is.
requestPhoneA phone number for this request.
preferredContactMethodphone (default), email, text or any.
startDate, endDateISO-8601 date-times. Their order is not checked, so make sure endDate is after startDate yourself.
startTime, endTimeISO-8601 date-times.
availabilityDate1, availabilityDate2Days that suit the client, YYYY-MM-DD.
scheduleLater, anyTimetrue or false.
arrivalWindowSecondsA whole number of seconds. A value of 0 or less is saved as empty.
requirements, specialInstructions, notesFree text.
assignedToList of team member IDs. Each must be on the account.
tagsList of tags.
estimatedValueExpected value of the work.
targetObjectSlug, targetRecordIdLink the request to a custom object record.
departmentIdThe department. Cannot be changed later.
propertiesCustom field values, [{ id, value }].

Validation:

  • A field the API does not know returns 422 naming it.
  • A clientId that is not on the account returns 404.
  • A team member ID that is not on the account returns 422.

The response has status 201 and returns the request.

Read requests

Read-only fields returned on top of the ones above: id, requestNumber (assigned on create), preferredDate, serviceType, total, convertedToJobId (the job made from this request), createdAt and updatedAt.

List parameters:

ParameterDescription
clientIdRequests for one client.
stageRequests in one pipeline stage.
sinceISO-8601 timestamp; returns requests whose updatedAt is at or after it. Add timezone for a zone-less value.
limit, cursorlimit defaults to 30, maximum 100. cursor is meta.next.cursor from the previous response.
sort, pageThe older offset paging. sort is field:direction on createdAt, updatedAt, requestNumber, stage, total or preferredDate.

Update and delete

PATCH /api/v1/objects/request/{id} takes the same fields as create, except clientId and departmentId. Send only what changes. To move a request along its pipeline, send stage.

DELETE /api/v1/objects/request/{id} returns { id, deleted: true }.

Webhook events

request.created, request.updated, request.deleted and request.status_changed. See Webhook events.

Endpoints

GET/api/v1/objects/{slug}

Authorization

ApiKeyAuth
AuthorizationBearer <token>

Public API key: Authorization: Bearer fc_live_… (or X-Api-Key). fc_test_… keys work only on sandbox accounts. Scoped keys work on /api/v1 only.

In: header

Path Parameters

slug*string

Custom object slug, e.g. unit. Built-in modules (client, job, invoice, visit, estimate, request, task) are rejected with 400 — use their dedicated /api/v1 routes.

Query Parameters

limit?integer

1–100. Out-of-range or invalid values fall back to 50.

cursor?string

From paging.next.cursor of the previous page.

updated_since?string

ISO-8601. Returns records updated at or after this time.

stage?string

Exact pipeline stage value. status is accepted as an alias.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/api/v1/objects/string"
{  "success": true,  "code": "success.created",  "message": "Client created successfully",  "data": null}
POST/api/v1/objects/{slug}

Authorization

ApiKeyAuth
AuthorizationBearer <token>

Public API key: Authorization: Bearer fc_live_… (or X-Api-Key). fc_test_… keys work only on sandbox accounts. Scoped keys work on /api/v1 only.

In: header

Path Parameters

slug*string

Custom object slug, e.g. unit. Built-in modules (client, job, invoice, visit, estimate, request, task) are rejected with 400 — use their dedicated /api/v1 routes.

Header Parameters

Idempotency-Key?string

Replays the stored response for 24 h per org; a different body with the same key → 409.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/api/v1/objects/string" \  -H "Content-Type: application/json" \  -d '{}'
{  "success": true,  "code": "success.created",  "message": "Client created successfully",  "data": null}
GET/api/v1/objects/{slug}/{id}

Authorization

ApiKeyAuth
AuthorizationBearer <token>

Public API key: Authorization: Bearer fc_live_… (or X-Api-Key). fc_test_… keys work only on sandbox accounts. Scoped keys work on /api/v1 only.

In: header

Path Parameters

slug*string

Custom object slug, e.g. unit. Built-in modules (client, job, invoice, visit, estimate, request, task) are rejected with 400 — use their dedicated /api/v1 routes.

id*string

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/api/v1/objects/string/665f1c2ab3e4d5f6a7b8c9d0"
{  "success": true,  "code": "success.created",  "message": "Client created successfully",  "data": null}
PATCH/api/v1/objects/{slug}/{id}

Authorization

ApiKeyAuth
AuthorizationBearer <token>

Public API key: Authorization: Bearer fc_live_… (or X-Api-Key). fc_test_… keys work only on sandbox accounts. Scoped keys work on /api/v1 only.

In: header

Path Parameters

slug*string

Custom object slug, e.g. unit. Built-in modules (client, job, invoice, visit, estimate, request, task) are rejected with 400 — use their dedicated /api/v1 routes.

id*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X PATCH "https://example.com/api/v1/objects/string/665f1c2ab3e4d5f6a7b8c9d0" \  -H "Content-Type: application/json" \  -d '{}'
{  "success": true,  "code": "success.created",  "message": "Client created successfully",  "data": null}
DELETE/api/v1/objects/{slug}/{id}

Authorization

ApiKeyAuth
AuthorizationBearer <token>

Public API key: Authorization: Bearer fc_live_… (or X-Api-Key). fc_test_… keys work only on sandbox accounts. Scoped keys work on /api/v1 only.

In: header

Path Parameters

slug*string
id*string

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X DELETE "https://example.com/api/v1/objects/string/string"
{  "success": true,  "code": "success.created",  "message": "Client created successfully",  "data": null}

Use request as {slug}.

On this page