List all keys for an organization

Retrieves a list of all keys for an organization

get
/orgs/{orgid}/api_keys

https://console.automox.com/api/orgs/{orgid}/api_keys
PREREQUISITES: You have Full Administrator privileges. This endpoint allows you to list all keys for an organization.
Request
Response
Request
Path Parameters
orgid
required
integer
The ID of the organization to list keys for.
Headers
Authentication: Bearer
required
string
Your Automox API key for authentication Format: Authorization: Bearer your_automox_api_key
Content-Type: application/json
optional
string
Specify json as the content type
Query Parameters
limit
optional
integer
Maximum number of API keys to retrieve per page. Use in conjunction with the page parameter. See About Automox API > Pagination
page
optional
integer
Retrieve a specific page of API keys or an organization. Use in conjunction with the limit parameter. See About Automox API > Pagination
l
optional
integer
Deprecated, use limit.
p
optional
integer
Deprecated, use page.
Response
200: OK
{
"type": "object",
"properties": {
"results": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"name": {
"type": "string"
},
"is_enabled": {
"type": "boolean"
},
"expires_at": {
"type": "string",
"format": "date-time"
},
"created_at": {
"type": "string",
"format": "date-time"
},
"user": {
"type": "object",
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"firstname": {
"type": "string"
},
"lastname": {
"type": "string"
},
"email": {
"type": "string"
},
}
}
}
}
},
"size": {
"type": "integer",
"format": "int64"
}
}
}

‚Äč