SpyBara
Go Premium

rest-api-reference/collections.md 2026-06-11 10:57 UTC to 2026-06-14 22:02 UTC

1 added, 1 removed.

2026
Wed 24 13:01 Mon 22 20:59 Fri 19 05:59 Thu 18 00:57 Wed 17 15:58 Mon 15 23:02 Sun 14 22:02 Thu 11 10:57

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>.

[!NOTE]

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>.