Skip to main content
GET
/
repositories
List Repositories
curl --request GET \
  --url https://api.contextone.com/repositories \
  --header 'Authorization: Bearer <token>' \
  --header 'X-Org-Id: <x-org-id>'
{
  "success": true,
  "data": [
    {
      "id": "<string>",
      "orgId": "<string>",
      "name": "<string>",
      "description": "<string>",
      "repository": "<string>",
      "versioningStrategy": "branch",
      "indexType": "full",
      "excludeFiles": [
        "<string>"
      ],
      "includeFiles": [
        "<string>"
      ],
      "createdAt": "2023-11-07T05:31:56Z",
      "updatedAt": "2023-11-07T05:31:56Z",
      "versions": [
        {
          "id": 123,
          "repositoryId": "<string>",
          "documentationId": "<string>",
          "version": {
            "type": "release",
            "name": "<string>",
            "commitId": "<string>",
            "date": "2023-11-07T05:31:56Z"
          },
          "status": "COMPLETED",
          "namespace": "<string>",
          "taskRunId": "<string>",
          "output": "<string>",
          "error": "<string>",
          "createdAt": "2023-11-07T05:31:56Z",
          "updatedAt": "2023-11-07T05:31:56Z"
        }
      ]
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

X-Org-Id
string
required

Organization ID (required)

Query Parameters

status
enum<string>

Filter by version status

Available options:
ALL,
COMPLETED,
IN-PROGRESS,
FAILED,
CANCELED

Response

200 - application/json

Repositories list

success
boolean
required
data
object[]
required
I