Skip to documentation
SOFFYT DEVELOPERS REST API · v1

Your tools.
One connected operation.

Connect customer records, sales opportunities, projects, and tasks to the systems your business relies on.

Make your first request
YOUR FIRST CONNECTION
Read customersShell
# Set SOFFYT_API_BASE to your provisioned HTTPS host + /api/v1.
# Load SOFFYT_API_KEY from your server's secret store.
curl --fail-with-body "$SOFFYT_API_BASE/customers?limit=50" \
  -H "Authorization: Bearer $SOFFYT_API_KEY"
01

From access to your first request

#

A server-side integration starts with a company-approved API client, a bearer key, and the host provisioned for your workspace.

  1. Arrange access with your company owner.

    Confirm the records and fields your integration needs, its allowed owners, read/create/edit scopes, and rate limit. API clients and webhook destinations require owner provisioning; this website does not issue credentials. Request integration setup.

  2. Configure your server.

    Set SOFFYT_API_BASE to the provisioned HTTPS origin followed by /api/v1, without a trailing slash. Load SOFFYT_API_KEY from your secret store. An employee sign-in or browser session is not an API credential.

  3. Read a small page of customers.

    The example above requires customers.read and an enabled customer access policy. A successful list returns 200, an array in data, and pagination information in meta.

Example customer pageJSON
{
  "data": [
    {
      "id": "customer_example",
      "revision": "1",
      "createdAt": "2026-11-01T10:00:00Z",
      "updatedAt": "2026-11-01T10:00:00Z",
      "customerType": "Individual",
      "firstName": "Jordan",
      "lastName": "Lee"
    }
  ],
  "meta": {
    "requestId": "request_example",
    "limit": 50,
    "nextCursor": null
  }
}

Fictional response. Optional fields appear only when approved for your client; an empty authorized collection returns an empty array.

02

Authentication & access

#

Send Authorization: Bearer <API_KEY> on every protected request. API keys begin with sft_. Keep the complete key in server-side secret storage; never put it in frontend code, URLs, logs, or support messages.

Available resource permissions
ResourceScopesOperations
Customerscustomers.read
customers.create
customers.edit
Read, create, and edit approved name/profile fields.
Opportunitiesopportunities.read
opportunities.create
opportunities.edit
Read, create in an open stage, and edit title/nextActivity on open records without a linked project.
Projectsprojects.readRead core fields. Explicitly granted custom values can be edited separately.
Taskstasks.readRead general and flow tasks separately.

Creation and edits also require the matching read scope and explicit field grants. Read, create, and edit fields are approved separately. Access is limited to one organization and either its permitted records or specific owners. A wildcard scope does not replace these grants.

Linked records must also be accessible

Opportunities require access to their parent customer. Projects require access to their customer and any linked non-manual opportunity. Tasks require access to every supported linked customer, opportunity, and project; unsupported links are excluded. Owner restrictions on tasks constrain assignees.

Permissions are checked again on each request, write replay, and webhook delivery. After a policy change, records can disappear from lists and fields can disappear from responses. Handle omitted fields separately from fields returned as null.

03

Pagination & responses

#

List endpoints accept limit (1–100, default 50) and cursor. Omit the cursor on the first request, then pass meta.nextCursor unchanged using URL encoding. Stop only when it is null. Extra or repeated query parameters are rejected.

Walk the customer collectionJavaScript · Node.js
// Node.js. Keep credentials on your server.
const base = process.env.SOFFYT_API_BASE;
const key = process.env.SOFFYT_API_KEY;
if (!base || !key) throw new Error('Set API base and key');
let cursor = null;
do {
  const url = new URL(base.replace(/\/$/, '') + '/customers');
  url.searchParams.set('limit', '50');
  if (cursor) url.searchParams.set('cursor', cursor);
  const response = await fetch(url, {
    headers: { Authorization: `Bearer ${key}` },
  });
  const body = await response.json();
  if (!response.ok) throw new Error(
    `Soffyt ${response.status}: ${body.error?.code}; request ${body.error?.requestId}`
  );
  // Upsert body.data in your destination by record id.
  // Do not delete destination records just because a page omits them.
  cursor = body.meta.nextCursor;
} while (cursor !== null);

Record lists sort by updatedAt descending, then id ascending. Reference data sorts by ID. Cursors belong to one collection; general tasks, flow tasks, and each reference kind have separate cursor namespaces.

Common response conventions

Record responses contain data and meta.requestId. Pages also contain meta.limit and meta.nextCursor. Record IDs and monotonic revision values are strings. Dates use the formats in the field reference; opportunity values are decimal strings in USD currency units.

Responses include X-Request-Id, X-Soffyt-Api-Version: 1, and Cache-Control: no-store. Single-record GETs return an ETag; preserve it exactly for an authorized customer or opportunity PATCH.

04

Create customers & opportunities

#

First call GET /creation-requirements/customers or GET /creation-requirements/opportunities. The response reports granted createFields, required input alternatives, required core fields, compatible, and blockers. It requires read and create access and accepts no query parameters.

This check is advisory: POST validates current permissions and configuration again. Resolve blockers before building a workflow. Required custom fields must be granted, supported, and supplied through customFieldValues. The compatibility check lists permitted create IDs and permitted required IDs; hidden or unsupported requirements block creation. Every submitted field needs a create grant; unknown fields and null values are rejected.

Create a customer

Provide customerType (Individual or Company), a valid primary email, an active authorized ownerUserId, and a customer name. Company customers require companyName. Workspace-required core fields also apply. Replace the example owner ID with an approved ID from reference data.

Set SOFFYT_OPERATION_KEY to a unique identifier you persist for this logical create. Reuse it only when retrying that same request.

Create a customerShell
curl --fail-with-body -i "$SOFFYT_API_BASE/customers" \
  -X POST \
  -H "Authorization: Bearer $SOFFYT_API_KEY" \
  -H 'Content-Type: application/json' \
  -H "Idempotency-Key: $SOFFYT_OPERATION_KEY" \
  --data '{
    "customerType": "Individual",
    "firstName": "Jordan",
    "lastName": "Lee",
    "email": "jordan@example.com",
    "ownerUserId": "REPLACE_WITH_AUTHORIZED_OWNER_ID"
  }'

Create an opportunity

POST to /opportunities with the same authentication, JSON, and idempotency headers. Supply an accessible active customer, an active authorized owner, and an active open stage in the selected pipeline. Choose either an existing customer propertyId or a new propertyAddress. Optional city/state/postal fields require a new address.

Opportunity request bodyJSON
{
  "customerId": "REPLACE_WITH_CUSTOMER_ID",
  "title": "Kitchen renovation",
  "pipelineId": "REPLACE_WITH_PIPELINE_ID",
  "pipelineStageId": "REPLACE_WITH_OPEN_STAGE_ID",
  "ownerUserId": "REPLACE_WITH_AUTHORIZED_OWNER_ID",
  "propertyAddress": "123 Example Street",
  "propertyCity": "Austin",
  "propertyState": "TX",
  "propertyPostalCode": "78701",
  "value": "12500.00",
  "expectedCloseDate": "2027-03-01"
}

