Skip to content

Upload audio-file missing MIME type parameter #100

Description

@Thytu

Issue

Documentation example is missing MIME type : https://docs.gladia.io/api-reference/v2/upload/audio-file

When running the interactive example the API returns a 400 status code :
{"statusCode":400,"timestamp":"2025-12-11T18:56:50.498Z","path":"/v2/upload","message":"Invalid parameter(s). See validation_errors for more details.","validation_errors":["Missing audio file"],"request_id":"G-4c580e27"}

Fix

Add MIME type:

- files = { "audio": ("re.mp3", open("re.mp3", "rb")) }
+ files = { "audio": ("re.mp3", open("re.mp3", "rb"), "audio/*") }

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions