GET
/
datastores
curl --request GET \
  --url https://api.contextual.ai/v1/datastores \
  --header 'Authorization: Bearer <token>'
{
  "total_count": 123,
  "next_cursor": "<string>",
  "datastores": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "name": "<string>",
      "created_at": "2023-11-07T05:31:56Z"
    }
  ]
}

Authorizations

Authorization
string
header
required

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

Query Parameters

agent_id
string

ID of the agent used to filter datastores. If provided, only datastores linked to this agent will be returned.

limit
integer
default:1000

Maximum number of datastores to return

Required range: 1 <= x <= 1000
cursor
string

Cursor from the previous call to list datastores, used to retrieve the next set of results

Response

200
application/json
Successful Response
total_count
integer
required

Total number of available datastores

datastores
object[]
required

List of all datastores

Datastore output entry with additional fields for public API.

next_cursor
string

Next cursor to continue pagination. Omitted if there are no more datastores to retrieve.