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

# TEE Signature

> Fetch the signed receipt for a chat request, using its X-Receipt-Id value or response body id. The key must belong to the account that made the request.

Fetch the signed receipt for a chat request executed in a TEE. See [TEE Verification](https://docs.nano-gpt.com/api-reference/tee-verification.md).


## OpenAPI

````yaml GET /v1/tee/signature/{requestId}
openapi: 3.1.0
info:
  title: NanoGPT API
  description: >-
    API documentation for the NanoGPT language, image, video, speech-to-text,
    and text-to-speech generation services
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://api.nano-gpt.com/api
    description: Direct API host
  - url: https://nano-gpt.com/api
    description: Website host, for IPv6-only clients and the routes that name it
security: []
paths:
  /v1/tee/signature/{requestId}:
    servers:
      - url: https://api.nano-gpt.com
        description: Root server for TEE endpoints
    get:
      description: >-
        Fetch the signed receipt for a chat request, using its X-Receipt-Id
        value or response body id. The key must belong to the account that made
        the request.
      parameters:
        - name: requestId
          in: path
          description: Receipt ID (X-Receipt-Id) or the response body id
          required: true
          schema:
            type: string
        - name: model
          in: query
          description: TEE model to attest
          required: true
          schema:
            type: string
        - name: signing_algo
          in: query
          description: Signing algorithm to use
          required: false
          schema:
            type: string
          example: ecdsa
      responses:
        '200':
          description: TEE signature response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TEESignatureResponse'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Unauthorized
        '500':
          description: Server Error
      security:
        - bearerAuth: []
components:
  schemas:
    TEESignatureResponse:
      type: object
      properties:
        receipt:
          type: object
          description: The signed receipt, with its event_log, key_id and signature
        text:
          type: string
          description: The request and response hashes, as <request hash>:<response hash>
        signature:
          type: string
          description: An ECDSA signature over text
        signing_address:
          type: string
          description: The address of the key that signed text
        signing_algo:
          type: string
          description: The algorithm of signature
    Error:
      required:
        - error
        - message
      type: object
      properties:
        error:
          type: integer
          format: int32
        message:
          type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````

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