FieldGEN AI

FieldGEN API

Two-way sync with any scheduler, CRM or ERP. Your system sends jobs in and assigns them to your field team; FieldGEN sends back what happened on site — every status step with its time and GPS, temperature readings, signatures — plus quotes and appointments.

How it works

In: your system creates, updates, assigns and cancels jobs through the API. A job sent in reaches the assigned worker's phone with an alert, exactly like one created by a dispatcher in FieldGEN. Send your own id as external_id and you can address the job by it from then on; sending it again updates the job instead of duplicating it.

Out: when a record reaches a state worth telling you about — a pickup collected, a job started or completed, a quote accepted — FieldGEN queues it for every system you have connected, then delivers it and records the outcome.

Delivery is queued rather than fired and forgotten, and the queue is swept every minute — so a record typically reaches you within seconds of being approved. If your system is down or mid-upgrade, it waits and retries with a widening gap — 1 minute, then 5, then 25, out to 10 hours — instead of vanishing. Every attempt, response code and error is kept, so "did that reach us?" is a question with an answer.

Getting a key

Company A company admin opens the dispatch portal at dispatch.fieldgenai.com → Integrations & API → Create key. The key reaches every job in the company and can assign work to any of its members. Connections for results going out are added on the same page.
Individual In the FieldGEN app: ⋮ → Integrations & API → New API key. The key reaches that person's own records only.
The key is shown once. Only a hash of it is stored, so it cannot be recovered — if it is lost, revoke it and mint another. A key never reaches another company's or person's data.

Endpoints

Base URL: https://api.fieldgenai.com

Authenticate with Authorization: Bearer fgk_live_… or X-API-Key: fgk_live_…

There are three collections — quotes, jobs and appointments — and they behave identically.

Jobs in

POST/jobs Create a job. If its external_id is already known, update that job instead. Returns 201 when created, 200 when updated.
PATCH/jobs/{id} Change any field, reassign or unassign, or set a status. Send only what changes.
GET PATCH/jobs/external/{external_id}?source= The same, addressed by your own id. source is the one you sent with the job (default api).
DELETE/jobs/{id} or /jobs/external/… Cancel a job nobody has started. A job already picked up or in progress is refused with 409, so field work is never thrown away.
GET/members The people a job can be assigned to, with their email addresses.

Reading and sending out

GET/ping Check a key works, and whether it is a company or a personal key.
GET/{collection} List records, oldest edit first. Filters: status, since, limit (max 200). Feed the returned next_since back as since to page forward without missing an edit.
GET/{collection}/{id} One record.
POST/{collection}/{id}/push Send now, without waiting for a status change. Useful for a re-send.
GET/deliveries The delivery log: what was sent where, when, and what came back. Filter by entity or status.
POST/drain Retry everything currently pending for the account.

Sending a job in

curl -X POST https://api.fieldgenai.com/jobs \
  -H "Authorization: Bearer fgk_live_…" \
  -H "Content-Type: application/json" \
  -d '{
    "title": "Collect samples – cold chain",
    "job_type": "pickup",
    "pickup_notes": "12 EDTA tubes. Keep at 2–8 °C.",
    "customer": { "name": "Sri Sai Diagnostic Centre", "address": "Banjara Hills, Hyderabad" },
    "scheduled_date": "2026-11-03T10:00:00+05:30",
    "priority": "high",
    "assigned_to": "ravi@yourcompany.com",
    "external_id": "SCHED-1001",
    "source": "our-scheduler"
  }'
titleRequired when creating.
job_typestandard (default) or pickup. A pickup gets the Picked up step and its own pickup_notes.
customer{ name, address }, or flat customer_name and customer_address.
scheduled_dateISO 8601 with a time zone offset.
prioritylow, medium, high or urgent.
assigned_toThe worker's email, as listed by /members. null unassigns.
statuspending, picked_up, in_progress or completed. Normally the worker's phone moves this; each change joins the job's status trail.
description, notes, industryFree text.
external_id, sourceYour id for the job and the name of your system. Together they are unique within your company.

Errors come back as { "error": { "code", "message" } } with a 4xx status, for example unknown_worker when an email is not in your company, or already_started when cancelling work in progress.

A job, as we send it back

{
  "id": "j_9e5dafea-…",
  "external_id": "SCHED-1001",
  "status": "completed",
  "job_type": "pickup",
  "assigned_to": "Ravi Kumar",
  "picked_up_at": "2026-11-03T04:41:09Z",
  "started_at": "2026-11-03T04:58:30Z",
  "completed_at": "2026-11-03T06:12:02Z",
  "temperature": { "reading": "4.5 °C", "read_at": "2026-11-03T04:41:40Z" },
  "gps": { "lat": 17.4126, "lng": 78.4382, "accuracy_m": 9, "at": "2026-11-03T06:12:01Z" },
  "status_trail": [
    { "status": "picked_up", "at": "2026-11-03T04:41:09Z", "lat": 17.4121, "lng": 78.4375, "by": "ravi@yourcompany.com" }
  ],
  "signed": true,
  "photo_count": 3
}