value is a decimal string from 0 to 999999999.99, with at most two decimal places; it defaults to zero. expectedCloseDate must be a real YYYY-MM-DD date. serviceLineIds, if supplied, accepts up to 25 distinct active IDs.

A successful create returns 201, the authorized record, a Location header, an ETag, and Idempotency-Replayed. Do not send If-Match on POST. Possible customer duplicates return 409 possible_duplicate for review in Soffyt; there is no public duplicate override.

05

Update without overwriting newer work

#

GET the record, keep its exact ETag, and PATCH only approved fields using If-Match and Idempotency-Key. Omitted fields are preserved; null is rejected. Empty strings can clear optional editable text, but required names and opportunity titles must remain valid.

Read, then safely edit a customerJavaScript · Node.js
// Node.js. Save operationKey, body, and ETag before sending the PATCH.
import { randomUUID } from 'node:crypto';
const base = process.env.SOFFYT_API_BASE;
const key = process.env.SOFFYT_API_KEY;
const id = process.env.SOFFYT_CUSTOMER_ID;
if (!base || !key || !id) throw new Error('Set API base, key, and customer id');
const url = base.replace(/\/$/, '') + '/customers/' + encodeURIComponent(id);
const headers = { Authorization: `Bearer ${key}` };
const current = await fetch(url, { headers });
if (!current.ok) throw new Error(`GET failed: ${current.status}`);
const etag = current.headers.get('etag');
if (!etag) throw new Error('Missing record ETag');
const operationKey = randomUUID(); // Persist this for this logical edit.
const body = JSON.stringify({ preferredName: 'Jordan' });
const response = await fetch(url, {
  method: 'PATCH',
  headers: { ...headers, 'Content-Type': 'application/json',
    'If-Match': etag, 'Idempotency-Key': operationKey },
  body,
});
const result = await response.json();
if (!response.ok) throw new Error(
  `Soffyt ${response.status}: ${result.error?.code}; request ${result.error?.requestId}`
);
// On network uncertainty, retry the saved request unchanged with the SAME key.
// On 412, GET again, reconcile the edit, then use a NEW key and fresh ETag.

Customer edits support firstName, lastName, companyName, preferredName, jobTitle, website, and bestContactTime (text up to 500 characters). A nonempty website needs an HTTP(S) URL. Email, phone, ownership, and communication preferences cannot be changed through PATCH.

Opportunity edits support only title (3–140 characters) and nextActivity (up to 500). The opportunity must be open and have no linked project.

One key for one logical write

Keys contain 1–128 letters, digits, dots, underscores, colons, or hyphens. Their namespace is the API client within its organization. Persist the key and exact request before sending. If the outcome is uncertain, retry with the same method, path, body, and If-Match. A different request under that key returns 409 idempotency_conflict.

A replay returns the saved result and Idempotency-Replayed: true, subject to current record and field access; it is not necessarily the latest record state. Receipt retention is not a permanent business deduplication guarantee. Keep your own source-to-Soffyt mapping and use a fresh key for a new logical operation.

06

Endpoint reference

#

All paths below are relative to your /api/v1 base. Expand an endpoint for parameters, input fields, and successful response schemas. This reference is generated from the implemented OpenAPI contract.

GET/custom-field-definitions/{resource}

Requires resource.read and explicit customFields.read IDs in the owner-approved policy. Returns at most 100 granted active standard-visibility supported definitions. No pagination or query parameters. Restricted/administrator, user/multi-user, inactive and unsupported-validation fields are excluded. No definition creation or editing API.

Requires a bearer API key and owner-approved record and field access.

Request parameters
NameLocationRequirements
resourcepathRequired. Values: customers, opportunities, projects.

Successful response

200 · Granted definitions and active options belonging to each field

GET /custom-field-definitions/{resource} response schemaJSON Schema
{
  "type": "object",
  "properties": {
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/CustomFieldDefinition"
      }
    },
    "meta": {
      "$ref": "#/components/schemas/RequestMeta"
    }
  }
}

For non-success responses, see errors and recovery. Schema references resolve to the record fields below or the downloadable OpenAPI document.

GET/customers/{id}/custom-fields

Requires resource.read and explicit customFields.read IDs; applies the same tenant, owner and parent-record boundaries as the core GET. No query parameters. Ungranted fields are omitted; granted unset fields are null. ETag includes current values and definitions; use this endpoint ETag for custom PATCH.

Requires a bearer API key and owner-approved record and field access.

Request parameters
NameLocationRequirements
idpathRequired.

Successful response

200 · Current authorized custom values

Headers: ETag

GET /customers/{id}/custom-fields response schemaJSON Schema
{
  "type": "object",
  "properties": {
    "data": {
      "type": "object",
      "properties": {
        "resource": {
          "type": "string",
          "enum": [
            "customers",
            "opportunities",
            "projects"
          ]
        },
        "id": {
          "type": "string"
        },
        "values": {
          "$ref": "#/components/schemas/CustomValues"
        }
      }
    },
    "meta": {
      "$ref": "#/components/schemas/RequestMeta"
    }
  }
}

For non-success responses, see errors and recovery. Schema references resolve to the record fields below or the downloadable OpenAPI document.

PATCH/customers/{id}/custom-fields

Requires customers.read and customers.custom-fields.edit plus customFields.write IDs (a subset of read IDs). Only custom values change; project core fields remain read-only. Custom-only edits do not emit public v1 webhook events; poll dedicated value endpoints. Omitted fields are preserved; null clears an optional field. No query parameters. Replay rechecks grants and returns CURRENT authorized values, not a historical snapshot.

Requires a bearer API key and owner-approved record and field access.

Request parameters
NameLocationRequirements
idpathRequired.
If-MatchheaderRequired. Exact ETag from custom-fields GET, not core GET.
Idempotency-KeyheaderRequired. Min length: 1. Max length: 128.
PATCH /customers/{id}/custom-fields request bodyJSON Schema
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "values"
  ],
  "properties": {
    "values": {
      "$ref": "#/components/schemas/CustomValues"
    }
  }
}

Successful response

200 · Current authorized values after update or replay

Headers: ETagIdempotency-Replayed

PATCH /customers/{id}/custom-fields response schemaJSON Schema
{
  "type": "object",
  "properties": {
    "data": {
      "type": "object",
      "properties": {
        "resource": {
          "type": "string",
          "enum": [
            "customers",
            "opportunities",
            "projects"
          ]
        },
        "id": {
          "type": "string"
        },
        "values": {
          "$ref": "#/components/schemas/CustomValues"
        }
      }
    },
    "meta": {
      "$ref": "#/components/schemas/RequestMeta"
    }
  }
}

