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

# Mint a single-use upload token for a file



## OpenAPI

````yaml /api-reference/openapi.json post /api/v1/uploads/init
openapi: 3.0.0
info:
  title: Vook API
  description: >-
    Public transcription API. Authenticate every request with your API key:
    `Authorization: Bearer vk_live_…`.


    ## Transcribe a file (3 calls)


    1. **`POST /api/v1/uploads/init`** → returns an `upload_token`.

    2. **`POST {ingress}/upload`**: upload the whole file to the ingress host
    (`https://ingress.vook.ai`, **a different host from this API**) as
    `multipart/form-data` with a single `chunk` field, authenticated with
    `Authorization: Bearer {upload_token}`. The file is sent as a single chunk;
    no chunk index/count is needed. This step is on the ingress service and is
    not listed below.

    3. **`POST /api/v1/transcription-jobs`**: pass the `upload_token` +
    `file_name` + `language` + `diarize`. Returns a job `id`.


    Then **poll `GET /api/v1/transcription-jobs/{id}`** until `status` is
    `completed` (or `partial`/`failed`). Read each id in `transcription_ids`
    through **`GET /api/v1/transcriptions/{id}`** and its `/transcript` /
    `/export` sub-resources.
  version: v1
  contact: {}
servers:
  - url: https://www.api.vook.ai
    description: Production
security: []
tags: []
paths:
  /api/v1/uploads/init:
    post:
      tags:
        - Uploads (API v1)
      summary: Mint a single-use upload token for a file
      operationId: UploadsController_init
      parameters: []
      responses:
        '200':
          description: A short-lived upload token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InitUploadResponseDto'
        '201':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InitUploadResponseDto'
      security:
        - bearer: []
components:
  schemas:
    InitUploadResponseDto:
      type: object
      properties:
        upload_token:
          type: string
          description: >-
            Short-lived token scoped to this upload session. Send as
            `Authorization: Bearer <upload_token>` to the ingress `/upload`
            endpoint with the file, then pass it again when you create the
            transcription job.
          example: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...
      required:
        - upload_token

````