Skip to Content
API and MCPResources

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.

RouteWhat it does
GET /api/v1/integrations/google-calendar/statusSays whether Google Calendar is connected.
POST /api/v1/integrations/google-calendar/syncRuns a full sync between FieldCamp visits and Google Calendar.
GET /api/v1/integrations/google-calendar/syncPulls changes made in Google Calendar into FieldCamp.
POST /api/v1/integrations/outlook-calendar/syncRuns a full sync with Outlook Calendar.
GET /api/v1/integrations/outlook-calendar/syncPulls changes made in Outlook Calendar into FieldCamp.
POST /api/v1/integrations/quickbooks/syncChecks 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 }
}
MethodWhat runs
POSTA full sync: every visit and every calendar event is compared. Use it sparingly.
GETA 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 errors count 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 500 with code SYNC_FAILED (Google) or SYNC_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

StatusCodeWhen
400INTEGRATION_NOT_CONNECTEDQuickBooks route only: no QuickBooks connection.
403FORBIDDENThe key lacks integrations:write.
429RATE_LIMITEDThe key exceeded its rate limit.
500SYNC_FAILED, SYNC_ERRORA 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

GET/api/v1/integrations/google-calendar/status

Authorization

BearerAuth
AuthorizationBearer <token>

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"
{}
GET/api/v1/integrations/google-calendar/sync

Authorization

BearerAuth
AuthorizationBearer <token>

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"
{}
POST/api/v1/integrations/google-calendar/sync

Authorization

BearerAuth
AuthorizationBearer <token>

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"
{}
GET/api/v1/integrations/outlook-calendar/sync

Authorization

BearerAuth
AuthorizationBearer <token>

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"
{}
POST/api/v1/integrations/outlook-calendar/sync

Authorization

BearerAuth
AuthorizationBearer <token>

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"
{}
POST/api/v1/integrations/quickbooks/sync

Authorization

BearerAuth
AuthorizationBearer <token>

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"
{}

On this page