For non-success responses, see errors and recovery. Schema references resolve to the record fields below or the downloadable OpenAPI document.

GET/opportunities/{id}/custom-fields

Requires resource.read and explicit customFields.read IDs; applies the same tenant, owner and parent-record boundaries as the core GET. No query parameters. Ungranted fields are omitted; granted unset fields are null. ETag includes current values and definitions; use this endpoint ETag for custom PATCH.

Requires a bearer API key and owner-approved record and field access.

Request parameters
NameLocationRequirements
idpathRequired.

Successful response

200 · Current authorized custom values

Headers: ETag

GET /opportunities/{id}/custom-fields response schemaJSON Schema
{
  "type": "object",
  "properties": {
    "data": {
      "type": "object",
      "properties": {
        "resource": {
          "type": "string",
          "enum": [
            "customers",
            "opportunities",
            "projects"
          ]
        },
        "id": {
          "type": "string"
        },
        "values": {
          "$ref": "#/components/schemas/CustomValues"
        }
      }
    },
    "meta": {
      "$ref": "#/components/schemas/RequestMeta"
    }
  }
}

For non-success responses, see errors and recovery. Schema references resolve to the record fields below or the downloadable OpenAPI document.

PATCH/opportunities/{id}/custom-fields

Requires opportunities.read and opportunities.custom-fields.edit plus customFields.write IDs (a subset of read IDs). Only custom values change; project core fields remain read-only. Custom-only edits do not emit public v1 webhook events; poll dedicated value endpoints. Omitted fields are preserved; null clears an optional field. No query parameters. Replay rechecks grants and returns CURRENT authorized values, not a historical snapshot. Only open opportunities without a linked project can be edited.

Requires a bearer API key and owner-approved record and field access.

Request parameters
NameLocationRequirements
idpathRequired.
If-MatchheaderRequired. Exact ETag from custom-fields GET, not core GET.
Idempotency-KeyheaderRequired. Min length: 1. Max length: 128.
PATCH /opportunities/{id}/custom-fields request bodyJSON Schema
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "values"
  ],
  "properties": {
    "values": {
      "$ref": "#/components/schemas/CustomValues"
    }
  }
}

Successful response

200 · Current authorized values after update or replay

Headers: ETagIdempotency-Replayed

PATCH /opportunities/{id}/custom-fields response schemaJSON Schema
{
  "type": "object",
  "properties": {
    "data": {
      "type": "object",
      "properties": {
        "resource": {
          "type": "string",
          "enum": [
            "customers",
            "opportunities",
            "projects"
          ]
        },
        "id": {
          "type": "string"
        },
        "values": {
          "$ref": "#/components/schemas/CustomValues"
        }
      }
    },
    "meta": {
      "$ref": "#/components/schemas/RequestMeta"
    }
  }
}

For non-success responses, see errors and recovery. Schema references resolve to the record fields below or the downloadable OpenAPI document.

GET/projects/{id}/custom-fields

Requires resource.read and explicit customFields.read IDs; applies the same tenant, owner and parent-record boundaries as the core GET. No query parameters. Ungranted fields are omitted; granted unset fields are null. ETag includes current values and definitions; use this endpoint ETag for custom PATCH.

Requires a bearer API key and owner-approved record and field access.

Request parameters
NameLocationRequirements
idpathRequired.

Successful response

200 · Current authorized custom values

Headers: ETag

GET /projects/{id}/custom-fields response schemaJSON Schema
{
  "type": "object",
  "properties": {
    "data": {
      "type": "object",
      "properties": {
        "resource": {
          "type": "string",
          "enum": [
            "customers",
            "opportunities",
            "projects"
          ]
        },
        "id": {
          "type": "string"
        },
        "values": {
          "$ref": "#/components/schemas/CustomValues"
        }
      }
    },
    "meta": {
      "$ref": "#/components/schemas/RequestMeta"
    }
  }
}

For non-success responses, see errors and recovery. Schema references resolve to the record fields below or the downloadable OpenAPI document.

PATCH/projects/{id}/custom-fields

Requires projects.read and projects.custom-fields.edit plus customFields.write IDs (a subset of read IDs). Only custom values change; project core fields remain read-only. Custom-only edits do not emit public v1 webhook events; poll dedicated value endpoints. Omitted fields are preserved; null clears an optional field. No query parameters. Replay rechecks grants and returns CURRENT authorized values, not a historical snapshot.

Requires a bearer API key and owner-approved record and field access.

Request parameters
NameLocationRequirements
idpathRequired.
If-MatchheaderRequired. Exact ETag from custom-fields GET, not core GET.
Idempotency-KeyheaderRequired. Min length: 1. Max length: 128.
PATCH /projects/{id}/custom-fields request bodyJSON Schema
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "values"
  ],
  "properties": {
    "values": {
      "$ref": "#/components/schemas/CustomValues"
    }
  }
}

Successful response

200 · Current authorized values after update or replay

Headers: ETagIdempotency-Replayed

PATCH /projects/{id}/custom-fields response schemaJSON Schema
{
  "type": "object",
  "properties": {
    "data": {
      "type": "object",
      "properties": {
        "resource": {
          "type": "string",
          "enum": [
            "customers",
            "opportunities",
            "projects"
          ]
        },
        "id": {
          "type": "string"
        },
        "values": {
          "$ref": "#/components/schemas/CustomValues"
        }
      }
    },
    "meta": {
      "$ref": "#/components/schemas/RequestMeta"
    }
  }
}

For non-success responses, see errors and recovery. Schema references resolve to the record fields below or the downloadable OpenAPI document.

GET/health

Database readiness probe. Inspect data.status; HTTP 200 alone does not establish readiness.

Public discovery endpoint. No bearer key required.

Successful response

200 · Database probe result; inspect data.status

GET/openapi

The machine-readable OpenAPI 3.1 contract for the deployed API.

Public discovery endpoint. No bearer key required.

Successful response

200 · This OpenAPI document

GET/webhook-events

Public discovery only. Owner-session provisioning binds each v1 subscription to an approved machine client. Delivery rechecks current record access; no task, deletion or tombstone events.

Public discovery endpoint. No bearer key required.

Successful response

200 · Canonical v1 event catalog

GET /webhook-events response schemaJSON Schema
{
  "type": "object",
  "required": [
    "version",
    "events",
    "delivery",
    "payload",
    "ordering",
    "notes"
  ],
  "properties": {
    "version": {
      "const": 1
    },
    "events": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "type",
          "resource"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "customer.created",
              "customer.updated",
              "opportunity.created",
              "opportunity.updated",
              "project.created",
              "project.updated"
            ]
          },
          "resource": {
            "type": "string",
            "enum": [
              "customers",
              "opportunities",
              "projects"
            ]
          }
        }
      }
    },
    "delivery": {
      "const": "at-least-once"
    },
    "payload": {
      "const": "record-reference"
    },
    "ordering": {
      "const": "not-guaranteed"
    },
    "notes": {
      "type": "string"
    }
  }
}
GET/creation-requirements/{resource}

