> For the complete documentation index, see [llms.txt](https://rawctx.gitbook.io/rawctx-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://rawctx.gitbook.io/rawctx-docs/api-reference/answer-evidence.md).

# Answer Evidence

## GET /api/answer-audit-logs

> List answer evidence records

```json
{"openapi":"3.1.0","info":{"title":"rawctx HTTP API","version":"2026-07-31"},"tags":[{"name":"Answer evidence"}],"servers":[{"url":"https://{workspace-api-host}","description":"Authenticated workspace API","variables":{"workspace-api-host":{"default":"workspace-api-host","description":"Tenant API host returned during workspace login"}}}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"rawctx user token or application JWT"}},"responses":{"Forbidden":{"description":"Wrong token type, role, scope, tenant, or application key"}}},"paths":{"/api/answer-audit-logs":{"get":{"tags":["Answer evidence"],"summary":"List answer evidence records","parameters":[{"name":"application_key","in":"query","schema":{"type":"string"}},{"name":"environment","in":"query","schema":{"type":"string"}},{"name":"status","in":"query","schema":{"type":"string","enum":["recorded","corrected","voided","redacted"]}},{"name":"created_after","in":"query","schema":{"type":"string","format":"date-time"}},{"name":"created_before","in":"query","schema":{"type":"string","format":"date-time"}}],"responses":{"200":{"description":"Paginated records"},"403":{"$ref":"#/components/responses/Forbidden"}}}}}}
```

## POST /api/answer-audit-logs

> Create an answer evidence record

```json
{"openapi":"3.1.0","info":{"title":"rawctx HTTP API","version":"2026-07-31"},"tags":[{"name":"Answer evidence"}],"servers":[{"url":"https://{workspace-api-host}","description":"Authenticated workspace API","variables":{"workspace-api-host":{"default":"workspace-api-host","description":"Tenant API host returned during workspace login"}}}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"rawctx user token or application JWT"}},"schemas":{"AnswerLogCreate":{"type":"object","required":["application_key","question","answer"],"properties":{"application_key":{"type":"string"},"environment":{"type":"string","default":"production"},"idempotency_key":{"type":"string"},"question":{"$ref":"#/components/schemas/TextOrHash"},"answer":{"$ref":"#/components/schemas/TextOrHash"},"semantic_refs":{"type":"array","items":{"type":"object","additionalProperties":true}},"source_refs":{"type":"array","items":{"type":"object","additionalProperties":true}},"evidence_access_event_ids":{"type":"array","items":{"type":"string","format":"uuid"}}}},"TextOrHash":{"type":"object","properties":{"text":{"type":"string"},"hash":{"type":"string"}},"anyOf":[{"required":["text"]},{"required":["hash"]}]}},"responses":{"Forbidden":{"description":"Wrong token type, role, scope, tenant, or application key"},"Conflict":{"description":"Idempotency or immutable-resource conflict"},"ValidationError":{"description":"Request schema, hash mode, or workspace-policy mismatch"}}},"paths":{"/api/answer-audit-logs":{"post":{"tags":["Answer evidence"],"summary":"Create an answer evidence record","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnswerLogCreate"}}}},"responses":{"201":{"description":"Created or idempotently reused answer record"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/ValidationError"}}}}}}
```

## GET /api/answer-audit-logs/{answer\_log\_id}

> Read one answer evidence record and its event history

```json
{"openapi":"3.1.0","info":{"title":"rawctx HTTP API","version":"2026-07-31"},"tags":[{"name":"Answer evidence"}],"servers":[{"url":"https://{workspace-api-host}","description":"Authenticated workspace API","variables":{"workspace-api-host":{"default":"workspace-api-host","description":"Tenant API host returned during workspace login"}}}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"rawctx user token or application JWT"}},"parameters":{"AnswerLogId":{"name":"answer_log_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}},"responses":{"NotFound":{"description":"Resource not found in the selected public or tenant boundary"}}},"paths":{"/api/answer-audit-logs/{answer_log_id}":{"get":{"tags":["Answer evidence"],"summary":"Read one answer evidence record and its event history","parameters":[{"$ref":"#/components/parameters/AnswerLogId"}],"responses":{"200":{"description":"Answer record"},"404":{"$ref":"#/components/responses/NotFound"}}}}}}
```

## POST /api/answer-audit-logs/{answer\_log\_id}/events

> Append a manager-reviewed lifecycle event

```json
{"openapi":"3.1.0","info":{"title":"rawctx HTTP API","version":"2026-07-31"},"tags":[{"name":"Answer evidence"}],"servers":[{"url":"https://{workspace-api-host}","description":"Authenticated workspace API","variables":{"workspace-api-host":{"default":"workspace-api-host","description":"Tenant API host returned during workspace login"}}}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"rawctx user token or application JWT"}},"parameters":{"AnswerLogId":{"name":"answer_log_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}},"schemas":{"AnswerLogEventCreate":{"type":"object","required":["event_type"],"properties":{"event_type":{"type":"string","enum":["correction_appended","voided","redacted","retention_extended"]},"reason":{"type":"string","maxLength":4000},"payload":{"type":"object","additionalProperties":true}}}},"responses":{"Forbidden":{"description":"Wrong token type, role, scope, tenant, or application key"}}},"paths":{"/api/answer-audit-logs/{answer_log_id}/events":{"post":{"tags":["Answer evidence"],"summary":"Append a manager-reviewed lifecycle event","parameters":[{"$ref":"#/components/parameters/AnswerLogId"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnswerLogEventCreate"}}}},"responses":{"200":{"description":"Updated answer record with appended event"},"403":{"$ref":"#/components/responses/Forbidden"}}}}}}
```

## GET /api/answer-audit-logs/export

> Export up to 200 manager-selected records

```json
{"openapi":"3.1.0","info":{"title":"rawctx HTTP API","version":"2026-07-31"},"tags":[{"name":"Answer evidence"}],"servers":[{"url":"https://{workspace-api-host}","description":"Authenticated workspace API","variables":{"workspace-api-host":{"default":"workspace-api-host","description":"Tenant API host returned during workspace login"}}}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"rawctx user token or application JWT"}},"responses":{"Forbidden":{"description":"Wrong token type, role, scope, tenant, or application key"}}},"paths":{"/api/answer-audit-logs/export":{"get":{"tags":["Answer evidence"],"summary":"Export up to 200 manager-selected records","parameters":[{"name":"format","in":"query","required":true,"schema":{"type":"string","enum":["jsonl","csv"]}}],"responses":{"200":{"description":"JSONL or CSV export; no export pagination"},"403":{"$ref":"#/components/responses/Forbidden"}}}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://rawctx.gitbook.io/rawctx-docs/api-reference/answer-evidence.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
