List
List Model API Keys
get/v2/gen-ai/models/api_keys
To list all model API keys, send a GET request to /v2/gen-ai/models/api_keys
.
Query Parameters
pagenumber
optional
Page number.
per_pagenumber
optional
Items per page.
Returns
api_key_infosarray of created_atstringcreated_bystringdeleted_atstringnamestringsecret_keystringuuidstringAPIModelAPIKeyInfo
optional
Api key infos
Links to other pages
Meta information about the data set
curl https://api.digitalocean.com//v2/gen-ai/models/api_keys \
-H "Authorization: Bearer $GRADIENTAI_API_KEY"
200 Example
{
"api_key_infos": [
{
"created_at": "2023-01-01T00:00:00Z",
"created_by": "\"12345\"",
"deleted_at": "2023-01-01T00:00:00Z",
"name": "\"example name\"",
"secret_key": "\"example string\"",
"uuid": "\"123e4567-e89b-12d3-a456-426614174000\""
}
],
"links": {
"pages": {
"first": "\"example string\"",
"last": "\"example string\"",
"next": "\"example string\"",
"previous": "\"example string\""
}
},
"meta": {
"page": 123,
"pages": 123,
"total": 123
}
}