Skip to content

For the complete documentation index, see llms.txt.

List doc collections

GET
/v1/doc-collections
curl --request GET \
--url https://api.gopromptless.ai/v1/doc-collections \
--header 'Authorization: Bearer <token>'

List the doc collections configured for your organization. Each entry carries its id, name, platform, and default_branch. The response is not paged.

The doc collections configured for the organization.

Media typeapplication/json
DocCollectionsResponse

The doc collections configured for the organization. This response is not paged.

object
doc_collections
required
Doc Collections
Array<object>
DocCollection

A doc collection configured for the organization.

object
id
required
Id
string format: uuid
name
required
Name
string
platform
required
Platform
string
default_branch
required
Default Branch
string
Example
{
"doc_collections": [
{
"id": "3f2504e0-4f89-41d3-9a0c-0305e82c3301",
"name": "acme/docs",
"platform": "github",
"default_branch": "main"
}
]
}

The API key is missing, invalid, or revoked.

Media typeapplication/json
ApiTriggerErrorResponse

Error body returned when an API trigger request is rejected.

object
error
required
Error

Stable machine-readable error code.

string
message
required
Message

Human-readable explanation of the error.

string
Example
{
"error": "authentication_failed",
"message": "Authentication failed."
}

The read store is temporarily unavailable (runtime_store_unavailable).

Media typeapplication/json
ApiTriggerErrorResponse

Error body returned when an API trigger request is rejected.

object
error
required
Error

Stable machine-readable error code.

string
message
required
Message

Human-readable explanation of the error.

string
Example
{
"error": "authentication_failed",
"message": "Authentication failed."
}