Requires the resource read and create scopes plus explicit create fields. Advisory compatibility check; POST always revalidates. Reports only granted custom creation field IDs and granted required IDs; discover their definitions separately. Hidden required fields produce a generic blocker. No query parameters.

Requires a bearer API key and owner-approved record and field access.

Request parameters
NameLocationRequirements
resourcepathRequired. Values: customers, opportunities.

Successful response

200 · Current creation compatibility and granted inputs

GET /creation-requirements/{resource} response schemaJSON Schema
{
  "type": "object",
  "required": [
    "data",
    "meta"
  ],
  "properties": {
    "data": {
      "$ref": "#/components/schemas/CreationRequirements"
    },
    "meta": {
      "$ref": "#/components/schemas/RequestMeta"
    }
  }
}

For non-success responses, see errors and recovery. Schema references resolve to the record fields below or the downloadable OpenAPI document.

GET/customers

Requires customers.read and an enabled owner-approved machine policy. Active records only. Opportunities also require access to their parent customers. Sorted updatedAt descending then id ascending; a live listing, not a lossless sync feed.

Requires a bearer API key and owner-approved record and field access.

Request parameters
NameLocationRequirements
limitqueryOptional. Minimum: 1. Maximum: 100. Default: 50.
cursorqueryOptional. Opaque nextCursor from the same resource. Omit on the first page.

Successful response

200 · Authorized page

GET /customers response schemaJSON Schema
{
  "type": "object",
  "required": [
    "data",
    "meta"
  ],
  "properties": {
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/Customer"
      }
    },
    "meta": {
      "$ref": "#/components/schemas/PageMeta"
    }
  }
}

For non-success responses, see errors and recovery. Schema references resolve to the record fields below or the downloadable OpenAPI document.

POST/customers

Requires customers.read, customers.create and an explicit createFields grant. Unknown/ungranted fields and null are rejected. Replay rechecks current field and record access. Does not accept If-Match.

Requires a bearer API key and owner-approved record and field access.

Request parameters
NameLocationRequirements
Idempotency-KeyheaderRequired. Min length: 1. Max length: 128. Pattern: ^[A-Za-z0-9._:-]+$

Primary email and a valid customer name are required; Company requires companyName. Workspace-required core fields also apply. Required custom fields must be granted and supplied; unavailable or unsupported required fields fail closed. No duplicate override, historical dates, portal or consent fields.

CustomerCreate fields
FieldTypeDetails
customerTypeRequiredstringValues: Individual, Company.
firstNamestringMax length: 500.
lastNamestringMax length: 500.
companyNamestringMax length: 500.
preferredNamestringMax length: 500.
emailRequiredstringMax length: 254.
phonestringMax length: 500.
ownerUserIdRequiredstringMax length: 500. Pattern: ^[A-Za-z0-9_-]{1,256}$
preferredLanguagestringMax length: 500.
sourceOptionIdstringMax length: 500. Pattern: ^[A-Za-z0-9_-]{1,256}$
communicationMethodOptionIdstringMax length: 500. Pattern: ^[A-Za-z0-9_-]{1,256}$
doNotCallbooleanRequires an explicit field grant for this write.
doNotEmailbooleanRequires an explicit field grant for this write.
jobTitlestringMax length: 500.
websitestringMax length: 500.
bestContactTimestringMax length: 500.
customFieldValuesCustomValuesOptional values keyed by granted definition ID; explicit customFields.create grants required. Supply effective required custom fields.

Successful response

201 · Created record or authorized replay

Headers: LocationETagIdempotency-Replayed

POST /customers response schemaJSON Schema
{
  "type": "object",
  "properties": {
    "data": {
      "$ref": "#/components/schemas/Customer"
    },
    "meta": {
      "$ref": "#/components/schemas/RequestMeta"
    }
  }
}

For non-success responses, see errors and recovery. Schema references resolve to the record fields below or the downloadable OpenAPI document.

GET/customers/{id}

Read one currently authorized record. No query parameters are accepted.

Requires a bearer API key and owner-approved record and field access.

Request parameters
NameLocationRequirements
idpathRequired.

Successful response

200 · Authorized record

Headers: ETag

GET /customers/{id} response schemaJSON Schema
{
  "type": "object",
  "properties": {
    "data": {
      "$ref": "#/components/schemas/Customer"
    },
    "meta": {
      "$ref": "#/components/schemas/RequestMeta"
    }
  }
}

For non-success responses, see errors and recovery. Schema references resolve to the record fields below or the downloadable OpenAPI document.

PATCH/customers/{id}

Requires customers.read and customers.edit plus explicit field grants. Omitted fields are preserved; null is rejected. Replays recheck current record and field access.

Requires a bearer API key and owner-approved record and field access.

Request parameters
NameLocationRequirements
idpathRequired.
Idempotency-KeyheaderRequired. Min length: 1. Max length: 128. Pattern: ^[A-Za-z0-9._:-]+$
If-MatchheaderRequired. One exact ETag from GET. A new logical edit needs a fresh key.

CustomerPatch fields
FieldTypeDetails
firstNamestringMax length: 500.
lastNamestringMax length: 500.
companyNamestringMax length: 500.
preferredNamestringMax length: 500.
jobTitlestringMax length: 500.
websitestringMax length: 500.
bestContactTimestringMax length: 500.

Successful response

200 · Updated record or authorized replay of the saved result

Headers: ETagIdempotency-Replayed

PATCH /customers/{id} response schemaJSON Schema
{
  "type": "object",
  "properties": {
    "data": {
      "$ref": "#/components/schemas/Customer"
    },
    "meta": {
      "$ref": "#/components/schemas/RequestMeta"
    }
  }
}

For non-success responses, see errors and recovery. Schema references resolve to the record fields below or the downloadable OpenAPI document.

GET/opportunities

Requires opportunities.read and an enabled owner-approved machine policy. Active records only. Opportunities also require access to their parent customers. Sorted updatedAt descending then id ascending; a live listing, not a lossless sync feed.

Requires a bearer API key and owner-approved record and field access.

Request parameters
NameLocationRequirements
limitqueryOptional. Minimum: 1. Maximum: 100. Default: 50.
cursorqueryOptional. Opaque nextCursor from the same resource. Omit on the first page.

Successful response

200 · Authorized page

GET /opportunities response schemaJSON Schema
{
  "type": "object",
  "required": [
    "data",
    "meta"
  ],
  "properties": {
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/Opportunity"
      }
    },
    "meta": {
      "$ref": "#/components/schemas/PageMeta"
    }
  }
}

