⌘
K
GrokAI
About
Ask Grok
Demo
Swagger-UI
GrokAI API
Authentication
User
Quota
Collections
Documents
Conversations
Messages
Docs powered by
Archbee
GrokAI API
Documents
Get document text
GET
Try it
Get the raw text of a document extracted via OCR.
Authentication
X-API-Key
apiKey
Path Parameters
cId
string
*
dId
string
*
Responses
200
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/{dId}/text'
\
2
--header
'Accept: application/json'
\
3
--header
'Content-Type: application/json'
curl --location --globoff 'https://api.askgrok.ai/collections/{cId}/documents/{dId}/text' \ --header 'Accept: application/json' \ --header 'Content-Type: application/json'
Responses
200
default
1
PREVIOUS
Search document
NEXT
List conversations
Docs powered by
Archbee
Docs powered by
Archbee