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

# Bestandsinhoud ophalen

> Download de inhoud van een voltooid bestand. Geeft de JSON-bestandsinhoud terug.



## OpenAPI

````yaml nl/openapi/files.json GET /v1/files/{file_id}/content
openapi: 3.0.3
info:
  title: Bestanden API
  version: 1.0.0
servers:
  - url: https://api.olostep.com
security: []
paths:
  /v1/files/{file_id}/content:
    get:
      summary: Haal Bestandsobject op via ID
      description: >-
        Haal een vooraf ondertekende URL op om de inhoud van een voltooid
        bestand te downloaden. Geef optioneel de vervaltijd voor de download-URL
        op met behulp van de expires_in queryparameter (standaard is 600
        seconden / 10 minuten).
      parameters:
        - name: file_id
          in: path
          required: true
          description: Unieke identificatie voor het bestand om te downloaden.
          schema:
            type: string
        - name: expires_in
          in: query
          required: false
          description: >-
            Aantal seconden totdat de download-URL verloopt. Standaard is 600
            seconden (10 minuten).
          schema:
            type: integer
            default: 600
      responses:
        '200':
          description: Succesvolle reactie met download-URL.
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    description: Bestand ID
                  object:
                    type: string
                    description: Het soort object. "file" voor deze endpoint.
                  created:
                    type: integer
                    description: Gemaakt epoch tijdstempel
                  filename:
                    type: string
                    description: De bestandsnaam van het geüploade bestand
                  bytes:
                    type: integer
                    description: Bestandsgrootte in bytes
                  download_url:
                    type: string
                    format: uri
                    description: >-
                      Vooraf ondertekende URL voor het downloaden van het
                      bestand. Verloopt na de opgegeven expires_in tijd.
                  expires_in:
                    type: integer
                    description: Aantal seconden totdat de download-URL verloopt.
        '400':
          description: Foute aanvraag. Bestand niet voltooid.
        '401':
          description: Ongeldige API-sleutel
        '404':
          description: Bestand niet gevonden
        '500':
          description: Interne serverfout
      security:
        - Authorization: []
components:
  securitySchemes:
    Authorization:
      type: http
      scheme: bearer
      description: >-
        Bearer authenticatie header in de vorm Bearer <token>, waar <token> jouw
        auth token is.

````