For non-success responses, see errors and recovery. Schema references resolve to the record fields below or the downloadable OpenAPI document.

POST/opportunities

Requires opportunities.read, opportunities.create and an explicit createFields grant. Unknown/ungranted fields and null are rejected. Replay rechecks current field and record access. Does not accept If-Match.

Requires a bearer API key and owner-approved record and field access.

Request parameters
NameLocationRequirements
Idempotency-KeyheaderRequired. Min length: 1. Max length: 128. Pattern: ^[A-Za-z0-9._:-]+$

Active authorized customer, active same-company owner and an active open pipeline stage are required. Use an existing customer property or create one with propertyAddress and optional city/state/postal fields. Required workspace fields apply; required custom fields must be granted and supplied. No closed-stage or commercial workflow operations.

OpportunityCreate fields
FieldTypeDetails
customerIdRequiredstringMax length: 500. Pattern: ^[A-Za-z0-9_-]{1,256}$
propertyIdstringMax length: 500. Pattern: ^[A-Za-z0-9_-]{1,256}$
propertyAddressstringMax length: 500.
propertyCitystringMax length: 500.
propertyStatestringMax length: 500.
propertyPostalCodestringMax length: 500.
titleRequiredstringMin length: 3. Max length: 140.
pipelineIdRequiredstringMax length: 500. Pattern: ^[A-Za-z0-9_-]{1,256}$
pipelineStageIdRequiredstringMax length: 500. Pattern: ^[A-Za-z0-9_-]{1,256}$
ownerUserIdRequiredstringMax length: 500. Pattern: ^[A-Za-z0-9_-]{1,256}$
valuestringUSD decimal currency units, at most 999999999.99. Default zero. Pattern: ^(0|[1-9][0-9]{0,8})(\.[0-9]{1,2})?$
expectedCloseDatestringFormat: date.
nextActivitystringMax length: 500.
sourceOptionIdstringMax length: 500. Pattern: ^[A-Za-z0-9_-]{1,256}$
serviceLineIdsarrayUp to 25 items. Items must be unique. Item type: string.
customFieldValuesCustomValuesOptional values keyed by granted definition ID; explicit customFields.create grants required. Supply effective required custom fields.

Supply exactly one of propertyId or propertyAddress. Address components only apply when creating a new property.

Successful response

201 · Created record or authorized replay

Headers: LocationETagIdempotency-Replayed

POST /opportunities response schemaJSON Schema
{
  "type": "object",
  "properties": {
    "data": {
      "$ref": "#/components/schemas/Opportunity"
    },
    "meta": {
      "$ref": "#/components/schemas/RequestMeta"
    }
  }
}

For non-success responses, see errors and recovery. Schema references resolve to the record fields below or the downloadable OpenAPI document.

GET/opportunities/{id}

Read one currently authorized record. No query parameters are accepted.

Requires a bearer API key and owner-approved record and field access.

Request parameters
NameLocationRequirements
idpathRequired.

Successful response

200 · Authorized record

Headers: ETag

GET /opportunities/{id} response schemaJSON Schema
{
  "type": "object",
  "properties": {
    "data": {
      "$ref": "#/components/schemas/Opportunity"
    },
    "meta": {
      "$ref": "#/components/schemas/RequestMeta"
    }
  }
}

For non-success responses, see errors and recovery. Schema references resolve to the record fields below or the downloadable OpenAPI document.

PATCH/opportunities/{id}

Requires opportunities.read and opportunities.edit plus explicit field grants. Omitted fields are preserved; null is rejected. Only open opportunities without a linked project can be edited. Replays recheck current record and field access.

Requires a bearer API key and owner-approved record and field access.

Request parameters
NameLocationRequirements
idpathRequired.
Idempotency-KeyheaderRequired. Min length: 1. Max length: 128. Pattern: ^[A-Za-z0-9._:-]+$
If-MatchheaderRequired. One exact ETag from GET. A new logical edit needs a fresh key.

OpportunityPatch fields
FieldTypeDetails
titlestringMin length: 3. Max length: 140.
nextActivitystringMax length: 500.

Successful response

200 · Updated record or authorized replay of the saved result

Headers: ETagIdempotency-Replayed

PATCH /opportunities/{id} response schemaJSON Schema
{
  "type": "object",
  "properties": {
    "data": {
      "$ref": "#/components/schemas/Opportunity"
    },
    "meta": {
      "$ref": "#/components/schemas/RequestMeta"
    }
  }
}

For non-success responses, see errors and recovery. Schema references resolve to the record fields below or the downloadable OpenAPI document.

GET/projects

Requires projects.read and explicit read fields/record boundaries. Parent customer must be accessible; any linked non-manual opportunity must also be accessible. Non-archived, non-deleted, non-merged records only. Stage is the stored workspace label, not a normalized workflow status. No project core write operations; explicitly granted custom value writes use the custom-fields endpoint.

Requires a bearer API key and owner-approved record and field access.

Request parameters
NameLocationRequirements
limitqueryOptional. Minimum: 1. Maximum: 100. Default: 50.
cursorqueryOptional. Opaque nextCursor from the same resource. Omit on the first page.

Successful response

200 · Authorized live page, updatedAt descending then id ascending

GET /projects response schemaJSON Schema
{
  "type": "object",
  "required": [
    "data",
    "meta"
  ],
  "properties": {
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/Project"
      }
    },
    "meta": {
      "$ref": "#/components/schemas/PageMeta"
    }
  }
}

For non-success responses, see errors and recovery. Schema references resolve to the record fields below or the downloadable OpenAPI document.

GET/projects/{id}

Requires projects.read and explicit read fields/record boundaries. Parent customer must be accessible; any linked non-manual opportunity must also be accessible. Non-archived, non-deleted, non-merged records only. Stage is the stored workspace label, not a normalized workflow status. No project core write operations; explicitly granted custom value writes use the custom-fields endpoint.

Requires a bearer API key and owner-approved record and field access.

Request parameters
NameLocationRequirements
idpathRequired.

Successful response

200 · Authorized read-only record

Headers: ETag

GET /projects/{id} response schemaJSON Schema
{
  "type": "object",
  "required": [
    "data",
    "meta"
  ],
  "properties": {
    "data": {
      "$ref": "#/components/schemas/Project"
    },
    "meta": {
      "$ref": "#/components/schemas/RequestMeta"
    }
  }
}

For non-success responses, see errors and recovery. Schema references resolve to the record fields below or the downloadable OpenAPI document.

GET/tasks/{kind}

Requires tasks.read and explicit read fields/assignee boundaries. Every linked supported customer/opportunity/project must be accessible under its own grant. Tasks with unsupported links are excluded. General and flow collections are separate cursor namespaces; persist (kind,id). Includes completed tasks; excludes deleted tasks and archived flow tasks. No task editing, completion or notes API.

Requires a bearer API key and owner-approved record and field access.

