List
List Anthropic API Keys
agents.evaluation_metrics.anthropic.keys.list(KeyListParams**kwargs) -> KeyListResponse
/v2/gen-ai/anthropic/keys
To list all Anthropic API keys, send a GET request to /v2/gen-ai/anthropic/keys
.
Parameters
Returns
List Anthropic API Keys
from gradient import Gradient
client = Gradient()
keys = client.agents.evaluation_metrics.anthropic.keys.list()
print(keys.api_key_infos)
{
"api_key_infos": [
{
"created_at": "2023-01-01T00:00:00Z",
"created_by": "12345",
"deleted_at": "2023-01-01T00:00:00Z",
"name": "example name",
"updated_at": "2023-01-01T00:00:00Z",
"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
}
}
Returns Examples
{
"api_key_infos": [
{
"created_at": "2023-01-01T00:00:00Z",
"created_by": "12345",
"deleted_at": "2023-01-01T00:00:00Z",
"name": "example name",
"updated_at": "2023-01-01T00:00:00Z",
"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
}
}