Connections API
Manage Sources and providers over the REST API.
This page covers direct integration with Doc Holiday's API.
Use this reference when an integration needs the public Connections endpoints. See Connection Types for the full type list.
All endpoints on this page require authenticated access; see API overview for how to create and send an API key.
Common shapes
configis a one-of object.POST /api/v1/connectionsandPUT /api/v1/connections/{id}return400whenconfigis missing or when more than one variant is set.Connection responses include
id,orgId,name,type,allowedTriggerEvents,healthy,paused, redactedconfig,createdAt,updatedAt, anddeletedAt.List responses return
connections,channels,repos, orstatuses, and includenextPageTokenandpreviousPageTokenwhen present.
Config examples
githubRepo
{
"githubRepo": {
"githubAppConnectionId": "cnn-0123456789abcdef",
"repositoryUrl": "https://github.com/example/docs"
}
}notion
{
"notion": {
"integrationKey": "********"
}
}slackChannel
Endpoint reference
POST /api/v1/connections
Creates a connection that Doc Holiday can use to read from or write to an external system.
Key parameters:
name,config,paused,synccurl:
JSON:
Behaviors: Returns
400whenconfigis missing or more than one connection type is set.
GET /api/v1/connections
Lists connections and supports filtering by name, type, pause state, sync time, rate limit, and health.
Key parameters:
name,type,paused,syncedAtBefore,remainingRateLimitPercent,healthyReturns:
connections, plusnextPageTokenandpreviousPageTokenwhen presentcurl:
JSON:
Behaviors: Returns
400for invalid filters.
GET /api/v1/connections/{id}
Returns one connection record with the redacted configuration and trigger events it can emit.
Key parameters:
idReturns: one connection record
curl:
JSON:
Behaviors: Returns
400for an invalid or missingid.
PUT /api/v1/connections/{id}
Updates the connection name, pause state, and exactly one connection config variant.
Key parameters:
id,name,paused,configcurl:
JSON:
Behaviors: Returns
400whenconfigis missing, ambiguous, or fails validation.
DELETE /api/v1/connections/{id}
Removes a connection and can keep dependent records when needed.
Key parameters:
id,preserveDependenciesReturns: no content
curl:
Behaviors: Returns
204 No Contentwith no response body.
POST /api/v1/connections/{id}/sync
Starts a background sync for the selected connection.
Key parameters:
id,waitcurl:
Behaviors: Returns
202 Acceptedwith no response body; invalidwaitvalues return400.
GET /api/v1/connections/{id}/health
Checks whether a connection is healthy and returns any message or error when present.
Key parameters:
idReturns:
id,status, and optionalmessage,errorcurl:
JSON:
Behaviors: Returns
400for an invalid or missingid.
GET /api/v1/connections/{id}/channels
Lists the channels that the selected connection can reach.
Key parameters:
idReturns:
channelscurl:
JSON:
Behaviors: Returns
400for an invalid or unsupported connection.
GET /api/v1/bitbucket/repos
Lists Bitbucket repositories using either a connection ID or workspace credentials.
Key parameters:
connectionId,workspace,tokenReturns:
reposcurl:
JSON:
Behaviors: Use
connectionIdalone, or provideworkspaceandtokentogether. Returns400for invalid parameters.
GET /api/v1/connections/{id}/jira/statuses
Lists the Jira statuses that a connection can use.
Key parameters:
idReturns:
statusescurl:
JSON:
Behaviors: Returns
400for an invalid or missingid.
POST /api/v1/connections/{id}/merges/summarize
Starts a background summary for one merged pull request on a connection.
Key parameters:
id,numbercurl:
Behaviors: Returns
202 Acceptedwith no response body; missing or invalidnumbervalues return400.
Last updated
Was this helpful?