Request parameters
NameLocationRequirements
kindpathRequired. Values: general, flow.
limitqueryOptional. Minimum: 1. Maximum: 100. Default: 50.
cursorqueryOptional. Opaque nextCursor from the same resource. Omit on the first page.

Successful response

200 · Authorized live page, updatedAt descending then id ascending

GET /tasks/{kind} response schemaJSON Schema
{
  "type": "object",
  "required": [
    "data",
    "meta"
  ],
  "properties": {
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/Task"
      }
    },
    "meta": {
      "$ref": "#/components/schemas/PageMeta"
    }
  }
}

For non-success responses, see errors and recovery. Schema references resolve to the record fields below or the downloadable OpenAPI document.

GET/tasks/{kind}/{id}

Requires tasks.read and explicit read fields/assignee boundaries. Every linked supported customer/opportunity/project must be accessible under its own grant. Tasks with unsupported links are excluded. General and flow collections are separate cursor namespaces; persist (kind,id). Includes completed tasks; excludes deleted tasks and archived flow tasks. No task editing, completion or notes API.

Requires a bearer API key and owner-approved record and field access.

Request parameters
NameLocationRequirements
kindpathRequired. Values: general, flow.
idpathRequired.

Successful response

200 · Authorized read-only record

Headers: ETag

GET /tasks/{kind}/{id} response schemaJSON Schema
{
  "type": "object",
  "required": [
    "data",
    "meta"
  ],
  "properties": {
    "data": {
      "$ref": "#/components/schemas/Task"
    },
    "meta": {
      "$ref": "#/components/schemas/RequestMeta"
    }
  }
}

For non-success responses, see errors and recovery. Schema references resolve to the record fields below or the downloadable OpenAPI document.

GET/reference-data/{kind}

Requires the corresponding resource read scope and field grant. Owner collections respect the policy owner restriction. Stages require both pipelineId and pipelineStageId read grants and include systemState. Service-lines and opportunity-sources require create scope and the corresponding create field. Customer-properties requires opportunity customerId/propertyId read fields and parent customer access; it returns opaque property IDs and customerId, without address data.

Requires a bearer API key and owner-approved record and field access.

Request parameters
NameLocationRequirements
kindpathRequired. Values: customer-types, lead-sources, communication-methods, opportunity-sources, service-lines, customer-properties, pipelines, stages, customer-owners, opportunity-owners.
limitqueryOptional. Minimum: 1. Maximum: 100. Default: 50.
cursorqueryOptional. Opaque nextCursor from the same resource. Omit on the first page.

Successful response

200 · Tenant-scoped active IDs and labels, ordered by id

GET /reference-data/{kind} response schemaJSON Schema
{
  "type": "object",
  "properties": {
    "data": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "id",
          "label"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "label": {
            "type": "string"
          },
          "pipelineId": {
            "type": "string"
          },
          "systemState": {
            "type": "string"
          },
          "customerId": {
            "type": "string"
          }
        }
      }
    },
    "meta": {
      "$ref": "#/components/schemas/PageMeta"
    }
  }
}

For non-success responses, see errors and recovery. Schema references resolve to the record fields below or the downloadable OpenAPI document.

07

Record fields & data boundaries

#

Every record includes id, revision, createdAt, and updatedAt; tasks also include kind. Other fields depend on explicit read grants. Portal/signing URLs, notes, and internal service objects are excluded. Custom values are read separately through the dedicated custom-fields endpoints.

Customer Read fields ↗

Only owner-approved read fields are returned. Portal/signing links, notes and internal service objects are never returned. Custom values use the dedicated custom-fields endpoints with explicit grants.

Customer fields
FieldTypeDetails
idRequiredstringReturned only when included in your approved field access.
revisionRequiredstringMonotonic database row revision. Only customer/opportunity PATCH accepts If-Match. Pattern: ^[1-9][0-9]*$
createdAtRequiredstringDatabase timestamp with timezone
updatedAtRequiredstringDatabase timestamp with timezone
recordNumberinteger | nullReturned only when included in your approved field access.
customerTypestring | nullReturned only when included in your approved field access.
firstNamestring | nullReturned only when included in your approved field access.
lastNamestring | nullReturned only when included in your approved field access.
companyNamestring | nullReturned only when included in your approved field access.
preferredNamestring | nullReturned only when included in your approved field access.
emailstring | nullReturned only when included in your approved field access.
phonestring | nullReturned only when included in your approved field access.
ownerUserIdstring | nullReturned only when included in your approved field access.
preferredLanguagestring | nullReturned only when included in your approved field access.
sourceOptionIdstring | nullReturned only when included in your approved field access.
communicationMethodOptionIdstring | nullReturned only when included in your approved field access.
doNotCallbooleanReturned only when included in your approved field access.
doNotEmailbooleanReturned only when included in your approved field access.
jobTitlestring | nullReturned only when included in your approved field access.
websitestring | nullReturned only when included in your approved field access.
bestContactTimestring | nullReturned only when included in your approved field access.
Opportunity Read fields ↗

Only owner-approved read fields are returned. Portal/signing links, notes and internal service objects are never returned. Custom values use the dedicated custom-fields endpoints with explicit grants.

Opportunity fields
FieldTypeDetails
idRequiredstringReturned only when included in your approved field access.
revisionRequiredstringMonotonic database row revision. Only customer/opportunity PATCH accepts If-Match. Pattern: ^[1-9][0-9]*$
createdAtRequiredstringDatabase timestamp with timezone
updatedAtRequiredstringDatabase timestamp with timezone
recordNumberinteger | nullReturned only when included in your approved field access.
customerIdstring | nullReturned only when included in your approved field access.
propertyIdstring | nullReturned only when included in your approved field access.
titlestring | nullReturned only when included in your approved field access.
pipelineIdstring | nullReturned only when included in your approved field access.
pipelineStageIdstring | nullReturned only when included in your approved field access.
stagestring | nullReturned only when included in your approved field access.
systemStatestring | nullReturned only when included in your approved field access.
ownerUserIdstring | nullReturned only when included in your approved field access.
valuestringExact stored opportunity value in USD currency units (including decimals), serialized as text
expectedCloseDatestring | nullReturned only when included in your approved field access.
nextActivitystring | nullReturned only when included in your approved field access.
Project Read fields ↗

Only owner-approved read fields are returned. Portal/signing links, notes and internal service objects are never returned. Custom values use the dedicated custom-fields endpoints with explicit grants.

Project fields
FieldTypeDetails
idRequiredstringReturned only when included in your approved field access.
revisionRequiredstringMonotonic database row revision. Only customer/opportunity PATCH accepts If-Match. Pattern: ^[1-9][0-9]*$
createdAtRequiredstringDatabase timestamp with timezone
updatedAtRequiredstringDatabase timestamp with timezone
namestring | nullReturned only when included in your approved field access.
customerIdstring | nullReturned only when included in your approved field access.
opportunityIdstring | nullReturned only when included in your approved field access.
ownerUserIdstring | nullReturned only when included in your approved field access.
pipelineIdstring | nullReturned only when included in your approved field access.
stagestring | nullReturned only when included in your approved field access.
startDatestring | nullFormat: date.
Task Read fields ↗

