Integrations
Start a Google Calendar or Outlook sync on demand and check that a calendar or QuickBooks connection exists.
The integration routes let you start a calendar sync on demand, instead of waiting for FieldCamp's own background sync, and check that a connection exists. They work on connections your team has already set up in FieldCamp under Integrations.
Every route here needs the integrations:write scope, including the two
GET routes.
| Route | What it does |
|---|---|
GET /api/v1/integrations/google-calendar/status | Says whether Google Calendar is connected. |
POST /api/v1/integrations/google-calendar/sync | Runs a full sync between FieldCamp visits and Google Calendar. |
GET /api/v1/integrations/google-calendar/sync | Pulls changes made in Google Calendar into FieldCamp. |
POST /api/v1/integrations/outlook-calendar/sync | Runs a full sync with Outlook Calendar. |
GET /api/v1/integrations/outlook-calendar/sync | Pulls changes made in Outlook Calendar into FieldCamp. |
POST /api/v1/integrations/quickbooks/sync | Checks that QuickBooks is connected. It does not move data. |
Most integrations should rely on FieldCamp's own background sync. Use these routes for a "Refresh now" button, or right after your system changes several visits.
Check the Google Calendar connection
curl https://api.fieldcamp.ai/api/v1/integrations/google-calendar/status \
-H "Authorization: Bearer $FIELDCAMP_API_KEY"{
"success": true,
"data": {
"connected": true,
"email": "dispatch@example.com",
"lastSyncAt": "2026-05-29T14:05:11Z",
"calendarId": "primary"
}
}Those four fields are the whole response. When nothing is connected,
connected is false and the other three are null.
connected means a connection is saved in FieldCamp. It does not test the
connection with Google, so a sync can still fail when access was removed on
the Google side.
Sync a calendar
The calendar sync routes take no body and no parameters. They run while you wait and answer with counts, not with a job to poll:
curl -X POST https://api.fieldcamp.ai/api/v1/integrations/google-calendar/sync \
-H "Authorization: Bearer $FIELDCAMP_API_KEY"{
"success": true,
"data": { "created": 4, "updated": 12, "deleted": 0, "errors": 0 }
}| Method | What runs |
|---|---|
POST | A full sync: every visit and every calendar event is compared. Use it sparingly. |
GET | A lighter pull: only what changed in the calendar since the last sync is applied to FieldCamp. Although it is a GET, it changes FieldCamp data. |
The Outlook routes work the same way. The Outlook POST follows the sync
direction set for the account, and its response can carry extra fields such
as mode or skipped next to the counts.
Things to know:
- A non-zero
errorscount means some items could not be synced. - When the calendar is not connected, the calendar routes do not return an error. Check the status route first.
- A sync that fails outright returns
500with codeSYNC_FAILED(Google) orSYNC_ERROR(Outlook). - There is no lock: a second call while one is running is accepted. Do not call these in a loop; each call counts against your rate limit.
QuickBooks
POST /api/v1/integrations/quickbooks/sync checks that a QuickBooks
connection exists and answers:
{ "success": true, "data": { "message": "QuickBooks sync triggered", "status": "queued" } }This is a connection check, not a sync
The call does not move any data. status: "queued" is a fixed text, not a
job you can follow; there is no job ID and no status route. QuickBooks
syncing itself runs inside FieldCamp, outside this API.
When QuickBooks is not connected, the route returns 400 with code
INTEGRATION_NOT_CONNECTED. It takes no request body.
Errors
| Status | Code | When |
|---|---|---|
400 | INTEGRATION_NOT_CONNECTED | QuickBooks route only: no QuickBooks connection. |
403 | FORBIDDEN | The key lacks integrations:write. |
429 | RATE_LIMITED | The key exceeded its rate limit. |
500 | SYNC_FAILED, SYNC_ERROR | A calendar sync failed outright. |
These routes have no "already running" conflict. A 409 can appear only
when you send an Idempotency-Key: IDEMPOTENCY_KEY_REUSED if the key was
used for a different request, or IDEMPOTENCY_IN_PROGRESS if a request with
the same key is still running. See Idempotency.
FAQs
Do I need to call these routes at all? Usually not. They exist for the moments when waiting for the background sync is not acceptable.
How do I know if QuickBooks is connected?
Call POST /api/v1/integrations/quickbooks/sync. A 200 means connected;
400 INTEGRATION_NOT_CONNECTED means it is not. There is no separate
status route for accounting.
Can I choose a full or a partial sync?
Yes, by method: POST runs the full sync and GET pulls only recent
calendar changes. Neither takes a parameter.
Endpoints
/api/v1/integrations/google-calendar/statusAuthorization
BearerAuth JWT from POST /api/auth/login (response.data.token). Tokens do not expire.
In: header
Response Body
application/json
application/json
curl -X GET "https://example.com/api/v1/integrations/google-calendar/status"{}/api/v1/integrations/google-calendar/syncAuthorization
BearerAuth JWT from POST /api/auth/login (response.data.token). Tokens do not expire.
In: header
Response Body
application/json
application/json
curl -X GET "https://example.com/api/v1/integrations/google-calendar/sync"{}/api/v1/integrations/google-calendar/syncAuthorization
BearerAuth JWT from POST /api/auth/login (response.data.token). Tokens do not expire.
In: header
Response Body
application/json
application/json
curl -X POST "https://example.com/api/v1/integrations/google-calendar/sync"{}/api/v1/integrations/outlook-calendar/syncAuthorization
BearerAuth JWT from POST /api/auth/login (response.data.token). Tokens do not expire.
In: header
Response Body
application/json
application/json
curl -X GET "https://example.com/api/v1/integrations/outlook-calendar/sync"{}/api/v1/integrations/outlook-calendar/syncAuthorization
BearerAuth JWT from POST /api/auth/login (response.data.token). Tokens do not expire.
In: header
Response Body
application/json
application/json
curl -X POST "https://example.com/api/v1/integrations/outlook-calendar/sync"{}/api/v1/integrations/quickbooks/syncAuthorization
BearerAuth JWT from POST /api/auth/login (response.data.token). Tokens do not expire.
In: header
Response Body
application/json
application/json
curl -X POST "https://example.com/api/v1/integrations/quickbooks/sync"{}Related articles
- Apps and integrations: all FieldCamp connections
- Connect Google Calendar and Outlook to FieldCamp
- Connect QuickBooks, Xero and Wave to FieldCamp
- Calendar sync and preferences
- API quickstart
- Authentication
- API keys resource
- Idempotency
- Rate limits
- Webhooks
- Webhook events catalog
- Errors
- Visits API
- API changelog