⌘
K
GrokAI
About
Ask Grok
Demo
Swagger-UI
GrokAI API
Authentication
User
Quota
Collections
Documents
Conversations
Messages
Docs powered by
Archbee
GrokAI API
Authentication
Delete API Key
DELETE
Try it
Delete an existing API key by its ID.
Authentication
X-API-Key
apiKey
Responses
204
The API key has been successfully deleted.
default
Default error response
ErrorResponse
code
integer
*
message
string
*
status
string
*
data
object
Curl
JS
Ruby
Python
1
curl
--location
--globoff
--request
DELETE
'https://api.askgrok.ai/keys/{id}'
\
2
--header
'Accept: application/json'
\
3
--header
'Content-Type: application/json'
curl --location --globoff --request DELETE 'https://api.askgrok.ai/keys/{id}' \ --header 'Accept: application/json' \ --header 'Content-Type: application/json'
Responses
204
default
1
// The API key has been successfully deleted.
2
// The API key has been successfully deleted.
PREVIOUS
Get API key
NEXT
Get user
Docs powered by
Archbee
Docs powered by
Archbee