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

# Upload Audio

> Use the API to upload audio to Fireflies.ai

## Overview

The `uploadAudio` mutation allows you to upload audio files to Fireflies.ai for transcription.

## Arguments

**input** `AudioUploadInput`

**url** `String` *required*

The url of media file to be transcribed. It MUST be a valid https string and publicly accessible to enable us download the audio / video file. Double check to see if the media file is downloadable and that the link is not a preview link before making the request. The media file must be either of these formats - mp3, mp4, wav, m4a, ogg

**title** `String`

Title or name of the meeting, this will be used to identify the transcribed file

**webhook** `String`

URL for the webhook that receives notifications when transcription completes

**custom\_language** `String`

Specify a custom language code for your meeting, e.g. `es` for Spanish or `de` for German. For a complete list of language codes, please view [Language Codes](https://docs.fireflies.ai/miscellaneous/language-codes.md)

**save\_video** `Boolean`

Specify whether the video should be saved or not.

**attendees** `[Attendees]`

An array of objects containing meeting [Attendees](#). This is relevant if you have active integrations like Salesforce, Hubspot etc. Fireflies uses the attendees value to push meeting notes to your active CRM integrations where notes are added to an existing contact or a new contact is created. Each object contains -

* displayName
* email
* phoneNumber

**client\_reference\_id** `String`

Custom identifier set by the user during upload. You may use this to identify your uploads in your webhook
events.

**bypass\_size\_check** `Boolean`

Bypasses the internal file size validation that normally rejects audio files smaller than 50kb. Set to true if you need to process very short audio clips.

**download\_auth** `DownloadAuthInput`

Authentication configuration for downloading the media file. Use this when your audio/video file requires authentication (bearer token or basic auth). If not provided, defaults to no authentication (publicly accessible URL). See [DownloadAuthInput](https://docs.fireflies.ai/schema/input/download-auth-input.md) for details.

**meeting\_date** `String`

Optional. The date and time the meeting actually took place, in ISO 8601 format (e.g. `2026-03-14T15:00:00Z`; offsets are normalized to UTC). Nonexistent calendar dates are rejected. Use this when importing historical recordings so the meeting is dated correctly instead of using the upload time. Must not be in the future. Defaults to the upload time when omitted.

## Usage Example

To upload a file, provide the necessary input parameters to the mutation. Here's an example of how this mutation could be used:

```graphql theme={null}
mutation uploadAudio($input: AudioUploadInput) {
  uploadAudio(input: $input) {
    success
    title
    message
  }
}
```

```bash curl theme={null}
curl -X POST \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer your_api_key" \
  -d '{
    "query": "mutation($input: AudioUploadInput) { uploadAudio(input: $input) { success title message } }",
    "variables": {
      "input": {
        "url": "https://url-to-the-audio-file",
        "title": "title of the file",
        "attendees": [
          {
            "displayName": "Fireflies Notetaker",
            "email": "notetaker@fireflies.ai",
            "phoneNumber": "xxxxxxxxxxxxxxxx"
          },
          {
            "displayName": "Fireflies Notetaker 2",
            "email": "notetaker2@fireflies.ai",
            "phoneNumber": "xxxxxxxxxxxxxxxx"
          }
        ]
      }
    }
  }' \
  https://api.fireflies.ai/graphql
```

```javascript javascript theme={null}
const axios = require('axios');

const url = 'https://api.fireflies.ai/graphql';
const headers = {
  'Content-Type': 'application/json',
  Authorization: 'Bearer your_api_key'
};

const input = {
  url: 'https://url-to-the-audio-file',
  title: 'title of the file',
  attendees: [
    {
      displayName: 'Fireflies Notetaker',
      email: 'notetaker@fireflies.ai',
      phoneNumber: 'xxxxxxxxxxxxxxxx'
    },
    {
      displayName: 'Fireflies Notetaker 2',
      email: 'notetaker2@fireflies.ai',
      phoneNumber: 'xxxxxxxxxxxxxxxx'
    }
  ]
};
const data = {
  query: `       mutation($input: AudioUploadInput) {
        uploadAudio(input: $input) {
          success
          title
          message
        }
      }
    `,
  variables: { input }
};

axios
  .post(url, data, { headers: headers })
  .then(result => {
    console.log(result.data);
  })
  .catch(e => {
    console.log(JSON.stringify(e));
  });
```

```python python theme={null}
import requests

url = 'https://api.fireflies.ai/graphql'

headers = {
    'Content-Type': 'application/json',
    'Authorization': 'Bearer your_api_key'
}

input_data = {
	"url": "https://url_for_audio_file",
	"title": "title of the file",
	"attendees": [
		{
			"displayName": "Fireflies Notetaker",
			"email": "notetaker@fireflies.ai",
			"phoneNumber": "xxxxxxxxxxxxxxxx"
		},
		{
			"displayName": "Fireflies Notetaker 2",
			"email": "notetaker2@fireflies.ai",
			"phoneNumber": "xxxxxxxxxxxxxxxx"
		}
	]}

data = {
	'query': '''
		mutation($input: AudioUploadInput) {
			uploadAudio(input: $input) {
				success
				title
				message
			}
		}
	''',
	'variables': {'input': input_data}
}

response = requests.post(url, headers=headers, json=data)

if response.status_code == 200:
    print(response.json())
else:
    print(response.text)
```

```java java theme={null}
import java.io.IOException;
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.net.http.HttpRequest.BodyPublishers;
import java.net.http.HttpResponse.BodyHandlers;

public class ApiRequest {
public static void main(String[] args) throws IOException, InterruptedException {
HttpClient client = HttpClient.newHttpClient();

	String json = "{"
		+ "\"query\":\"mutation($input: AudioUploadInput) { uploadAudio(input: $input) { success title message } }\","
		+ "\"variables\":{"
		+ "\"input\": {"
			+ "\"url\":\"https://url_for_audio_file.com\","
			+ "\"title\":\"title of the file\","
			+ "\"attendees\":["
			+ "{"
				+ "\"displayName\": \"Fireflies Notetaker\","
				+ "\"email\": \"notetaker@fireflies.ai\","
				+ "\"phoneNumber\": \"xxxxxxxxxxxxxxxx\""
			+ "},"
			+ "{"
				+ "\"displayName\": \"Fireflies Notetaker 2\","
				+ "\"email\": \"notetaker2@fireflies.ai\","
				+ "\"phoneNumber\": \"xxxxxxxxxxxxxxxx\""
			+ "}"
			+ "]"
		+ "}"
		+ "}"
	+ "}";


	HttpRequest request = HttpRequest.newBuilder()
			.uri(URI.create("https://api.fireflies.ai/graphql"))
			.header("Content-Type", "application/json")
			.header("Authorization", "Bearer your_api_key")
			.POST(BodyPublishers.ofString(json))
			.build();

	client.sendAsync(request, HttpResponse.BodyHandlers.ofString())
		.thenApply(HttpResponse::body)
		.thenAccept(System.out::println)
		.join();
    }

}
```

```json Response theme={null}
{
  "data": {
    "uploadAudio": {
      "success": true,
      "title": "title of the file",
      "message": "Uploaded audio has been queued for processing."
    }
  }
}
```

## Authenticated Downloads

The `download_auth` field allows you to upload audio/video files that require authentication. This is useful when your media files are hosted on private servers or behind authentication.

### Bearer Token Authentication

Use bearer token authentication when your media URL requires an `Authorization: Bearer <token>` header:

```graphql theme={null}
mutation {
  uploadAudio(input: {
    url: "https://example.com/protected-audio.mp3"
    title: "Protected Meeting Recording"
    download_auth: {
      type: bearer_token
      bearer: {
        token: "your-bearer-token-here"
      }
    }
  }) {
    success
    message
  }
}
```

### Basic Authentication

Use basic authentication when your media URL requires username and password:

```graphql theme={null}
mutation {
  uploadAudio(input: {
    url: "https://example.com/protected-audio.mp3"
    title: "Protected Meeting Recording"
    download_auth: {
      type: basic_auth
      basic: {
        username: "your-username"
        password: "your-password"
      }
    }
  }) {
    success
    message
  }
}
```

**Note:** The username is optional for basic auth. If not provided, only the password will be used.

## FAQ

> [accordion] Can I upload a file directly from my machine?
>
> Audio upload only works with publicly accessible URLs or URLs with supported authentication (bearer token or basic auth). We cannot accept files hosted on your local machine.

> [accordion] I don't want to expose my audio files to the public internet. How can I upload them to Fireflies.ai safely?
>
> You have two options:
>
> <ol>
>   <li>**Signed URLs:** Use signed URLs with short expiry times (e.g., AWS S3 presigned URLs, Google Cloud Storage signed URLs)</li>
>   <li>**Authenticated Downloads:** Use the `download_auth` field to provide bearer token or basic authentication credentials. Fireflies will use these credentials when downloading your media file.</li>
> </ol>

> [accordion] What authentication methods are supported?
>
> Fireflies supports two authentication methods for downloading media files:
>
> <ul>
>   <li>**Bearer Token:** Adds `Authorization: Bearer <token>` header when downloading</li>
>   <li>**Basic Auth:** Adds `Authorization: Basic <base64(username:password)>` header when downloading</li>
> </ul>
>
> If your media file is publicly accessible, you don't need to provide `download_auth`.

## Error Codes

List of possible error codes that may be returned by the `uploadAudio` mutation. Full list of error codes can be found [here](https://docs.fireflies.ai/miscellaneous/error-codes.md).

> [accordion] paid\_required (pro\_or\_higher)
>
> You may receieve this error when uploading audio files or querying `audio_url` field.Free plan users cannot upload audio files. Please upgrade to a paid plan to upload audio files.

> [accordion] paid\_required (pro\_or\_higher) - video\_url
>
> You may receieve this error when querying `video_url` field.Free plan users cannot query `video_url` field. Please upgrade to a Pro or higher plan to query `video_url` field.

> [accordion] payload\_too\_small
>
> The audio file is too short to be processed. Please ensure the audio file is at least 50kb in size.

> [accordion] feature\_disabled
>
> Your organization admin has disabled file uploads for transcription, so audio cannot be uploaded. Contact your admin to re-enable uploads. See [feature\_disabled](https://docs.fireflies.ai/miscellaneous/error-codes.md#feature_disabled).

> [accordion] invalid\_language\_code
>
> The language code you provided is invalid. Please refer to the [Language Codes](https://docs.fireflies.ai/miscellaneous/language-codes.md) page for a list of valid language codes.

## Audit Trail

A successful call records a [`MEETING_AUDIO_UPLOADED`](https://docs.fireflies.ai/graphql-api/query/audit-events) audit event carrying the client reference ID in metadata.

## Additional Resources

> [card] [Webhooks](https://docs.fireflies.ai/graphql-api/webhooks-v2.md)
>
> Create notifications using webhooks

> [card] [Add to Live](https://docs.fireflies.ai/graphql-api/mutation/add-to-live.md)
>
> Use the API to add the Fireflies.ai bot to an ongoing meeting


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