> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tensorpro.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Get a signed record

> Get one of your signed records, with everything needed to verify it offline: the signed content, its hash, the signature and the signing key's ID.

Use this endpoint to fetch one signed record. Together with EDN's public key, it has everything needed to verify the record offline. See [Signed records](https://docs.tensorpro.ai/concepts/signed-records.md).

## Required headers

| Header | Value | Description |
| - | - | - |
| `Authorization` | `Bearer YOUR_API_KEY` | Your EDN API key. Create keys in the [Console](https://docs.tensorpro.ai/console/api-keys.md). See [Authentication](https://docs.tensorpro.ai/authentication.md) |

## Request

| Parameter | Type | Description |
| - | - | - |
| `receipt_id` | string | The record's ID |

```bash cURL theme={"theme":"github-light"}
curl "https://api.tensorpro.ai/api/v1/evidence/5d8f2a1c-3e4b-4c6d-9f0a-7b1c2d3e4f5a" \
  -H "Authorization: Bearer $EDN_API_KEY"
```

```python Python theme={"theme":"github-light"}
import os
import requests

resp = requests.get(
    "https://api.tensorpro.ai/api/v1/evidence/5d8f2a1c-3e4b-4c6d-9f0a-7b1c2d3e4f5a",
    headers={"Authorization": f"Bearer {os.environ['EDN_API_KEY']}"},
)
resp.raise_for_status()
print(resp.json())
```

```javascript JavaScript theme={"theme":"github-light"}
const resp = await fetch("https://api.tensorpro.ai/api/v1/evidence/5d8f2a1c-3e4b-4c6d-9f0a-7b1c2d3e4f5a", {
  headers: {
    Authorization: `Bearer ${process.env.EDN_API_KEY}`,
  },
});
console.log(await resp.json());
```

## Response

```json 200 OK theme={"theme":"github-light"}
{
  "receipt_id": "5d8f2a1c-3e4b-4c6d-9f0a-7b1c2d3e4f5a",
  "schema": "edn-evidence-receipt",
  "schema_version": "2",
  "record_type": "ai_response",
  "parent_receipt_id": "e7b3c9a1-4d2f-4a8e-b6c0-1f3d5e7a9b2c",
  "user_id": "0c9a8b7d-6e5f-4a3b-8c2d-1e0f9a8b7c6d",
  "session_id": "chat-42",
  "project_id": null,
  "built_at": "2026-11-17T04:43:27Z",
  "payload_b64": "eyJwcm9qZWN0X2lkIjpudWxsLCJyZWNlaXB0X2lkIjoiNWQ4ZjJhMWMtM2U0Yi00YzZkLTlmMGEtN2IxYzJkM2U0ZjVhIiwicmVjb3JkX3R5cGUiOiJhaV9yZXNwb25zZSIsInJlc3BvbnNlX3NoYTI1NiI6InNoYTI1Njo5OWZkNGM2NjBlYjEzNWJiY2NlNTRkZTZkMDlhMjZkMmQ2ZDllODQzMzU3NDg1NTI0ZjQ3ZDUxYjA2YzY4YjdiIiwic2NoZW1hIjoiZWRuLWV2aWRlbmNlLXJlY2VpcHQiLCJzY2hlbWFfdmVyc2lvbiI6IjIiLCJzZXNzaW9uX2lkIjoiY2hhdC00MiIsInNpZ25lZF9hdCI6IjIwMjYtMTEtMTdUMDQ6NDM6MjdaIiwic2lwX3JlY2VpcHRfaWQiOiJlN2IzYzlhMS00ZDJmLTRhOGUtYjZjMC0xZjNkNWU3YTliMmMiLCJ1c2VyX2lkIjoiMGM5YThiN2QtNmU1Zi00YTNiLThjMmQtMWUwZjlhOGI3YzZkIn0=",
  "payload_sha256": "sha256:9951044b646eb47b831aee5a3af1358f2fe0eb4ff2fdce30b212c99ebbe901a7",
  "signature_b64": "8R2M1e/likYJ1UmsbVqf6OUc5fOhjtTJFHHodf4fuk3amgVCKtomeuPAdGlJNUnElRryEFcf/+pP7XulpDYdAg==",
  "key_id": "edn-2026-11",
  "sig_alg": "Ed25519",
  "hash_alg": "SHA-256"
}
```

| Field | Type | Description |
| - | - | - |
| `receipt_id` | string | The record's ID |
| `schema` | string | The record format name, `edn-evidence-receipt` |
| `schema_version` | string | The record format version |
| `record_type` | string | `sip`: a record of a Session Initialization Package (SIP) build. `ai_response`: a record of the AI response to a SIP, saved when you send `receipt_id` to Save a conversation turn |
| `parent_receipt_id` | string or null | For an `ai_response` record, the ID of the SIP record it answers. Otherwise null |
| `user_id` | string | The account the record belongs to |
| `session_id` | string or null | The conversation the record belongs to, if any |
| `project_id` | string or null | The project the record belongs to, if any |
| `built_at` | string | When the record was signed, in RFC 3339 UTC format: the build time for a `sip` record, or the time the AI response was signed for an `ai_response` record |
| `payload_b64` | string | The signed content, base64-encoded. Decode it to get the exact bytes that were signed; they are JSON |
| `payload_sha256` | string | SHA-256 of the decoded payload bytes, as `sha256:` plus 64 hex characters |
| `signature_b64` | string | The Ed25519 signature over the decoded payload bytes, base64-encoded |
| `key_id` | string | The ID of the key that signed the record. Find its public key at `/api/v1/evidence/keys` |
| `sig_alg` | string | The signature algorithm, `Ed25519` |
| `hash_alg` | string | The hash algorithm, `SHA-256` |

## Errors

| Status | Code | When |
| - | - | - |
| `401` | `UNAUTHORIZED` | The API key is missing, invalid, revoked or expired |
| `404` | `NOT_FOUND` | The resource does not exist or does not belong to you |
| `422` | `VALIDATION_ERROR` | A request field is missing or invalid. The `errors` field lists each problem |
| `429` | `RATE_LIMITED` | A rate limit or your daily quota was reached. Wait for the number of seconds in the Retry-After header, then retry |

See [Error handling](https://docs.tensorpro.ai/reference/errors.md).

```json 200 theme={"theme":"github-light"}
{
  "receipt_id": "5d8f2a1c-3e4b-4c6d-9f0a-7b1c2d3e4f5a",
  "schema": "edn-evidence-receipt",
  "schema_version": "2",
  "record_type": "ai_response",
  "parent_receipt_id": "e7b3c9a1-4d2f-4a8e-b6c0-1f3d5e7a9b2c",
  "user_id": "0c9a8b7d-6e5f-4a3b-8c2d-1e0f9a8b7c6d",
  "session_id": "chat-42",
  "project_id": null,
  "built_at": "2026-11-17T04:43:27Z",
  "payload_b64": "eyJwcm9qZWN0X2lkIjpudWxsLCJyZWNlaXB0X2lkIjoiNWQ4ZjJhMWMtM2U0Yi00YzZkLTlmMGEtN2IxYzJkM2U0ZjVhIiwicmVjb3JkX3R5cGUiOiJhaV9yZXNwb25zZSIsInJlc3BvbnNlX3NoYTI1NiI6InNoYTI1Njo5OWZkNGM2NjBlYjEzNWJiY2NlNTRkZTZkMDlhMjZkMmQ2ZDllODQzMzU3NDg1NTI0ZjQ3ZDUxYjA2YzY4YjdiIiwic2NoZW1hIjoiZWRuLWV2aWRlbmNlLXJlY2VpcHQiLCJzY2hlbWFfdmVyc2lvbiI6IjIiLCJzZXNzaW9uX2lkIjoiY2hhdC00MiIsInNpZ25lZF9hdCI6IjIwMjYtMTEtMTdUMDQ6NDM6MjdaIiwic2lwX3JlY2VpcHRfaWQiOiJlN2IzYzlhMS00ZDJmLTRhOGUtYjZjMC0xZjNkNWU3YTliMmMiLCJ1c2VyX2lkIjoiMGM5YThiN2QtNmU1Zi00YTNiLThjMmQtMWUwZjlhOGI3YzZkIn0=",
  "payload_sha256": "sha256:9951044b646eb47b831aee5a3af1358f2fe0eb4ff2fdce30b212c99ebbe901a7",
  "signature_b64": "8R2M1e/likYJ1UmsbVqf6OUc5fOhjtTJFHHodf4fuk3amgVCKtomeuPAdGlJNUnElRryEFcf/+pP7XulpDYdAg==",
  "key_id": "edn-2026-11",
  "sig_alg": "Ed25519",
  "hash_alg": "SHA-256"
}
```


## OpenAPI

````yaml get /api/v1/evidence/{receipt_id}
openapi: 3.1.0
info:
  title: EDN Memory Engine
  version: 0.9.3
servers:
  - description: EDN private beta
    url: https://api.tensorpro.ai
security:
  - EDNApiKey: []
paths:
  /api/v1/evidence/{receipt_id}:
    get:
      summary: Get a signed record
      description: >-
        Get one of your signed records, with everything needed to verify it
        offline: the signed content, its hash, the signature and the signing
        key's ID.
      operationId: get_evidence_receipt_api_v1_evidence__receipt_id__get
      parameters:
        - description: The record's ID.
          in: path
          name: receipt_id
          required: true
          schema:
            description: The record's ID.
            title: Receipt Id
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EvidenceReceiptEnvelope'
          description: Signed record returned.
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: The API key is missing, invalid, revoked or expired.
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: The resource does not exist or does not belong to you.
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationErrorResponse'
          description: >-
            A request field is missing or invalid. The `errors` field lists each
            problem.
        '429':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: >-
            A rate limit or your daily quota was reached. Wait for the number of
            seconds in the Retry-After header, then retry.
          headers:
            Retry-After:
              description: Seconds to wait before retrying.
              schema:
                type: integer
components:
  schemas:
    EvidenceReceiptEnvelope:
      description: A signed record with everything needed to verify it offline.
      properties:
        built_at:
          description: >-
            When the record was signed, in RFC 3339 UTC format: the build time
            for a `sip` record, or the time the AI response was signed for an
            `ai_response` record.
          title: Built At
          type: string
        hash_alg:
          description: The hash algorithm, `SHA-256`.
          title: Hash Alg
          type: string
        key_id:
          description: >-
            The ID of the key that signed the record. Find its public key at
            `/api/v1/evidence/keys`.
          title: Key Id
          type: string
        parent_receipt_id:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            For an `ai_response` record, the ID of the SIP record it answers.
            Otherwise null.
          title: Parent Receipt Id
        payload_b64:
          description: >-
            The signed content, base64-encoded. Decode it to get the exact bytes
            that were signed; they are JSON.
          title: Payload B64
          type: string
        payload_sha256:
          description: >-
            SHA-256 of the decoded payload bytes, as `sha256:` plus 64 hex
            characters.
          title: Payload Sha256
          type: string
        project_id:
          anyOf:
            - type: string
            - type: 'null'
          description: The project the record belongs to, if any.
          title: Project Id
        receipt_id:
          description: The record's ID.
          title: Receipt Id
          type: string
        record_type:
          description: >-
            `sip`: a record of a SIP build. `ai_response`: a record of the AI
            response to a SIP, saved when you send `receipt_id` to Save a
            conversation turn.
          enum:
            - sip
            - ai_response
          title: Record Type
          type: string
        schema:
          default: edn-evidence-receipt
          description: The record format name, `edn-evidence-receipt`.
          title: Schema
          type: string
        schema_version:
          default: '2'
          description: The record format version.
          title: Schema Version
          type: string
        session_id:
          anyOf:
            - type: string
            - type: 'null'
          description: The conversation the record belongs to, if any.
          title: Session Id
        sig_alg:
          description: The signature algorithm, `Ed25519`.
          title: Sig Alg
          type: string
        signature_b64:
          description: >-
            The Ed25519 signature over the decoded payload bytes,
            base64-encoded.
          title: Signature B64
          type: string
        user_id:
          description: The account the record belongs to.
          title: User Id
          type: string
      required:
        - receipt_id
        - record_type
        - user_id
        - built_at
        - payload_b64
        - payload_sha256
        - signature_b64
        - key_id
        - sig_alg
        - hash_alg
      title: EvidenceReceiptEnvelope
      type: object
    ErrorResponse:
      properties:
        code:
          description: >-
            A stable error code, e.g. NOT_FOUND. Also sent in the
            X-EDN-Error-Code header.
          title: Code
          type: string
        detail:
          description: What went wrong, in plain language.
          title: Detail
          type: string
      required:
        - detail
        - code
      title: ErrorResponse
      type: object
    ValidationErrorResponse:
      properties:
        code:
          description: >-
            A stable error code, e.g. NOT_FOUND. Also sent in the
            X-EDN-Error-Code header.
          title: Code
          type: string
        detail:
          description: What went wrong, in plain language.
          title: Detail
          type: string
        errors:
          description: One entry per invalid field.
          items:
            $ref: '#/components/schemas/FieldError'
          title: Errors
          type: array
      required:
        - detail
        - code
        - errors
      title: ValidationErrorResponse
      type: object
    FieldError:
      properties:
        field:
          description: The request field with the problem, e.g. session_id.
          title: Field
          type: string
        message:
          description: What is wrong with it.
          title: Message
          type: string
      required:
        - field
        - message
      title: FieldError
      type: object
  securitySchemes:
    EDNApiKey:
      description: >-
        Your EDN API key, sent as `Bearer YOUR_API_KEY`. Create keys in the
        Console.
      scheme: bearer
      type: http

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.