Export at most 1,000 matching diagnostic events as JSONL.
Applies to v0.9.0. Follow the workflow guide and the API overview. Use the configured customer server origin, not the proposed documentation hostname.
POST /api/v1/logs/export
Audit capability.
Normal feature use requires an active trial/license; expiry can return HTTP 423 even where the contract lists only common responses.
Declared parameters
| Name | Location | Required | Schema |
|---|---|---|---|
| X-AccessScope-Request | header | True | {"type": "string", "const": "1"} |
Request body: application/json
Contract: DiagnosticQuery.
| Property | Required | Declared constraints |
|---|---|---|
| category | False | {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Category"} |
| level | False | {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Level"} |
| origin | False | {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Origin"} |
| event | False | {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Event"} |
| source | False | {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Source"} |
| actor | False | {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Actor"} |
| correlation | False | {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Correlation"} |
| text | False | {"anyOf": [{"type": "string", "maxLength": 200}, {"type": "null"}], "title": "Text"} |
| after | False | {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "After"} |
| before | False | {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Before"} |
| cursor | False | {"anyOf": [{"type": "string"}, {"type": "integer"}, {"type": "null"}], "title": "Cursor"} |
Declared responses
| HTTP status | Meaning/contract |
|---|---|
| 200 | Successful Response Inline contract |
| 400 | Bad Request ErrorResponse |
| 401 | Unauthorized ErrorResponse |
| 403 | Forbidden ErrorResponse |
| 409 | Conflict ErrorResponse |
| 422 | Validation Error HTTPValidationError |
Read error.code, message and correlation_id on failure. Check errors and limits. Never convert a rejected request into an empty permission result.
Side effects and evidence
Export at most 1,000 matching diagnostic events as JSONL. Responses and availability depend on current policy/state. POST alone does not mean an infrastructure mutation: read queries, test operations, proposals and local administration remain distinct from the exact change-execution endpoint.
Product baseline v0.9.0 · State schema 8 · Content reviewed 2026-11-06. This website rendering preserves the source packet's qualifiers, compatibility boundaries and acceptance status.

