Revoke an API key
apikey_abc123456
DELETE /v2/api-keys/{key_fid} HTTP/1.1 Host: api.mlfoundry.com Authorization: Bearer fkey_<key> Accept: */*
Successful Response
No content
Get all API keys registered to the user
GET /v2/api-keys HTTP/1.1 Host: api.mlfoundry.com Authorization: Bearer fkey_<key> Accept: */*
[ { "fid": "apikey_abc123456", "name": "text", "created_at": "2024-01-01T00:00:00Z", "expires_at": "2024-01-01T00:00:00Z", "deactivated_at": "2024-01-01T00:00:00Z", "snippet": "fkey_abc1..." } ]
Create a new API key
2024-01-01T00:00:00Z
POST /v2/api-keys HTTP/1.1 Host: api.mlfoundry.com Authorization: Bearer fkey_<key> Content-Type: application/json Accept: */* Content-Length: 51 { "name": "text", "expires_at": "2024-01-01T00:00:00Z" }
{ "fid": "apikey_abc123456", "name": "text", "created_at": "2024-01-01T00:00:00Z", "expires_at": "2024-01-01T00:00:00Z", "deactivated_at": "2024-01-01T00:00:00Z", "snippet": "fkey_abc1...", "secret": "fkey_abc123456" }