Events

Each integration subscribes to the events it wants, so a system that only cares about won work is not woken by every job edit.

quote.sentA quote was issued to the customer.
quote.acceptedThe customer signed it on site.
job.createdA job was raised in FieldGEN. Not sent for a job your system sent in, since you already have it.
job.picked_upA pickup was collected.
job.in_progressThe worker started the job.
job.completedWork finished — usually the trigger for invoicing.
appointment.scheduledA visit was booked.
appointment.completedThe visit took place.
appointment.cancelledThe visit will not happen.

A quote

curl https://api.fieldgenai.com/quotes \
  -H "Authorization: Bearer fgk_live_…"
{
  "id": "q_8f21c4e0-…",
  "quote_number": "Q-1042",
  "status": "accepted",
  "customer": {
    "name": "Riverbend Aged Care",
    "email": "facilities@example.com",
    "site_address": "12 Test Street, Sydney NSW"
  },
  "title": "Emergency lighting replacement",
  "currency": "AUD",
  "line_items": [
    {
      "description": "LED exit sign",
      "type": "material",
      "quantity": 14,
      "unit": "ea",
      "unit_price": 51.00,   // quoted, markup applied
      "unit_cost": 42.50,    // your cost
      "line_total": 714.00
    }
  ],
  "totals": {
    "subtotal": 1284.00,
    "discount": 64.20,
    "tax": 121.98,
    "tax_name": "GST",
    "total": 1341.78,
    "reconciled": true
  },
  "signature": {
    "signed_by": "M. Chen (Facilities)",
    "signed_at": "2026-09-19T01:05:17Z"
  }
}
reconciled is a safety check. It is true when the stored totals still agree with a fresh recalculation of the line items. If it is ever false, do not post the quote to a ledger — the numbers and the signed PDF have diverged.

Universal Connector

Connect FieldGEN to Xero, QuickBooks, monday.com and thousands more apps through Zapier, Make or Power Automate. Copy one link from your flow, paste it into FieldGEN, add a signing secret and choose which events to send.

Behind the link, FieldGEN sends each event to it as an HTTPS POST:

{ "event": "quote.accepted", "data": { /* the quote above */ } }

Verifying the signature

Every request carries X-FieldGEN-Signature: t=<unix>,v1=<hex>. The signature is HMAC-SHA256 over "<t>.<raw body>" using your signing secret. The timestamp is inside the signed string, so a captured request cannot be replayed later.

const [t, v1] = header.split(',').map(p => p.split('=')[1]);
const expected = crypto
  .createHmac('sha256', signingSecret)
  .update(`${t}.${rawBody}`)
  .digest('hex');

// Always compare in constant time.
if (!crypto.timingSafeEqual(Buffer.from(v1), Buffer.from(expected))) {
  throw new Error('bad signature');
}

Reject anything older than a few minutes, and use the raw body bytes — re-serialising the JSON changes them and the signature will not match.

Dynamics 365

Quotes are written to Dataverse as a quote record with quotedetail lines. Lines use isproductoverridden, so your product catalogue does not have to contain every material a field worker might price.

The customer is matched to an account by name, and created if there is no match — set create_missing_accounts: false to require an existing one instead, or pin every quote to a single account_id.

What you need

tenant_idYour Entra ID directory.
client_idAn app registration with the Dynamics CRM user impersonation permission.
client_secretStored write-only. It cannot be read back, by you or by us.
resourcee.g. https://yourorg.crm6.dynamics.com
pricelevel_idYour price list. Dataverse requires one on a quote.

The app registration also needs to exist as an application user inside Dynamics with a security role — a common first stumble, because the token issues happily without it and Dataverse then refuses the write.

The direct connector handles quotes. Jobs and appointments map to different Dataverse tables with different required fields, so send those through the Universal Connector into Power Automate rather than having us guess at a mapping.

Your environment needs Dynamics 365 Sales for the direct connector — the Quote and Price List tables ship with Sales, not with Dataverse on its own. If you are on Dataverse alone, the Universal Connector into Power Automate reaches the same place.

Everything else

The Universal Connector works today with anything that accepts an HTTPS POST: Power Automate, Zapier, Make, n8n, or your own endpoint. That covers Xero, monday.com and QuickBooks, and a static auth header can be sent alongside the signature for services that expect one.

Your data