⌘
K
GrokAI
About
Ask Grok
Demo
Swagger-UI
GrokAI API
Authentication
User
Quota
Collections
Documents
Conversations
Messages
Docs powered by
Archbee
GrokAI API
Collections
Get collection
GET
Try it
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
1
curl
--location
--globoff
'https://api.askgrok.ai/collections/{cId}'
\
2
--header
'Accept: application/json'
\
3
--header
'Content-Type: application/json'
curl --location --globoff 'https://api.askgrok.ai/collections/{cId}' \ --header 'Accept: application/json' \ --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
}
{ "id": "a1b2c3d4e5", "createdAt": "2020-01-01T01:01:01Z", "createdBy": "user-1234", "updatedAt": "2020-01-01T01:01:01Z", "updatedBy": "user-1234", "name": "", "description": "", "access": {}, "metrics": { "totalConversations": 0, "totalDocuments": 0, "totalPages": 0, "totalBlocks": 0, "totalSize": 0, "averagePagesPerDocument": 0, "averageBlocksPerDocument": 0, "averageDocumentSize": 0 } }
PREVIOUS
Create collection
NEXT
Delete collection
Docs powered by
Archbee
Docs powered by
Archbee