List all tenants (platform admin)
GET
/admin/tenants
const url = 'http://localhost:3000/admin/tenants';const options = {method: 'GET', headers: {'X-Admin-Key': '<X-Admin-Key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url http://localhost:3000/admin/tenants \ --header 'X-Admin-Key: <X-Admin-Key>'Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”All tenants, newest first.
Media typeapplication/json
Array<object>
object
id
required
string
name
required
string
api_key
required
string
status
required
string
created_at
required
string format: date-time
Example
[ { "status": "active" }]Authenticated but not permitted.
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
requestId
required
string
fields
Present only for VALIDATION_FAILED.
Array<object>
object
path
string
message
string
Example
{ "error": { "code": "VALIDATION_FAILED" }}