Only owner-approved read fields are returned. Portal/signing links, notes and internal service objects are never returned. Custom values use the dedicated custom-fields endpoints with explicit grants.

Task fields
FieldTypeDetails
idRequiredstringReturned only when included in your approved field access.
revisionRequiredstringMonotonic database row revision. Only customer/opportunity PATCH accepts If-Match. Pattern: ^[1-9][0-9]*$
createdAtRequiredstringDatabase timestamp with timezone
updatedAtRequiredstringDatabase timestamp with timezone
titlestring | nullReturned only when included in your approved field access.
completedbooleanReturned only when included in your approved field access.
prioritystring | nullReturned only when included in your approved field access.
assignedUserIdstring | nullReturned only when included in your approved field access.
assignedTeamIdstring | nullReturned only when included in your approved field access.
customerIdstring | nullReturned only when included in your approved field access.
opportunityIdstring | nullReturned only when included in your approved field access.
projectIdstring | nullReturned only when included in your approved field access.
dueDatestring | nullCalendar due date; dueAt is null when this is set Format: date.
dueAtstring | nullTimestamp due time; never invented for date-only tasks Format: date-time.
phasestring | nullReturned only when included in your approved field access.
kindRequiredstringValues: general, flow.

Customer and opportunity lists contain active records. Project lists exclude archived, deleted, and merged records; project stage is the stored workspace label, not a normalized status.

Task lists include completed tasks but exclude deleted tasks and archived flow tasks. Persist (kind, id) as the task identity. A date-only task has dueDate with dueAt: null; do not invent a time or timezone for it.

08

Read and write custom fields

#

Customers, opportunities, and projects support custom-field discovery and value reads/writes. Tasks have no custom-field model. Field definitions are created and configured in the workspace; the API does not create or edit definitions.

Explicit access for every definition

The owner’s resource policy may include customFields with read, write, and create arrays of definition IDs (up to 100 each). Write and create IDs must also be in read. Existing policies grant no custom-field access automatically. Project create grants must remain empty.

Example customer custom-field grantJSON
{
  "customFields": {
    "read": [
      "field_external_ref"
    ],
    "write": [
      "field_external_ref"
    ],
    "create": [
      "field_external_ref"
    ]
  }
}

Discovery and value GET require the resource’s read scope. Dedicated value PATCH requires customers.custom-fields.edit, opportunities.custom-fields.edit, or projects.custom-fields.edit, plus its write IDs. These scopes are derived when the owner saves the policy and do not grant general project edits. Customer/opportunity POST still requires the corresponding create scope and core create grants.

Discover, then read

Call GET /custom-field-definitions/customers (or opportunities, projects). It returns only explicitly granted, active, standard-visibility definitions with supported validation, their labels/types, required flag, version, constraints, and active field-specific options. Restricted/administrator fields and defaults are never disclosed. No query parameters or pagination are used; the grant is capped at 100 IDs.

Read custom valuesShell
curl --fail-with-body -i "$SOFFYT_API_BASE/customers/$SOFFYT_CUSTOMER_ID/custom-fields" -H "Authorization: Bearer $SOFFYT_API_KEY"
Example custom values responseJSON
{
  "data": {
    "resource": "customers",
    "id": "customer_example",
    "values": {
      "field_external_ref": "CRM-1042",
      "field_optional": null
    }
  },
  "meta": {
    "requestId": "request_example"
  }
}

Ungranted fields are omitted. Granted unset fields are null. Tenant, owner, and parent-record boundaries match core reads. The custom-fields ETag includes current values and definitions: use this ETag, not the one from a core record GET.

Update values or supply them at creation

PATCH the same custom-fields URL with Content-Type: application/json, the custom-fields If-Match, and a persisted Idempotency-Key. Omitted fields stay unchanged; null clears an optional field. Each submitted ID needs a write grant. Opportunity edits remain limited to open records without a linked project.

Custom-field PATCH bodyJSON
{
  "values": {
    "field_external_ref": "CRM-1043"
  }
}

For customer/opportunity POST, include customFieldValues alongside the normal core fields, using IDs with create grants. Values commit atomically with the new record. Required fields must be supplied; defaults are not applied. Read customFields.requiredIds and customFields.createFieldIds from creation-requirements first. Its generic blocker does not reveal hidden required IDs.

Custom values on creation (body fragment)JSON
{
  "customFieldValues": {
    "field_external_ref": "CRM-1042"
  }
}

Types and validation

Supported types: text, multiline, phone, email, URL, number, currency, percentage, boolean, date, datetime, single-select, and multi-select. User/multi-user fields and unknown types/validation rules are excluded. Numbers must be finite JSON numbers within JavaScript’s safe magnitude; custom currency uses numbers, unlike the core opportunity value string. Booleans must be true/false. Selects use active option IDs belonging to that exact field; multi-select accepts up to 100 distinct IDs. Date uses a real YYYY-MM-DD date; datetime requires an explicit timezone. URLs must use HTTP(S).

Text is trimmed and limited to 10,000 characters. Numeric min/max and text minLength/maxLength constraints apply; percentages are 0–100. Required values cannot be null, empty text, or empty selections. Requests remain limited to 16,000 bytes. Invalid values return 422 invalid_custom_field_value; unauthorized IDs return 403 custom_field_access_denied. Existing invalid workspace values return 422 stored_custom_field_invalid for correction in the workspace.

09

Discover the IDs your integration can use

#

Call GET /reference-data/{kind} to discover active tenant-scoped reference IDs and labels. All collections use limit/cursor pagination and return data plus meta. The field grants below are read grants unless marked create.

Reference collections and required access
KindAccessResult
customer-typescustomers.read + customerTypeActive type IDs and labels. Customer creation takes the literal Individual or Company.
lead-sourcescustomers.read + sourceOptionIdActive lead-source IDs and labels.
communication-methodscustomers.read + communicationMethodOptionIdActive communication-method IDs and labels.
customer-ownerscustomers.read + ownerUserIdActive users allowed by the customer owner restriction.
opportunity-ownersopportunities.read + ownerUserIdActive users allowed by the opportunity owner restriction.
pipelinesopportunities.read + pipelineIdActive sales pipelines.
stagesopportunities.read + pipelineId + pipelineStageIdIncludes pipelineId and systemState. Choose an active open stage for creation.
customer-propertiesopportunities.read + customerId + propertyId; customer accessIncludes customerId. The label is the opaque property ID; addresses are not disclosed.
opportunity-sourcesopportunities.read + opportunities.create + sourceOptionId create grantActive source IDs and labels.
service-linesopportunities.read + opportunities.create + serviceLineIds create grantActive service-line IDs and labels.

