Idempotency-Key, If-Match, pending operations and the error format. Use CONNECT_API_BASE_URL=https://data.grdd.net for the examples on this page.
The core route
GET /api/content/{griddid}/documents is a different, read-only route. See Get Documents.What is available
Use owner routes for your company’s document library and separate authenticated reads for another company’s visible documents. Connect download signing covers supported stored files, not every legacy file link. Keep Core document compatibility where required.Endpoints
Owner routes
These routes act on the company in your token. For an update, rename, visibility change, move or delete,If-Match and Idempotency-Key are both required.
Read the documents of another company
Both routes need your Bearer token. Send the target company’s GNET ID in the path. The optional query parameters are
locale (en, fr, de or es) and force (true or false). Neither route accepts pagination. A 200 response contains items, an array of reduced records. See Public record. The presence of a record does not mean it has a downloadable file.
partner/{griddid} route can return public documents or documents your company qualifies to see through GNet access, direct sharing or a confirmed partnership. Access depends on both the document and the viewer. The public/{griddid} route returns only public documents. These rules do not replace the Core document-list rules.
Folders
Documents can be organized in folders. The folder routes follow the same rules as the document routes, with method-specific header requirements. Use the folder reference for request fields, folder records, version checks and recovery. The route list below stays at its existing address.
The folder
PATCH and DELETE routes need If-Match and Idempotency-Key. POST /api/document-folders and the order route need Idempotency-Key.
Not for external use or not described
GET /api/documents/published/{griddid}andGET /api/document-folders/public/{griddid}use theServicecredential of the public website renderer./api/documents/advisor/**andGET /api/document-folders/advisor/{griddid}are for the compliance advisor company only./api/documents/{documentId}/trackingis a document tracking route that depends on an external provider. It is not described here./api/document-media/**(albums and photos) is a separate part of the API. It is not described here.
Authentication and access
- Send
Authorization: Bearer YOUR_ACCESS_TOKEN. See Authentication. - The owner routes do not check a role in the token. A token with the role
ADMINcan read documents of other companies through the viewer rules. - Creating a document has no subscription check in the source at the reviewed commit. The subscription contract sets no limit for document uploads.
Document fields
Read record
Public record
public/{griddid} and partner/{griddid} return these fields only: id, title, griddid, badgeUrl, issueDate, expiryDate, description, documentType, visibility, issuer, folder, sort_order, compliance_status, slug, updatedAt, createdAt. They do not return documentUrl.
Write body
All write bodies are strict. Unknown keys return400 invalid_request.
Create (POST /api/documents):
document accepts the read fields, except id, griddid, slug, createdAt and updatedAt. title is required. It is trimmed and must not be empty. All other fields are optional. If you omit visibility, the API sets it from documentType. For example ein and contract default to private, certificate and ada to public, and insurance_* and permit_airpot to gnet. An unknown or missing type defaults to private.
Update (PATCH /api/documents/{documentId}): the body is { "document": { ... } } with any subset of those fields, plus optional locale and contentLanguage (update_version or add_version).
- A document that a tracking provider manages cannot change
certificialTracking,policyRequestId,issueDateorexpiryDate. The response is422 domain_rejected. - Every
sharewithentry needs agriddid. The IDs must be unique company IDs. Otherwise the response is422 domain_rejected.
PATCH /api/documents/order): body { "documents": [{ "id": 41, "sortOrder": 1, "version": 1, "folderId": null }], "locale": "en" }. At least one document. The IDs must be unique. folderId is optional.
Create a document record
The body is the fixturedocument-create.json:
201 Created (or 202 if pending) with an ETag. The body has status, data (the document), effects and invalidated, and can have operationId.
Upload a file
POST /api/documents/upload takes multipart/form-data with exactly two parts: file and metadata. Other parts return 400 invalid_request.
fileis the file. The maximum size is 10 MiB. The allowed formats are PDF, PNG, JPG/JPEG, WEBP, DOCX, DOC, XLS, XLSX, CSV and ZIP. The API checks the file extension and the first bytes of the file. A file that does not match returns415 unsupported_media_type, and one that is too large returns413 payload_too_large.metadatais a JSON string with the same fields as the create body (document,locale,contentLanguage). To replace the file of an existing document, adddocumentIdandexpectedVersion.
201 for a new document, 200 when a file is replaced, and 202 when pending. Do not set the Content-Type header yourself. The client must add the multipart boundary.
Read documents
200 with the header ETag: "v1". This is the fixture document-record.json:
GET /api/documents returns { "items": [...], "meta": {...} }. The list has no pagination parameters. Query: locale and force.
A document of another company returns 404 not_found on the owner routes.
GET /api/documents/public/demo-company returns the reduced record. This is the fixture document-public-list.json:
Update a document
200 OK with the header ETag: "v2". This is the fixture document-mutation.json:
202 with status: "pending" and an operationId. A stale If-Match returns 412 version_conflict.
Download a document
For a file managed by Connect, request a signed URL. The path accepts the document’s numeric ID or a slug that is not all digits. Send the owning company’s GNET ID in the requiredownerGriddid query parameter. You can also send locale (en, fr, de or es). The method uses your Bearer token and the document viewer rules, including for another company’s document.
200 response returns URL and file metadata, not file bytes or a Core document object:
signedUrl to download the file before the link expires. Treat it as sensitive. The API can return 403 forbidden if the viewer cannot read the document, 404 not_found if no file matches the ID and owner, or 502 downstream_failure if signing fails. Connect cannot sign every legacy file reference. Keep existing Core file URLs and the Core file method where Connect signing is not available.
Delete a document
204 No Content when the delete is complete. If follow-up work is not finished, the response is 202 with status: "pending", data: null, operationId and effects.