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

# Get File Status

> Get one file's processing status, and a short-lived download URL for it.

Poll this after uploading the bytes: a file is only searchable once embedding has
finished. A failure reports why here rather than by disappearing from the list.

A file that is not yours answers **404**, not 403 — the response deliberately does
not confirm that someone else's `file_id` exists.



## OpenAPI

````yaml /api/openapi.json get /v1/files/{file_id}
openapi: 3.1.0
info:
  title: MeshAPI
  description: One key, all AI models.
  version: 0.1.0
servers:
  - url: https://api.meshapi.ai
security:
  - BearerAuth: []
paths:
  /v1/files/{file_id}:
    get:
      tags:
        - RAG
      summary: Get File Status
      description: >-
        Get one file's processing status, and a short-lived download URL for it.


        Poll this after uploading the bytes: a file is only searchable once
        embedding has

        finished. A failure reports why here rather than by disappearing from
        the list.


        A file that is not yours answers **404**, not 403 — the response
        deliberately does

        not confirm that someone else's `file_id` exists.
      operationId: get_file_status
      parameters:
        - name: file_id
          in: path
          required: true
          schema:
            type: string
            title: File Id
        - in: header
          name: X-Mesh-Version
          required: false
          schema:
            type: string
            enum:
              - 2026-08
            default: 2026-08
          example: 2026-08
          description: >-
            Dated version of the API contract to pin this request to. Omit it
            and the request is served under `2026-08` — the oldest supported
            version, so an existing integration is never moved by a release. A
            malformed or unsupported value is rejected with `400
            invalid_api_version` rather than falling back silently. The version
            actually served is echoed as `X-Mesh-Version` on every response,
            including errors.
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FileStatusResponse'
              examples:
                default:
                  summary: Example response
                  value:
                    file_id: file_01JZ0S3N6M8ZQ8DGK9VY1R2H3T
                    upload_status: uploaded
                    file_name: project_proposal.pdf
                    file_type: pdf
                    mime_type: application/pdf
                    status: ready
                    size_bytes: 245760
                    asset_url: >-
                      gs://meshapi-uploads/file_01JZ0S3N6M8ZQ8DGK9VY1R2H3T/project_proposal.pdf
                    signed_url: null
                    signed_url_expires_at: null
                    embedding_status: completed
                    created_at: '2026-07-02T10:15:30Z'
                    updated_at: '2026-07-02T10:16:05Z'
                    total_tokens: 640
                    total_cost_usd: 0.00008
                    last_error_code: null
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - BearerAuth: []
components:
  schemas:
    FileStatusResponse:
      properties:
        file_id:
          type: string
          title: File Id
        upload_status:
          type: string
          title: Upload Status
        file_name:
          type: string
          title: File Name
        file_type:
          type: string
          title: File Type
        mime_type:
          type: string
          title: Mime Type
        size_bytes:
          anyOf:
            - type: integer
            - type: 'null'
          title: Size Bytes
        asset_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Asset Url
        signed_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Signed Url
        signed_url_expires_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Signed Url Expires At
        embedding_status:
          type: string
          title: Embedding Status
        created_at:
          type: string
          format: date-time
          title: Created At
        updated_at:
          type: string
          format: date-time
          title: Updated At
        total_tokens:
          anyOf:
            - type: integer
            - type: 'null'
          title: Total Tokens
        total_cost_usd:
          anyOf:
            - type: number
            - type: 'null'
          title: Total Cost Usd
        last_error_code:
          anyOf:
            - type: string
            - type: 'null'
          title: Last Error Code
      type: object
      required:
        - file_id
        - upload_status
        - file_name
        - file_type
        - mime_type
        - size_bytes
        - asset_url
        - signed_url
        - signed_url_expires_at
        - embedding_status
        - created_at
        - updated_at
      title: FileStatusResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: >-
        Enter your MeshAPI key (`rsk_...`) — sent as `Authorization: Bearer
        <key>`.

````