DEVELOPER GUIDE / VERSIONS 1 & 2
Connect with confidence.
Scale company Owners manage scoped credentials in Settings → API & integrations. The page shows the connection capabilities currently available to your company.
Read selected projects and tasks
The Scale company Owner creates an integration after fresh MFA verification. Each credential permits only the listed projects and scopes, expires in 1–90 days, and can be revoked. New projects are not added automatically.
GET /api.php?action=integration_read&resource=projects Authorization: Bearer YOUR_API_KEY GET /api.php?action=integration_read&resource=tasks&projectId=PROJECT_ID&limit=50 Authorization: Bearer YOUR_API_KEY
HTTPS is mandatory. Send the key only in the Authorization header. Browser cookies do not grant API access. Responses contain ok, version, data and nextCursor. For tasks, pass a returned cursor as after to retrieve the next page. A null cursor means the current page is last. IDs are case-sensitive. Concurrent edits may change later pages; a paginated listing is not a point-in-time snapshot.
Projects expose ID and name. Tasks expose ID, title, stage ID, group ID, assignee ID, due date, start date and priority. Custom fields, descriptions, comments, files, contact details and billing are excluded. These legacy keys do not support writes. The task connection API below requires a newly authorized version 2 connection.
Each key permits 60 successful reads per UTC minute. HTTP 429 includes Retry-After. Invalid or expired credentials return 401; insufficient scope or suspended access 403; plan ineligibility 402; unknown or unauthorized project 404; malformed filters 422; unavailable rollout or service 503. Do not retry authorization failures indefinitely.
Receive signed change notifications
An optional HTTPS endpoint receives project.snapshot for each initially observed selected project, then project.changed when its allowed API representation changes. Snapshots are sampled by the scheduled worker; intermediate edits may be coalesced. Notifications contain references, not task content. For legacy connections, unexposed custom-field changes do not trigger notifications. Task connections also use task versions to detect changes, so fetch the selected fields rather than inferring which field changed.
{
"id": "stable-event-id",
"type": "project.changed",
"version": "2026-10-29",
"observedAt": "2026-10-29T00:00:00Z",
"projectId": "selected-project-id",
"exists": true
}The header Trellis-Signature has format t=UNIX_SECONDS,v1=HEX_HMAC. Compute HMAC-SHA256 over the exact bytes of timestamp + "." + raw_request_body, using the displayed signing secret as a string. Compare signatures in constant time, require the timestamp to be within five minutes, and deduplicate by event ID. Reject malformed or duplicate signature fields. Do not parse and reserialize JSON before checking the signature. Trellis-Event-Id matches the signed body's ID.
Acknowledge a verified event with any 2xx response within 10 seconds, then process asynchronously. Delivery is at least once, so duplicates and out-of-order arrivals are possible. Fetch current data instead of treating arrival order as an edit history. A false exists means the selected project no longer exists.
After failure, retry delays are 1 minute, 5 minutes, 30 minutes, 2 hours and 6 hours, up to six attempts. Manual retry preserves the event ID. Redirects are rejected; private, loopback, reserved and shared-network destinations are blocked. This version requires a public IPv4 DNS address and HTTPS port 443. Query strings, URL credentials and fragments are not accepted.
Operate and revoke safely
Store secrets in your server's secret manager. They are shown only at creation. Create a replacement, switch your service, then revoke the old integration. Revocation cancels queued deliveries and future API access; a request already in transit may finish. Password changes, MFA-generation changes, Owner removal or role change invalidate integrations issued by that Owner. Downgrade, suspension or rollout disablement stops access and new delivery attempts.
The UI shows the latest 50 delivery results without remote response bodies. Completed delivery history is retained for 30 days. Unresolved messages are retained, with a bounded backlog; failed deliveries require action. A project with more than 10,000 tasks exceeds the snapshot worker limit and requires support. If a delivery fails, fix the receiving endpoint, review its delivery result in Integrations, then retry the failed event. Keep workflows unpublished until your own connection test succeeds.
TASK CONNECTIONS / VERSION 2
Map fields and exchange task updates
When the Connection Builder is available to your Scale company, its Owner can create a new connection with explicit read, create and update scopes after fresh authenticator verification. Existing keys remain read-only. Choose up to 20 projects, then select each readable and writable task field. New projects and custom fields are never included automatically.
Choose GoHighLevel, n8n, Zapier or Google Sheets. Match the other tool’s field or column names and its stage values to the listed Trellis IDs. Preview with synthetic data before creating access. The generated setup contains placeholders and must be authenticated and tested in the other tool; it does not install or activate a workflow for you. Third-party features may require a paid plan or execution charges.
GET /api.php?action=integration_read&resource=schema&projectId=PROJECT_ID GET /api.php?action=integration_read&resource=tasks_v2&projectId=PROJECT_ID&limit=50 GET /api.php?action=integration_read&resource=task&projectId=PROJECT_ID&taskId=TASK_ID Authorization: Bearer YOUR_API_KEY
The schema returns the approved custom field definitions and available stage and timeframe choices for the permitted fields. Assignee names are limited to active internal people already assigned to that project, and appear only when assignee access was selected; email addresses are excluded. Task connections explicitly include selected project references and task read access. A task returns its ID, project ID, opaque version, completion state and only the selected task/custom fields. Listing uses the same cursor pagination rules as the legacy API.
Create once, then retain the Trellis ID
POST /api.php?action=integration_read&resource=task_create&projectId=PROJECT_ID
Authorization: Bearer YOUR_API_KEY
Content-Type: application/json
Idempotency-Key: PERSIST_ONE_UNIQUE_REQUEST_ID
{
"externalId": "YOUR_STABLE_EXTERNAL_RECORD_ID",
"task": {
"title": "A synthetic test task",
"stageId": "SELECTED_STAGE_ID",
"customFields": { "SELECTED_NUMBER_FIELD_ID": 3.5 }
}
}Save data.id and data.version in dedicated fields or columns in the other tool. Title and stage write access are required for creation. The same external ID cannot create a second task within that connection. External mappings belong to the connection: preserve Trellis task IDs when replacing a key, and update existing tasks rather than importing them again. A deleted task or duplicate external record requires reconciliation; Trellis will not silently recreate it.
Update without overwriting newer work
POST /api.php?action=integration_read&resource=task_update&projectId=PROJECT_ID
Authorization: Bearer YOUR_API_KEY
Content-Type: application/json
Idempotency-Key: A_NEW_ID_FOR_THIS_LOGICAL_EDIT
{
"taskId": "SAVED_TRELLIS_TASK_ID",
"expectedVersion": "VERSION_FROM_THE_LATEST_TASK_READ",
"task": { "title": "The reconciled title" }
}PATCH is also supported for updates. Read the task first and reconcile changes before submitting its exact version. An HTTP 409 means that the task or field mapping changed, the external record was already imported, or an idempotency key conflicts. Resolve the conflict; never force an overwrite. Completed tasks must be restored in Trellis before editing.
Generate a request ID of 16–100 ASCII letters, digits, dots, underscores, colons or hyphens and persist it before the first write. After a timeout or lost response, repeat the exact body and request ID. Reusing that ID with different content is rejected. A new logical edit needs a new ID. Equivalent object-key ordering is accepted, while JSON value types remain significant. Successful write receipts retain the approved response fields privately so the same operation can be replayed safely.
Respect types and prevent loops
Send JSON numbers for numeric fields, booleans for checkboxes, valid YYYY-MM-DD dates, and current option strings for select fields. Use null only when intentionally clearing an optional value; omit fields you want to preserve. Text, number, checkbox, date, select, HTTP/HTTPS URL and email custom fields are supported. Internal metadata, ambiguous field labels and unreviewed definition changes are blocked. A changed custom field definition requires a reviewed replacement connection.
Unchanged updates do not produce another workspace revision or task event. Your workflow should also compare mapped values before writing, persist external record/task IDs, deduplicate webhook event IDs, and avoid echoing its own changes. Change notifications are sampled project signals, so fetch current task data; they are not a guaranteed stream of every edit. Task versions can change after any stored task edit, including a browser edit outside the selected fields.
The task API cannot change plans, billing, company membership, roles, MFA, permissions, approvals, attachments, comments, task completion or task deletion. Credentials remain project-scoped, expiring and revocable. Company deletion removes its credentials and related mappings and replay records. The 60-successful-requests-per-minute limit is shared across legacy reads and task operations.
Provider guides: GoHighLevel Custom Webhook, n8n HTTP Request, Webhooks by Zapier, Google Apps Script UrlFetchApp.