Export diagnostic logs.
GET
/api/admin/diagnostic-logging/export
Code sample: Shell / cURL
curl --request GET \ --url https://auth.example.com/api/admin/diagnostic-logging/export \ --header 'Authorization: Bearer <token>'Export Diagnostic Logging in the Diagnostic Logging area. Use this operation to retrieve diagnostic logging data without mutating tenant state.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Header Parameters
Section titled “Header Parameters ” X-Tenant-Id
string
Tenant selector for multi-tenant admin requests.
Responses
Section titled “ Responses ”Diagnostic log export response. JSON is returned by default; JSONL and text exports are returned as downloadable files when requested by query parameter.
object
logs
required
Array<object>
object
key
additional properties
statistics
object
key
additional properties
key
additional properties
Example
{ "logs": [ { "timestamp": 1770000000000, "category": "token-validation", "tenantId": "default", "outcome": "success" } ], "statistics": { "total": 1 }}string
Example generated
examplestring