List doc collections
const url = 'https://api.gopromptless.ai/v1/doc-collections';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”The doc collections configured for the organization.
The doc collections configured for the organization. This response is not paged.
object
A doc collection configured for the organization.
object
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.
Error body returned when an API trigger request is rejected.
object
Stable machine-readable error code.
Human-readable explanation of the error.
Example
{ "error": "authentication_failed", "message": "Authentication failed."}The read store is temporarily unavailable (runtime_store_unavailable).
Error body returned when an API trigger request is rejected.
object
Stable machine-readable error code.
Human-readable explanation of the error.
Example
{ "error": "authentication_failed", "message": "Authentication failed."}