⌘
K
GrokAI
About
Ask Grok
Demo
Swagger-UI
GrokAI API
Authentication
User
Quota
Collections
Documents
Conversations
Messages
Docs powered by
Archbee
GrokAI API
Authentication
Create API key
POST
Try it
Create a new API key
Authentication
X-API-Key
apiKey
Responses
201
The API key has been successfully created.
ApiKey
id
string
value
string
default
Default error response
ErrorResponse
code
integer
*
message
string
*
status
string
*
data
object
Curl
JS
Ruby
Python
1
curl
--location
--request
POST
'https://api.askgrok.ai/keys'
\
2
--header
'Accept: application/json'
\
3
--header
'Content-Type: application/json'
curl --location --request POST 'https://api.askgrok.ai/keys' \ --header 'Accept: application/json' \ --header 'Content-Type: application/json'
Responses
201
default
1
// The API key has been successfully created.
2
{
3
"id"
:
"a1b2c3d4e5"
,
4
"value"
:
"1234-ABCD-5678-WXYZ"
5
}
// The API key has been successfully created. { "id": "a1b2c3d4e5", "value": "1234-ABCD-5678-WXYZ" }
PREVIOUS
List API Keys
NEXT
Get API key
Docs powered by
Archbee
Docs powered by
Archbee