GrokAI API
Collections
Get collection
GET
Get a specific collection by its ID.
Authentication
X-API-Key
apiKey
Responses
200
Collection
id
string
createdAt
string<date-time>
createdBy
string
updatedAt
string<date-time>
updatedBy
string
name
string
description
string
access
object
metrics
CollectionMetrics
default
Default error response
ErrorResponse
code
integer
*
message
string
*
status
string
*
data
object
Curl
JS
Ruby
Python
1curl --location --globoff 'https://api.askgrok.ai/collections/{cId}' \
2--header 'Accept: application/json' \
3--header 'Content-Type: application/json'
Responses
200
default
1{
2 "id": "a1b2c3d4e5",
3 "createdAt": "2020-01-01T01:01:01Z",
4 "createdBy": "user-1234",
5 "updatedAt": "2020-01-01T01:01:01Z",
6 "updatedBy": "user-1234",
7 "name": "",
8 "description": "",
9 "access": {},
10 "metrics": {
11 "totalConversations": 0,
12 "totalDocuments": 0,
13 "totalPages": 0,
14 "totalBlocks": 0,
15 "totalSize": 0,
16 "averagePagesPerDocument": 0,
17 "averageBlocksPerDocument": 0,
18 "averageDocumentSize": 0
19 }
20}