Publishing
Publish documents to GitHub, WordPress or a webhook. A connection holds the credentials; a publication says what goes where.
View as MarkdownEndpoints
- GETGet a connection
/v1/connections/{id} - PATCHChange a connection
/v1/connections/{id} - DELRemove a connection
/v1/connections/{id} - POSTTest a connection
/v1/connections/{id}/test - GETList publishing connectors
/v1/connectors - POSTPublish a document to a connection
/v1/documents/{documentId}/publications - GETGet a publication
/v1/publications/{id} - PATCHChange a publication
/v1/publications/{id} - DELRemove a publication
/v1/publications/{id} - POSTResolve a diverged document
/v1/publications/{id}/resolve - POSTPublish now
/v1/publications/{id}/run - GETList a publication's runs
/v1/publications/{id}/runs - POSTUnpublish
/v1/publications/{id}/unpublish - GETList connections
/v1/workspaces/{workspaceId}/connections - POSTConnect a destination
/v1/workspaces/{workspaceId}/connections - POSTStart connecting with OAuth
/v1/workspaces/{workspaceId}/connections/authorize - GETList publications
/v1/workspaces/{workspaceId}/publications
The Publication object
- idULID
- connectionIdULID
- connectorstring
- documentIdULID
- includeSubpagesboolean
Publish only documents whose property equals this (lists: contains it).
- configobject
- autoPublishboolean
- itemsPublicationItem[]
Show 9 fieldsHide fields
- idULID
- documentIdULID
- statestring
One of
draftscheduledpublishingpublishedupdated_pendingfailedunpublisheddiverged For diverged items: reason, base/ours/theirs (destination format), conflicts, marked text and the pull request.
- updatedAttimestamp
- createdAttimestamp
- updatedAttimestamp
{
"id": "01JCQ3V5MZ8G4ZK2X7T9R6N1PB",
"workspaceId": "01JCQ3TZ0WJ8K4M2X7T9R6N1PA",
"connectionId": "01JCQ3V5MZ8G4ZK2X7T9R6N1PB",
"connector": "string",
"documentId": "01JCQ3V5MZ8G4ZK2X7T9R6N1PB",
"includeSubpages": false,
"filter": null,
"config": {},
"autoPublish": false,
"lastRunAt": null,
"items": [
{
"id": "01JCQ3V5MZ8G4ZK2X7T9R6N1PB",
"documentId": "01JCQ3V5MZ8G4ZK2X7T9R6N1PB",
"state": "draft",
"externalId": null,
"externalUrl": null,
"lastPublishedAt": null,
"lastError": null,
"divergence": null,
"updatedAt": "2026-11-12T09:30:00.000Z"
}
],
"createdBy": null,
"updatedBy": null,
"createdAt": "2026-11-12T09:30:00.000Z",
"updatedAt": "2026-11-12T09:30:00.000Z"
}