Collections API

Collections REST API Overview

The Collections API allows you to manage your Collections documents and collections programmatically.

The base url for collection management is shared with Management API at https://management-api.x.ai/v1/. You have to authenticate using xAI Management API Key with the header Authorization: Bearer <your xAI Management API key>.

For more details on provisioning xAI Management API key and using Management API, you can visit

Using Management API

.

The base url for searching within collections is shared with REST API at https://api.x.ai. You have to authenticate with the header Authorization: Bearer <your xAI API key>.