> 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/evidence-assets.md).

# Evidence Assets

## GET /api/evidence-assets

> List sanitized reference-media metadata

```json
{"openapi":"3.1.0","info":{"title":"rawctx HTTP API","version":"2026-07-31"},"tags":[{"name":"Evidence assets"}],"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"}}},"paths":{"/api/evidence-assets":{"get":{"tags":["Evidence assets"],"summary":"List sanitized reference-media metadata","responses":{"200":{"description":"Paginated evidence assets"}}}}}}
```

## POST /api/evidence-assets

> Register reusable reference media

```json
{"openapi":"3.1.0","info":{"title":"rawctx HTTP API","version":"2026-07-31"},"tags":[{"name":"Evidence assets"}],"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/evidence-assets":{"post":{"tags":["Evidence assets"],"summary":"Register reusable reference media","responses":{"201":{"description":"Registered evidence asset"},"403":{"$ref":"#/components/responses/Forbidden"}}}}}}
```

## POST /api/evidence-assets/{evidence\_asset\_id}/retrieve

> Retrieve a purpose-bound runtime stream and access event

```json
{"openapi":"3.1.0","info":{"title":"rawctx HTTP API","version":"2026-07-31"},"tags":[{"name":"Evidence assets"}],"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":{"EvidenceAssetId":{"name":"evidence_asset_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}},"responses":{"Forbidden":{"description":"Wrong token type, role, scope, tenant, or application key"}}},"paths":{"/api/evidence-assets/{evidence_asset_id}/retrieve":{"post":{"tags":["Evidence assets"],"summary":"Retrieve a purpose-bound runtime stream and access event","parameters":[{"$ref":"#/components/parameters/EvidenceAssetId"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["purpose"],"properties":{"purpose":{"type":"string"},"external_trace_id":{"type":"string"},"external_message_id":{"type":"string"}}}}}},"responses":{"200":{"description":"Short-lived stream URL, source reference, and access event ID"},"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/evidence-assets.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.
