For the complete documentation index, see llms.txt. This page is also available as Markdown.

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

  • config is a one-of object. POST /api/v1/connections and PUT /api/v1/connections/{id} return 400 when config is missing or when more than one variant is set.

  • Connection responses include id, orgId, name, type, allowedTriggerEvents, healthy, paused, redacted config, createdAt, updatedAt, and deletedAt.

  • List responses return connections, channels, repos, or statuses, and include nextPageToken and previousPageToken when 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, sync

  • curl:

  • JSON:

  • Behaviors: Returns 400 when config is 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, healthy

  • Returns: connections, plus nextPageToken and previousPageToken when present

  • curl:

  • JSON:

  • Behaviors: Returns 400 for invalid filters.

GET /api/v1/connections/{id}

Returns one connection record with the redacted configuration and trigger events it can emit.

  • Key parameters: id

  • Returns: one connection record

  • curl:

  • JSON:

  • Behaviors: Returns 400 for an invalid or missing id.

PUT /api/v1/connections/{id}

Updates the connection name, pause state, and exactly one connection config variant.

  • Key parameters: id, name, paused, config

  • curl:

  • JSON:

  • Behaviors: Returns 400 when config is missing, ambiguous, or fails validation.

DELETE /api/v1/connections/{id}

Removes a connection and can keep dependent records when needed.

  • Key parameters: id, preserveDependencies

  • Returns: no content

  • curl:

  • Behaviors: Returns 204 No Content with no response body.

POST /api/v1/connections/{id}/sync

Starts a background sync for the selected connection.

  • Key parameters: id, wait

  • curl:

  • Behaviors: Returns 202 Accepted with no response body; invalid wait values return 400.

GET /api/v1/connections/{id}/health

Checks whether a connection is healthy and returns any message or error when present.

  • Key parameters: id

  • Returns: id, status, and optional message, error

  • curl:

  • JSON:

  • Behaviors: Returns 400 for an invalid or missing id.

GET /api/v1/connections/{id}/channels

Lists the channels that the selected connection can reach.

  • Key parameters: id

  • Returns: channels

  • curl:

  • JSON:

  • Behaviors: Returns 400 for 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, token

  • Returns: repos

  • curl:

  • JSON:

  • Behaviors: Use connectionId alone, or provide workspace and token together. Returns 400 for invalid parameters.

GET /api/v1/connections/{id}/jira/statuses

Lists the Jira statuses that a connection can use.

  • Key parameters: id

  • Returns: statuses

  • curl:

  • JSON:

  • Behaviors: Returns 400 for an invalid or missing id.

POST /api/v1/connections/{id}/merges/summarize

Starts a background summary for one merged pull request on a connection.

  • Key parameters: id, number

  • curl:

  • Behaviors: Returns 202 Accepted with no response body; missing or invalid number values return 400.

Last updated

Was this helpful?