{"activeVersionTag":"latest","latestAvailableVersionTag":"latest","collection":{"info":{"_postman_id":"add258fa-d2da-44f1-a049-e8e7efa6f74a","name":"Global Data Integration","description":"# Trustate Global Data Integration (GDI) — Production API\n\nProduction endpoints for the Trustate Global Data Integration lambda. Use these endpoints to create and update matter records, contacts, assets, and liabilities from your own system.\n\n**Base URL:** `https://services.trustate.com/integrations/global-data`\n\n## Authentication\n\nAll routes require two headers:\n\n- `X-PUBLIC-TOKEN` — your public token\n- `X-PRIVATE-KEY` — your private key (treat like a password)\n\nSee the **Verify Auth** request for credential setup steps.\n\n## Endpoints\n\n| Method | Path | Purpose |\n| -- | -- | -- |\n| GET | `/integrations/global-data` | Verify credentials, returns API info |\n| POST | `/integrations/global-data/import` | Create a new matter record |\n| PUT | `/integrations/global-data/import` | Partial update of an existing COMPLETED matter |\n\n## Identifying records: the (source + externalId) dedup key\n\nIn production, records are identified by the **combination** of `IntegrationContext.source` and `IntegrationContext.externalId`. The same `externalId` may be reused under a different `source` without collision.\n\n### Multi-firm partners\n\nIf you serve multiple end-firms and your internal IDs are scoped per firm (so the same `externalId` could repeat across firms), pick **one** of the following patterns:\n\n- **Option A — Different `source` per end-firm.** Example: `source: \"acme-firm-alpha\"`, `source: \"acme-firm-beta\"`.\n- **Option B — Firm identifier inside `externalId`.** Example: `externalId: \"firm-alpha:matter-12345\"`.\n\nEither works. Pick one and apply it consistently.\n\n## Duplicate behavior on POST `/import`\n\nThe duplicate check fires only when an existing record has status `COMPLETED`. Records in any other state do not block a new POST.\n\n| Prior record state | Result | HTTP code |\n| -- | -- | -- |\n| No prior record | New record created (status begins as `PENDING`) | 201 |\n| `PENDING` | New record created (does not block) | 201 |\n| `FAILED` | New record created (does not block) | 201 |\n| `COMPLETED` | Rejected | 409 |\n\nTo modify an existing `COMPLETED` record, use `PUT /import`.\n\n## Updating records: `PUT /import`\n\nUse PUT to update a previously COMPLETED matter. PUT is a **partial update** — only fields included in the payload are written; omitted fields are preserved.\n\n> ⚠️ **Important — wholesale-replace behavior for the three arrays.** When `Contacts`, `Assets`, or `Liabilities` is included in a PUT and is **non-empty**, that array is replaced wholesale; items previously in the array are removed. To leave an array untouched, omit it from the payload or send it as an empty array (`[]`) — both are treated as no-op. There is no way to clear an array via PUT.\n\n### What's required on PUT\n\n- `IntegrationContext.externalId` and `IntegrationContext.source` (lookup keys)\n- At least one of `Matter`, `Contacts`, `Assets`, `Liabilities`, or `DataFields`, and it must be non-empty\n\nUnlike POST, `Matter.displayFirstName` and `Matter.displayLastName` are **not** required on PUT.\n\n### Status precondition\n\nPUT only matches records whose `IntegrationContext.status` is `COMPLETED`. If the matching record is still `PENDING` or has `FAILED`, PUT returns **404**.\n\n## DataFields\n\nDownload the latest DataFields schema [here](https://public-access-admin-docs.s3.us-east-2.amazonaws.com/Trustate-GDI-DataFields.json). DataFields keys must be non-empty and must not contain dots.\n","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","isPublicCollection":true,"owner":"25122243","team":2567765,"collectionId":"add258fa-d2da-44f1-a049-e8e7efa6f74a","publishedId":"2sBXViiqeR","public":true,"publicUrl":"https://api.docs.trustate.com","privateUrl":"https://go.postman.co/documentation/25122243-add258fa-d2da-44f1-a049-e8e7efa6f74a","customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"documentationLayout":"classic-double-column","customisation":{"metaTags":[{"name":"description","value":""},{"name":"title","value":""}],"appearance":{"default":"system_default","themes":[{"name":"dark","logo":"https://content.pstmn.io/c84d32c0-dc62-428a-b30b-7ec7a92b6185/bG9nby1saWdodC5wbmc=","colors":{"top-bar":"212121","right-sidebar":"303030","highlight":"FF6C37"}},{"name":"light","logo":"https://content.pstmn.io/c84d32c0-dc62-428a-b30b-7ec7a92b6185/bG9nby1saWdodC5wbmc=","colors":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"}}]}},"version":"8.10.1","publishDate":"2026-01-21T15:58:46.000Z","activeVersionTag":"latest","documentationTheme":"light","metaTags":{"title":"","description":""},"logos":{"logoLight":"https://content.pstmn.io/c84d32c0-dc62-428a-b30b-7ec7a92b6185/bG9nby1saWdodC5wbmc=","logoDark":"https://content.pstmn.io/c84d32c0-dc62-428a-b30b-7ec7a92b6185/bG9nby1saWdodC5wbmc="}},"statusCode":200},"environments":[],"user":{"authenticated":false,"permissions":{"publish":false}},"run":{"button":{"js":"https://run.pstmn.io/button.js","css":"https://run.pstmn.io/button.css"}},"web":"https://www.getpostman.com/","team":{"logo":"https://res.cloudinary.com/postman/image/upload/t_team_logo_pubdoc/v1/team/f56e31534fecd9c07664272c1c95600add32ee4d0b138240459360dc391acde6","favicon":"https://trustate.com/favicon.ico"},"isEnvFetchError":false,"languages":"[{\"key\":\"csharp\",\"label\":\"C#\",\"variant\":\"HttpClient\"},{\"key\":\"csharp\",\"label\":\"C#\",\"variant\":\"RestSharp\"},{\"key\":\"curl\",\"label\":\"cURL\",\"variant\":\"cURL\"},{\"key\":\"dart\",\"label\":\"Dart\",\"variant\":\"http\"},{\"key\":\"go\",\"label\":\"Go\",\"variant\":\"Native\"},{\"key\":\"http\",\"label\":\"HTTP\",\"variant\":\"HTTP\"},{\"key\":\"java\",\"label\":\"Java\",\"variant\":\"OkHttp\"},{\"key\":\"java\",\"label\":\"Java\",\"variant\":\"Unirest\"},{\"key\":\"javascript\",\"label\":\"JavaScript\",\"variant\":\"Fetch\"},{\"key\":\"javascript\",\"label\":\"JavaScript\",\"variant\":\"jQuery\"},{\"key\":\"javascript\",\"label\":\"JavaScript\",\"variant\":\"XHR\"},{\"key\":\"c\",\"label\":\"C\",\"variant\":\"libcurl\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Axios\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Native\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Request\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Unirest\"},{\"key\":\"objective-c\",\"label\":\"Objective-C\",\"variant\":\"NSURLSession\"},{\"key\":\"ocaml\",\"label\":\"OCaml\",\"variant\":\"Cohttp\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"cURL\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"Guzzle\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"HTTP_Request2\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"pecl_http\"},{\"key\":\"powershell\",\"label\":\"PowerShell\",\"variant\":\"RestMethod\"},{\"key\":\"python\",\"label\":\"Python\",\"variant\":\"http.client\"},{\"key\":\"python\",\"label\":\"Python\",\"variant\":\"Requests\"},{\"key\":\"r\",\"label\":\"R\",\"variant\":\"httr\"},{\"key\":\"r\",\"label\":\"R\",\"variant\":\"RCurl\"},{\"key\":\"ruby\",\"label\":\"Ruby\",\"variant\":\"Net::HTTP\"},{\"key\":\"shell\",\"label\":\"Shell\",\"variant\":\"Httpie\"},{\"key\":\"shell\",\"label\":\"Shell\",\"variant\":\"wget\"},{\"key\":\"swift\",\"label\":\"Swift\",\"variant\":\"URLSession\"}]","languageSettings":[{"key":"csharp","label":"C#","variant":"HttpClient"},{"key":"csharp","label":"C#","variant":"RestSharp"},{"key":"curl","label":"cURL","variant":"cURL"},{"key":"dart","label":"Dart","variant":"http"},{"key":"go","label":"Go","variant":"Native"},{"key":"http","label":"HTTP","variant":"HTTP"},{"key":"java","label":"Java","variant":"OkHttp"},{"key":"java","label":"Java","variant":"Unirest"},{"key":"javascript","label":"JavaScript","variant":"Fetch"},{"key":"javascript","label":"JavaScript","variant":"jQuery"},{"key":"javascript","label":"JavaScript","variant":"XHR"},{"key":"c","label":"C","variant":"libcurl"},{"key":"nodejs","label":"NodeJs","variant":"Axios"},{"key":"nodejs","label":"NodeJs","variant":"Native"},{"key":"nodejs","label":"NodeJs","variant":"Request"},{"key":"nodejs","label":"NodeJs","variant":"Unirest"},{"key":"objective-c","label":"Objective-C","variant":"NSURLSession"},{"key":"ocaml","label":"OCaml","variant":"Cohttp"},{"key":"php","label":"PHP","variant":"cURL"},{"key":"php","label":"PHP","variant":"Guzzle"},{"key":"php","label":"PHP","variant":"HTTP_Request2"},{"key":"php","label":"PHP","variant":"pecl_http"},{"key":"powershell","label":"PowerShell","variant":"RestMethod"},{"key":"python","label":"Python","variant":"http.client"},{"key":"python","label":"Python","variant":"Requests"},{"key":"r","label":"R","variant":"httr"},{"key":"r","label":"R","variant":"RCurl"},{"key":"ruby","label":"Ruby","variant":"Net::HTTP"},{"key":"shell","label":"Shell","variant":"Httpie"},{"key":"shell","label":"Shell","variant":"wget"},{"key":"swift","label":"Swift","variant":"URLSession"}],"languageOptions":[{"label":"C# - HttpClient","value":"csharp - HttpClient - C#"},{"label":"C# - RestSharp","value":"csharp - RestSharp - C#"},{"label":"cURL - cURL","value":"curl - cURL - cURL"},{"label":"Dart - http","value":"dart - http - Dart"},{"label":"Go - Native","value":"go - Native - Go"},{"label":"HTTP - HTTP","value":"http - HTTP - HTTP"},{"label":"Java - OkHttp","value":"java - OkHttp - Java"},{"label":"Java - Unirest","value":"java - Unirest - Java"},{"label":"JavaScript - Fetch","value":"javascript - Fetch - JavaScript"},{"label":"JavaScript - jQuery","value":"javascript - jQuery - JavaScript"},{"label":"JavaScript - XHR","value":"javascript - XHR - JavaScript"},{"label":"C - libcurl","value":"c - libcurl - C"},{"label":"NodeJs - Axios","value":"nodejs - Axios - NodeJs"},{"label":"NodeJs - Native","value":"nodejs - Native - NodeJs"},{"label":"NodeJs - Request","value":"nodejs - Request - NodeJs"},{"label":"NodeJs - Unirest","value":"nodejs - Unirest - NodeJs"},{"label":"Objective-C - NSURLSession","value":"objective-c - NSURLSession - Objective-C"},{"label":"OCaml - Cohttp","value":"ocaml - Cohttp - OCaml"},{"label":"PHP - cURL","value":"php - cURL - PHP"},{"label":"PHP - Guzzle","value":"php - Guzzle - PHP"},{"label":"PHP - HTTP_Request2","value":"php - HTTP_Request2 - PHP"},{"label":"PHP - pecl_http","value":"php - pecl_http - PHP"},{"label":"PowerShell - RestMethod","value":"powershell - RestMethod - PowerShell"},{"label":"Python - http.client","value":"python - http.client - Python"},{"label":"Python - Requests","value":"python - Requests - Python"},{"label":"R - httr","value":"r - httr - R"},{"label":"R - RCurl","value":"r - RCurl - R"},{"label":"Ruby - Net::HTTP","value":"ruby - Net::HTTP - Ruby"},{"label":"Shell - Httpie","value":"shell - Httpie - Shell"},{"label":"Shell - wget","value":"shell - wget - Shell"},{"label":"Swift - URLSession","value":"swift - URLSession - Swift"}],"layoutOptions":[{"value":"classic-single-column","label":"Single Column"},{"value":"classic-double-column","label":"Double Column"}],"versionOptions":[],"environmentOptions":[{"value":"0","label":"No Environment"}],"canonicalUrl":"https://api.docs.trustate.com/view/metadata/2sBXViiqeR"}