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

# Create an upload

> Returns a URL that accepts one PUT of the file for 15 minutes.



## OpenAPI

````yaml POST /uploads
openapi: 3.1.0
info:
  title: Maybloc API
  version: 1.0.0
  description: >-
    Speech-to-text for recorded audio. Upload a recording and get back a
    transcript with every speaker separated, overlapping speech kept, and every
    word timed.
servers:
  - url: https://app.maybloc.com/api/v1
    description: Maybloc v1
security:
  - bearerAuth: []
tags:
  - name: Uploads
    description: Send a recording straight to private storage.
  - name: Transcripts
    description: Transcribe recordings and read the results.
  - name: Account
    description: Your workspace and its balance.
paths:
  /uploads:
    post:
      tags:
        - Uploads
      summary: Create an upload
      description: Returns a URL that accepts one PUT of the file for 15 minutes.
      operationId: createUpload
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateUploadRequest'
      responses:
        '201':
          description: Upload created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Upload'
        '400':
          description: Invalid file name, size or field
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing or invalid API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '413':
          description: File is larger than 2 GB
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '415':
          description: Not a supported audio format
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    CreateUploadRequest:
      type: object
      required:
        - file_name
        - content_type
        - byte_size
      properties:
        file_name:
          type: string
          maxLength: 255
          description: Shown as the transcript's title.
        content_type:
          type: string
          enum:
            - audio/mpeg
            - audio/mp4
            - audio/x-m4a
            - audio/aac
            - audio/wav
            - audio/x-wav
            - audio/wave
            - audio/vnd.wave
            - audio/flac
            - audio/x-flac
            - audio/ogg
            - audio/opus
            - audio/webm
            - video/mp4
            - video/quicktime
            - video/x-matroska
            - video/webm
          description: >-
            MP3, M4A, AAC, WAV, FLAC, OGG, Opus or WebM audio, or MP4, MOV, MKV
            or WebM video (only the sound is kept).
        byte_size:
          type: integer
          minimum: 1
          maximum: 2147483648
    Upload:
      type: object
      properties:
        id:
          type: string
          format: uuid
        object:
          type: string
          const: upload
        upload_url:
          type: string
          format: uri
          description: PUT the file bytes here, with the returned headers.
        headers:
          type: object
          additionalProperties:
            type: string
        file_name:
          type: string
        content_type:
          type: string
        byte_size:
          type: integer
        status:
          type: string
          const: pending
    Error:
      type: object
      required:
        - error
      properties:
        error:
          type: object
          required:
            - code
            - message
            - request_id
          properties:
            code:
              type: string
              examples:
                - invalid_request
                - insufficient_credit
                - rate_limited
            message:
              type: string
            request_id:
              type: string
              description: Quote this when contacting support.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'An API key: Authorization: Bearer mbk_live_...'

````

## Related topics

- [Transcribe a recording with the Maybloc API](https://docs.maybloc.com/quickstart.md)
- [Use the Maybloc docs with AI agents and coding assistants](https://docs.maybloc.com/guides/ai-agents.md)
- [Create a transcript](https://docs.maybloc.com/api-reference/create-a-transcript.md)
- [Maybloc API documentation](https://docs.maybloc.com/index.md)
- [Complete an upload](https://docs.maybloc.com/api-reference/complete-an-upload.md)


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