List Api Keys
GET
/api/api-keys
const url = 'https://example.com/api/api-keys?organization_id=2489E9AD-2EE2-8E00-8EC9-32D5F69181C0&page=1&page_size=20';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
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://example.com/api/api-keys?organization_id=2489E9AD-2EE2-8E00-8EC9-32D5F69181C0&page=1&page_size=20' \ --header 'Authorization: Bearer <token>'List API keys for organization (paginated)
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Query Parameters
Section titled “ Query Parameters ” organization_id
required
Organization Id
string format: uuid
page
Page
integer
page_size
Page Size
integer
Responses
Section titled “ Responses ”Successful Response
Media type application/json
APIKeyListResponse
Paginated list of API keys
object
items
required
Items
Array<object>
APIKeyResponse API key response (without the actual key)
object
created_at
required
Created At
string format: date-time
id
required
Id
string format: uuid
is_active
required
Is Active
boolean
key_prefix
required
Key Prefix
string
name
required
Name
string
organization_id
required
Organization Id
string format: uuid
scopes
required
Scopes
Array<string>
page
Page
integer
page_size
Page Size
integer
total
required
Total
integer
total_pages
Total Pages
integer
Example
{ "page": 1, "page_size": 20, "total_pages": 0}Validation Error
Media type application/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError object
ctx
Context
object
input
Input
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Example generated
{ "detail": [ { "ctx": {}, "input": "example", "loc": [ "example" ], "msg": "example", "type": "example" } ]}