Reference visibility does not itself authorize a write. Creation revalidates selected IDs, parent relationships, allowed owner, and active configuration.

10

Errors, limits & recovery

#

Errors return a structured error object. Use its HTTP status and code for recovery, and save the request ID for troubleshooting. Messages are diagnostic text, not a stable branching interface.

Example stale-edit errorJSON
{
  "error": {
    "code": "precondition_failed",
    "message": "The record changed; retrieve it again before editing",
    "requestId": "request_example"
  }
}
Common errors and recommended recovery
StatusCommon codesWhat to do
400invalid_query · invalid_cursor · invalid_json · invalid_idempotency_key · invalid_preconditionCorrect the query, JSON, cursor, or headers. Lists accept only limit and cursor; detail and write endpoints accept no query parameters.
401unauthorizedCheck the bearer key with the company owner. It may be invalid, expired, or revoked.
403insufficient_scope · machine_access_denied · field_access_denied · record_access_denied · workspace_unavailableAsk the owner to review exact scopes, enabled access policy, fields, and allowed owners. A scope alone does not grant record access. Closed workspaces or billing restrictions require owner attention.
404not_foundThe record is absent or outside current access. Do not treat this alone as proof of deletion.
409idempotency_conflict · idempotency_retry · idempotency_incomplete · possible_duplicate · opportunity_locked · request_busy · record_capacity_exceededA conflicting key requires resolving the logical operation. Retry idempotency_retry unchanged with the same key; contact support for incomplete receipts. Review possible duplicates in Soffyt. Locked opportunities cannot be edited through this API. For request_busy, retry after a short delay with the same key. Resolve capacity limits in the workspace before retrying.
412precondition_failedGET the latest record and reconcile your intended edit. Use its ETag and a new Idempotency-Key.
413 / 415payload_too_large · unsupported_media_typeKeep POST/PATCH JSON bodies within 16,000 bytes and send Content-Type: application/json.
422validation_failed · unsupported_creation_configurationCorrect field values or required workspace configuration. Required custom fields must be supported, explicitly granted and supplied.
428precondition_requiredPATCH requires the exact ETag from GET in If-Match, including its quotation marks.
429rate_limitedWait at least the Retry-After number of seconds (currently 60), then retry with backoff and jitter. Preserve the request and key for write retries.
500 / 503internal_error · api_not_configured · api_unavailable · api_writes_unavailable · maintenanceUse bounded backoff for transient failures. Retry uncertain writes with their original key and request. Persistent configuration failures need support.

Rate limits

Authenticated requests use fixed one-minute windows per credential, with the limit configured for its API client. Provisioning defaults to 120 requests per minute and supports 1–1,000; confirm your actual limit with the owner. Requests can count toward the limit even if a later permission check fails.

On 429, honor Retry-After (currently 60 seconds). Use bounded exponential backoff with jitter for transient failures, limit concurrency, and stop repeated retries for permission or validation errors. No remaining-quota header is currently documented.

11

React to changes with webhooks

#

Owner-provisioned v1 subscriptions bind an HTTPS destination and explicit event types to an approved API client. Use GET /webhook-events on your API host for the public catalog. Subscription setup, rotation, and delivery investigation are managed with the owner; v1 has no public subscription-management endpoint.

Customercustomer.createdcustomer.updated
Opportunityopportunity.createdopportunity.updated
Projectproject.createdproject.updated
Example webhook eventJSON
{
  "id": "evt_123",
  "version": 1,
  "type": "customer.updated",
  "occurredAt": "2026-11-01T10:00:00.000Z",
  "organizationId": "organization_example",
  "data": {
    "resource": "customers",
    "id": "customer_example",
    "revision": "2"
  }
}

Events are signed record references, not field snapshots. occurredAt is event capture time, including for historical imports. Fetch the current authorized record using data.resource and data.id; it may have a newer revision or return 404.

Verify before parsing or processing

The headers are X-Soffyt-Timestamp, X-Soffyt-Signature, X-Soffyt-Event-Id, X-Soffyt-Delivery-Id, and X-Soffyt-Event-Type. The signature is v1= followed by lowercase hex HMAC-SHA256 of the timestamp, a dot, and the exact raw body bytes, using the subscription signing secret as the key.

Verify a webhook signatureJavaScript · Node.js
import { createHmac, timingSafeEqual } from 'node:crypto';

// rawBody must be the exact received bytes, before JSON parsing.
export function verifySoffytWebhook(rawBody, timestamp, signature, secrets,
  nowSeconds = Math.floor(Date.now() / 1000)) {
  if (rawBody.byteLength > 256_000 || !timestamp || !/^\d{10}$/.test(timestamp)
    || !signature || !/^v1=[a-f0-9]{64}$/.test(signature)
    || !Number.isFinite(nowSeconds) || Math.abs(nowSeconds - Number(timestamp)) > 300
    || !secrets.length || secrets.length > 2) return false;
  const received = Buffer.from(signature.slice(3), 'hex');
  return secrets.some(secret => {
    if (!secret.startsWith('whsec_') || secret.length < 32) return false;
    const expected = createHmac('sha256', secret)
      .update(timestamp + '.').update(rawBody).digest();
    return timingSafeEqual(received, expected);
  });
}

// Pass x-soffyt-timestamp and x-soffyt-signature from the request headers.
// Load the signing secret from your secret store (not your API bearer key).
// Only after verification: parse JSON, validate its version and event type,
// check organizationId, then durably deduplicate and enqueue by event.id.
// Return 2xx after durable acceptance; fetch the current record in a worker.

The example accepts timestamps within five minutes and up to two configured signing secrets during a coordinated rotation. Read the body with a size limit before calling it. Do not parse and reserialize JSON before checking the signature, and do not trust event headers alone as proof of authenticity.

Make delivery safe to repeat

Durably deduplicate by event id per integration and enqueue processing atomically, then return a 2xx response. Duplicate deliveries should also receive 2xx after confirming prior durable acceptance. Non-2xx responses and transport failures trigger bounded retries. Event IDs stay stable across retries and subscriptions; delivery IDs identify a particular subscription delivery.

Attempts are at least once with no ordering guarantee and no guarantee of eventual delivery. Current access loss suppresses delivery. Tasks, deletions, and tombstones are not part of the v1 event catalog. Use periodic reconciliation and monitor your receiver; webhook delivery is not a lossless audit stream.

12

Build with the right access

#

Tell us the source and destination systems, resources and fields, read/write needs, expected volume, and whether you need scheduled reads or event delivery. The company owner must approve the integration’s access.

For troubleshooting, include the endpoint, HTTP status, error code, request ID, and approximate UTC time. Share redacted examples instead of keys, signing secrets, or customer data.