API Keys
Authorizations
AuthorizationstringRequired
OAuth 2.0 access token obtained from the Spice.ai authentication service
Path parameters
appIdintegerRequired
The ID of the app
Responses
200
API keys for the app
application/json
api_keystring · nullableOptional
Primary API key
api_key_2string · nullableOptional
Secondary API key (for key rotation)
400
Invalid app ID
401
Unauthorized
403
Insufficient scope
404
App not found
500
Internal server error
get
/v1/apps/{appId}/api-keysAuthorizations
AuthorizationstringRequired
OAuth 2.0 access token obtained from the Spice.ai authentication service
Path parameters
appIdintegerRequired
The ID of the app
Body
key_numberinteger · enumOptionalDefault:
Which API key to regenerate (0 = both, 1 = primary, 2 = secondary)
1Possible values: Responses
200
API key regenerated successfully
application/json
api_keystring · nullableOptional
Primary API key
api_key_2string · nullableOptional
Secondary API key
regenerated_keyinteger · enumOptionalPossible values:
Which key was regenerated (0 = both, 1 = primary, 2 = secondary)
400
Invalid request body or app ID
401
Unauthorized
403
Insufficient scope
404
App not found
500
Internal server error
post
/v1/apps/{appId}/api-keysLast updated
Was this helpful?