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

# Resolve File Reference

> Resolves a durable `doc://<universal_id>` artifact reference into a freshly minted, short-lived signed download URL. Identity and workspace scope come from the authenticated API token and the resolved workspace context (header `x-workspace-id`), never from the body.



## OpenAPI

````yaml api-reference/tess-public-api.openapi.json POST /files/resolve
openapi: 3.0.0
info:
  title: Tess API
  version: '0.1'
servers:
  - url: https://api.tess.im
security: []
paths:
  /files/resolve:
    post:
      summary: Resolve a durable file reference
      description: >-
        Resolves a durable `doc://<universal_id>` artifact reference into a
        freshly minted, short-lived signed download URL. Identity and workspace
        scope come from the authenticated API token and the resolved workspace
        context (header `x-workspace-id`), never from the body.
      operationId: 49d8b2fcadc368ce2d0c8b6fafcc0d83
      parameters:
        - name: x-workspace-id
          in: header
          description: >-
            ID of the workspace. If not provided, the user's selected workspace
            will be used.
          required: false
          schema:
            type: integer
      requestBody:
        required: true
        content:
          application/json:
            schema:
              required:
                - ref
              properties:
                ref:
                  description: Durable artifact reference returned as `ref_url`.
                  type: string
                  example: doc://file_4f2c1a9e-...
                agent_id:
                  description: >-
                    ID of the agent (OpenAIGenerator) currently being executed,
                    when known. Allows anonymous public-embed sessions to
                    resolve a private file that is registered in that agent's
                    own knowledge base and has anonymous access enabled.
                  type: integer
                  nullable: true
              type: object
      responses:
        '200':
          description: Fresh signed download URL minted for the reference
        '403':
          description: The caller cannot access the referenced file
        '404':
          description: No file matches the reference
        '422':
          description: The reference is malformed
      security:
        - token: []
components:
  securitySchemes:
    token:
      type: http
      bearerFormat: Bearer
      scheme: bearer

````

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