⌘
K
GrokAI
About
Ask Grok
Demo
Swagger-UI
GrokAI API
Authentication
User
Quota
Collections
Documents
Conversations
Messages
Docs powered by
Archbee
GrokAI API
Documents
List documents
GET
Try it
List all documents within a collection.
Authentication
X-API-Key
apiKey
Query Parameters
pageSize
integer
pageToken
string
Responses
200
DocumentList
total
integer
nextPageToken
string
documents
Document[]
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}/documents'
\
2
--header
'Accept: application/json'
\
3
--header
'Content-Type: application/json'
curl --location --globoff 'https://api.askgrok.ai/collections/{cId}/documents' \ --header 'Accept: application/json' \ --header 'Content-Type: application/json'
Responses
200
default
1
{
2
"total"
:
10
,
3
"nextPageToken"
:
"next-page-token"
,
4
"documents"
:
[
5
{
6
"id"
:
"a1b2c3d4e5"
,
7
"name"
:
""
,
8
"state"
:
""
,
9
"mimeType"
:
""
,
10
"pages"
:
0
,
11
"error"
:
""
,
12
"fileUrl"
:
""
,
13
"pdfUrl"
:
""
,
14
"textUrl"
:
""
,
15
"imageUrls"
:
[
16
""
17
]
,
18
"createdAt"
:
"2020-01-01T01:01:01Z"
,
19
"createdBy"
:
"user-1234"
,
20
"updatedAt"
:
"2020-01-01T01:01:01Z"
,
21
"updatedBy"
:
"user-1234"
22
}
23
]
24
}
{ "total": 10, "nextPageToken": "next-page-token", "documents": [ { "id": "a1b2c3d4e5", "name": "", "state": "", "mimeType": "", "pages": 0, "error": "", "fileUrl": "", "pdfUrl": "", "textUrl": "", "imageUrls": [ "" ], "createdAt": "2020-01-01T01:01:01Z", "createdBy": "user-1234", "updatedAt": "2020-01-01T01:01:01Z", "updatedBy": "user-1234" } ] }
PREVIOUS
Search collection
NEXT
Add documents
Docs powered by
Archbee
Docs powered by
Archbee