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

# Transcriptions — Get Upload URL

> Step 1 of the historical-audio transcription flow. Returns a signed S3 PUT URL for one audio file; PUT the bytes there with exactly the returned headers, then submit the upload_id to POST /v2/transcriptions.

Step 1 of the historical-audio transcription flow. Returns a signed S3 `PUT` URL for one audio file. Nothing is processed until you submit the returned `upload_id` to `POST /v2/transcriptions`.

## Flow

1. **`POST /v2/transcriptions/uploads`** → `{ upload_id, presigned_url, expiration_seconds }`
2. `PUT` the audio bytes to `presigned_url` with a `Content-Type` header matching the one you declared
3. **`POST /v2/transcriptions`** with `upload_id` (+ optional `target_language`) → `202 { job_id, status: "queued" }`
4. **`GET /v2/transcriptions/{job_id}`** every 30–60 s until `status` is `succeeded` or `failed`

```bash theme={null}
curl --request POST \
  --url 'https://api.linqalpha.com/v2/transcriptions/uploads' \
  --header 'X-API-KEY: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"file_name":"bam-call.mp3","content_type":"audio/mpeg"}'
```

Request fields: `file_name` and `content_type`, both required, exactly as on the Vault route. The uploaded object's size (max 2 GB) and type are verified from S3 when you submit the job.

Then upload the file:

```bash theme={null}
curl --request PUT \
  --header 'Content-Type: audio/mpeg' \
  --upload-file bam-call.mp3 \
  '<presigned_url>'
```

> [!NOTE]
>
> Same `PUT` convention as `POST /v2/vault/presigned_url`: the URL is single-object and expires after `expiration_seconds` (1 hour), and the `PUT` request's `Content-Type` must match the `content_type` you declared because it is bound into the signature. Supported types: `audio/mpeg` (mp3), `audio/mp4` and `audio/x-m4a` (m4a), `video/mp4` (mp4). Convert WAV, FLAC, OGG or WebM recordings to one of these before uploading. Maximum size 2 GB.


## OpenAPI

````yaml POST /v2/transcriptions/uploads
openapi: 3.0.1
info:
  title: LinqAlpha API
  description: >-
    Linq helps finance professionals make informed decisions using
    Retrieval-Augmented Generation (RAG)-enhanced answers. By leveraging
    cutting-edge Large Language Models (LLM) and supplementary technology, Linq
    provides the most optimized responses based on your queries.
  version: 1.0.0
  license:
    name: MIT
servers:
  - url: https://api.linqalpha.com
security:
  - ApiKeyAuth: []
tags:
  - name: Meeting Agent
    description: Book and manage meeting recording agents
  - name: Search
    description: Search and generate responses
  - name: Data
    description: Data retrieval and mapping
  - name: Feedback
    description: Conversation feedback
  - name: RMS
    description: Research Management System
  - name: Source Management
    description: Source batch and file management
  - name: MCP
    description: >-
      LinqAlpha MCP — Financial data tools for AI assistants via Model Context
      Protocol
  - name: Connectors
    description: Customer Connectors — customer-owned MCP connector management
  - name: Briefing
    description: Briefing Agent — automated market briefings with scheduling and delivery
  - name: Status
    description: Sync status — check organization, document, and container sync progress
paths:
  /v2/transcriptions/uploads:
    post:
      tags:
        - Transcriptions
      summary: Transcriptions — Get Upload URL
      description: >-
        Step 1 of the historical-audio transcription flow. Returns a signed S3
        PUT URL for one audio file; PUT the bytes there with exactly the
        returned headers, then submit the upload_id to POST /v2/transcriptions.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TranscriptionUploadRequest'
            example:
              file_name: bam-call.mp3
              content_type: audio/mpeg
      responses:
        '201':
          description: Signed upload URL issued
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TranscriptionUploadResponse'
              example:
                error: null
                payload:
                  upload_id: 8d2e6c1a-4f0b-4d7e-9a3c-2b1f5e6a7c90
                  presigned_url: >-
                    https://linq-vertex-documents.s3.amazonaws.com/transcriptions/<org_id>/uploads/<upload_id>/input/audio.mp3?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Expires=3600&...
                  expiration_seconds: 3600
        '400':
          description: Unsupported content_type or blank file_name
        '401':
          description: Unauthorized — invalid or missing API key
      security:
        - ApiKeyAuth: []
components:
  schemas:
    TranscriptionUploadRequest:
      type: object
      required:
        - file_name
        - content_type
      properties:
        file_name:
          type: string
          example: bam-call.mp3
        content_type:
          type: string
          enum:
            - audio/mpeg
            - audio/mp4
            - audio/x-m4a
            - video/mp4
          description: >-
            MIME type of the audio (mp3, m4a or mp4; convert wav/flac/ogg/webm
            first). Bound into the presigned URL signature; the PUT must send
            the same Content-Type.
          example: audio/mpeg
    TranscriptionUploadResponse:
      type: object
      properties:
        error:
          type: object
          nullable: true
          properties:
            code:
              type: string
            msg:
              type: string
            message:
              type: string
        payload:
          $ref: '#/components/schemas/TranscriptionUploadPayload'
      required:
        - error
        - payload
    TranscriptionUploadPayload:
      type: object
      properties:
        upload_id:
          type: string
          format: uuid
        presigned_url:
          type: string
          description: >-
            Signed S3 PUT URL (same convention as /v2/vault/presigned_url).
            Content-Type is bound into the signature.
        expiration_seconds:
          type: integer
          description: Seconds until presigned_url expires.
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-KEY

````

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