> ## 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.

# Create Upload URL

> Generate a pre-signed URL for direct audio/video file uploads

> [!WARNING]
>
> This API is not generally available. Whitelisting is currently closed.

## Overview

The `createUploadUrl` mutation generates a pre-signed URL that allows you to upload audio or video files directly to Fireflies.ai storage. This is useful when you want to upload files from your own infrastructure without exposing them via a public URL.

This mutation is part of a two-step upload flow:

1. Call `createUploadUrl` to get a pre-signed upload URL
2. Upload your file directly to the URL using an HTTP PUT request
3. Call [confirmUpload](https://docs.fireflies.ai/graphql-api/mutation/confirm-upload) to confirm the upload and start transcription

## Arguments

**input** `CreateUploadUrlInput` *required*

**content\_type** `String` *required*

The MIME type of the file being uploaded. Must be one of the supported audio or video formats. See [Supported Content Types](#supported-content-types) below.

**file\_size** `Int` *required*

The size of the file in bytes. Used for validation against plan limits. Maximum 2GB for video files (paid users) or 400MB for audio files.

**title** `String`

Title or name of the meeting. This will be used to identify the transcribed file. Maximum 256 characters.

**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). Maximum 5 characters.

**meeting\_date** `String`

The date and time the meeting actually took place, as a calendar-date RFC 3339 string: `YYYY-MM-DD` alone (taken as UTC midnight), or `YYYY-MM-DDTHH:MM:SS` with optional fractional seconds followed by `Z` or a `±HH:MM` offset (required when a time is present — e.g. `2026-03-14T15:00:00+05:30`, normalized to UTC). Use it when importing historical recordings so the meeting is dated with the actual meeting start time instead of the upload time. Must be strictly after `1970-01-01T00:00:00Z` and not in the future. Defaults to the upload time when omitted.

**attendees** `[Attendee]`

An array of [Attendee](https://docs.fireflies.ai/schema/input/attendee.md) objects. 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. Maximum 100 attendees. Note: an attendee is dropped when its email contains the uploader's email as a substring (case-sensitive) — e.g. for an uploader `ed@acme.com`, the attendee `fred@acme.com` is dropped.

## Response

**upload\_url** `String`

The pre-signed URL to upload your file to. Use an HTTP PUT request with the file content as the body.

**meeting\_id** `String`

The unique identifier for the meeting. Use this ID when calling `confirmUpload`.

**expires\_at** `String`

ISO 8601 timestamp indicating when the upload URL expires. URLs are valid for 1 hour.

## Usage Example

```graphql theme={null}
mutation createUploadUrl($input: CreateUploadUrlInput!) {
  createUploadUrl(input: $input) {
    upload_url
    meeting_id
    expires_at
  }
}
```

```bash curl theme={null}
curl -X POST \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer your_api_key" \
  -d '{
    "query": "mutation($input: CreateUploadUrlInput!) { createUploadUrl(input: $input) { upload_url meeting_id expires_at } }",
    "variables": {
      "input": {
        "content_type": "audio/mpeg",
        "file_size": 10485760,
        "title": "Team Meeting Recording"
      }
    }
  }' \
  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 = {
  content_type: 'audio/mpeg',
  file_size: 10485760,
  title: 'Team Meeting Recording'
};

const data = {
  query: `
    mutation($input: CreateUploadUrlInput!) {
      createUploadUrl(input: $input) {
        upload_url
        meeting_id
        expires_at
      }
    }
  `,
  variables: { input }
};

axios
  .post(url, data, { headers })
  .then(result => {
    console.log(result.data);
    
    // Step 2: Upload the file to the signed URL
    const { upload_url, meeting_id } = result.data.data.createUploadUrl;
    // Use fetch or axios to PUT your file to upload_url
  })
  .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 = {
    "content_type": "audio/mpeg",
    "file_size": 10485760,
    "title": "Team Meeting Recording"
}

data = {
    'query': '''
        mutation($input: CreateUploadUrlInput!) {
            createUploadUrl(input: $input) {
                upload_url
                meeting_id
                expires_at
            }
        }
    ''',
    'variables': {'input': input_data}
}

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

if response.status_code == 200:
    result = response.json()
    print(result)
    
    # Step 2: Upload the file to the signed URL
    upload_url = result['data']['createUploadUrl']['upload_url']
    meeting_id = result['data']['createUploadUrl']['meeting_id']
    # Use requests.put() to upload your file to upload_url
else:
    print(response.text)
```

```json Response theme={null}
{
  "data": {
    "createUploadUrl": {
      "upload_url": "https://storage.googleapis.com/...",
      "meeting_id": "abc123def456",
      "expires_at": "2024-01-15T12:00:00.000Z"
    }
  }
}
```

## Uploading the File

After receiving the signed URL, upload your file using an HTTP PUT request:

```bash theme={null}
curl -X PUT \
  -H "Content-Type: audio/mpeg" \
  --data-binary @your-audio-file.mp3 \
  "https://storage.googleapis.com/..."
```

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

const fileBuffer = fs.readFileSync('your-audio-file.mp3');

await axios.put(uploadUrl, fileBuffer, {
  headers: {
    'Content-Type': 'audio/mpeg'
  }
});
```

```python theme={null}
with open('your-audio-file.mp3', 'rb') as f:
    file_data = f.read()

response = requests.put(
    upload_url,
    data=file_data,
    headers={'Content-Type': 'audio/mpeg'}
)
```

After the upload completes successfully, call [confirmUpload](https://docs.fireflies.ai/graphql-api/mutation/confirm-upload) to start transcription.

## Supported Content Types

### Audio Formats

| MIME Type | Extension |
| - | - |
| `audio/mpeg` | .mp3 |
| `audio/mp3` | .mp3 |
| `audio/wav` | .wav |
| `audio/x-wav` | .wav |
| `audio/vnd.wave` | .wav |
| `audio/x-m4a` | .m4a |
| `audio/mp4` | .m4a |
| `audio/ogg` | .ogg |
| `audio/webm` | .webm |
| `audio/aac` | .aac |
| `audio/x-aac` | .aac |
| `audio/aac-adts` | .aac |
| `audio/amr` | .amr |
| `audio/opus` | .opus |
| `audio/3gpp` | .3gp |

### Video Formats

| MIME Type | Extension |
| - | - |
| `video/mp4` | .mp4 |
| `video/webm` | .webm |
| `video/quicktime` | .mov |
| `video/x-m4v` | .m4v |
| `video/mpeg` | .mpeg |
| `video/x-msvideo` | .avi |
| `video/ogg` | .ogv |
| `video/3gpp` | .3gp |

## File Size Limits

| File Type | User Plan | Maximum Size |
| - | - | - |
| Audio | All plans | 400 MB |
| Video | Free | 200 MB |
| Video | Paid | 2 GB |

## Error Codes

> [accordion] paid\_required
>
> This mutation requires a paid plan (Pro or higher). Free plan users cannot use direct file uploads.

> [accordion] invalid\_arguments
>
> The content type is not supported, or the file size exceeds the allowed limit for your plan.

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

## Audit Trail

A successful call records a [`MEETING_UPLOAD_CREATED`](https://docs.fireflies.ai/graphql-api/query/audit-events) audit event carrying the `contentType` and `fileSize` in its metadata.

## Additional Resources

> [card] [Confirm Upload](https://docs.fireflies.ai/graphql-api/mutation/confirm-upload)
>
> Confirm the upload and start transcription

> [card] [Upload Audio (URL)](https://docs.fireflies.ai/graphql-api/mutation/upload-audio.md)
>
> Alternative: Upload audio via public URL

> [card] [Webhooks](https://docs.fireflies.ai/graphql-api/webhooks-v2.md)
>
> Receive notifications when transcription completes

> [card] [Language Codes](https://docs.fireflies.ai/miscellaneous/language-codes.md)
>
> Supported language codes for transcription


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