List API keys
GET
/keys
const url = 'https://localhost:3000/api/v1/keys';const options = {method: 'GET', headers: {Authorization: '<Authorization>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://localhost:3000/api/v1/keys \ --header 'Authorization: <Authorization>'Returns all API keys of the authenticated account
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”List of API keys
Media typeapplication/json
Array<object>
object
created_at
required
string format: date-time
id
required
string
last_used_at
string format: date-time
name
required
string
scopes
required
Array<string>
Example
[ { "created_at": "2024-01-15T10:30:00Z", "id": "sk_abc123", "last_used_at": "2024-01-15T10:30:00Z", "name": "Production Key", "scopes": [ "trigger:hit:*", "trigger:read:*" ] }]Unauthorized
Media typeapplication/json
object
error
required
string
message
string
Example
{ "error": "invalid_request", "message": "Invalid request body"}Erreur interne
Media typeapplication/json
object
error
required
string
message
string
Example
{ "error": "invalid_request", "message": "Invalid request body"}