Home · Developers
Built to be extended
Everything the interface does, the API does.
One versioned HTTP API, one authentication model, and webhooks signed on every payload. This page shows the four shapes a developer needs first; the full reference is generated from the same schema the interface uses.
Start here
Four samples, and the facts that go with them.
Authentication, reading a list, receiving a change, and handling a refusal. Everything below is written to be read, not executed: the host, the identifiers and the figures are illustrative, and this page is not the API reference.
One token, one workspace
A request carries a bearer token and names the workspace it is acting on. Tokens belong to a service account rather than a person, so revoking one does not need anyone to change their password.
- Scopes are attached to the token, not to the account behind it.
- A token is shown once, at creation, and never again.
- The workspace header is required even when the token can only reach one.
Authenticate a request
shell · examplecurl https://api.fieldnote.example/v2/tickets \
-H "Authorization: Bearer $FIELDNOTE_TOKEN" \
-H "Fieldnote-Workspace: support-emea"
# a token is scoped; anything outside the scope is refused, not filtered
# 403 with error.code = "scope_missing"
Lists are cursor-based
A list returns one page and a cursor for the next. Cursors are opaque and stable: two pages fetched a second apart will not repeat a record or skip one because something changed in between.
- Filters are named, not free text, so a request cannot be a query.
- Each record carries the routing decision that placed it.
- The response says how many records matched, not only how many were returned.
List the open tickets on an account
http · example{
"data": [
{
"id": "tkt_01H8Z",
"subject": "Invoice address is wrong",
"status": "open",
"owner": "team-support-emea",
"priority": "high",
"routing_rule": "region=emea",
"created_at": "2024-05-06T09:14:02Z"
}
],
"page": { "next_cursor": "cur_9f2b", "total": 128 }
}
A change is delivered, not polled
Every change worth reacting to is a webhook. The payload names the event, the record and the workspace, and carries a delivery identifier so a receiver can make its own handling idempotent.
- The signature covers the raw body and a timestamp, with a tolerance window.
- Events are at-least-once, so a receiver should expect a repeat.
- An endpoint that keeps failing is disabled, and the delivery log says when.
Webhook payload for a new ticket
json · exampleFieldnote-Signature: t=1714982042,v1=6f1c…
Fieldnote-Delivery: dlv_7c31a0
{
"event": "ticket.created",
"delivery_id": "dlv_7c31a0",
"workspace": "support-emea",
"occurred_at": "2024-05-06T09:14:02Z",
"data": {
"ticket_id": "tkt_01H8Z",
"account_id": "acc_44Kq",
"channel": "email",
"owner": "team-support-emea",
"routing_rule": "region=emea"
}
}
Failures have one shape
Every refusal — a bad token, a missing scope, a rate limit, a validation error — uses the same envelope, so error handling is written once. The message is written for a person; the code is stable and safe to branch on.
- Validation failures list every offending field, not the first.
- The request identifier is safe to quote in a support conversation.
- Retrying is only recommended where the response says so.
Error response
json · exampleRetry-After: —
{
"error": {
"code": "validation_failed",
"message": "priority must be one of low, normal, high",
"request_id": "req_8ba1e4",
"fields": [
{ "path": "priority", "issue": "unknown value" }
],
"retryable": false,
"docs": "/v2/errors#validation_failed"
}
}
Limits
What is throttled, and what is not.
Limits are published rather than discovered. Every response carries the remaining allowance, and a refusal says when to come back.
| Scope | Requests | Behaviour when exceeded |
|---|---|---|
| Read endpoints Any GET on records, lists or search | a published per-minute rate, per token | A refusal with a retry time, and the remaining allowance on every successful response |
| Write endpoints Creates, updates and routing changes | a lower per-minute rate than reads, per token | Refused rather than queued — a delayed write is harder to reason about than a refused one |
| Bulk export A whole workspace or a large date range | a small number of concurrent exports per workspace | Queued, with a position and an estimate, and a delivery notification when it is ready |
| Webhook delivery Outbound events to your endpoint | retries on a published backoff schedule | The endpoint is paused after sustained failure, and every attempt is visible in the delivery log |
| Authentication Token exchange and sign-in attempts | tight, and counted per source | Locked for a short period, with the lock recorded as a security event rather than a rate-limit event |
Where a limit would break a legitimate job — a first import, a migration, a reconciliation — it is raised for that window rather than worked around, and the change is recorded against the token.
The sandbox workspace
A sandbox is a workspace with the same behaviour as production and none of the customer data. Records are generated from a fixed seed, so a fixture you rely on today exists tomorrow, and resetting the sandbox puts it back exactly as it was.
- Every workspace has a sandbox beside it, not instead of it.
- Webhooks fire in the sandbox, so a receiver can be built without live traffic.
- Nothing in the sandbox is billed, and nothing in it is backed up.
The versioning policy
The API is versioned in the path, and a version is a date, not a number that implies importance. Additive change happens inside a version; anything that could break a caller waits for a new one.
- A new field is additive, and a receiver should ignore what it does not know.
- A removed field, a renamed value or a changed default requires a new version.
- An old version is supported for a stated period, with a deprecation notice on this page before it ends.
The host, the tokens, the identifiers, the event names and the limits on this page are examples written for a fictional product. They follow the shape a real reference would have; they are not an offer to call anything, and nothing here should be copied into a working system.
Next
Build against the sandbox first.
A sandbox workspace is created with the trial, not after a purchase. If what you need is not in the API, that is worth telling us before you work around it.