CovenDocs

Fetch a sensitive session artifact

1 min read

GET
/sessions/{id}/artifacts/{artifactId}

Path Parameters

id*string

The session id (stable across daemon restarts).

artifactId*string

Id of the sensitive artifact recorded for this session.

Query Parameters

raw*"1"

Must be 1. Explicit acknowledgement that the caller wants raw (unredacted) artifact content.

Value in"1"

Response Body

The decrypted artifact payload.

application/json
  1. response

Decrypted payload of one sensitive session artifact.

sessionId*string
artifactId*string
eventId*string

Id of the event this artifact was redacted from.

kind*string

Artifact kind recorded at redaction time.

payload*unknown

Decrypted artifact content — JSON when the plaintext parses as JSON, otherwise a string.

curl -X GET 'http://localhost:3000/api/v1/sessions/session-1/artifacts/artifact-1?raw=1'
{  "sessionId": "session-1",  "artifactId": "artifact-1",  "eventId": "event-1",  "kind": "output",  "payload": {    "data": "redacted material"  }}
Was this page helpful?No

Last updated on