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

# Add to Live

> Use the API to add the Fireflies.ai bot to an ongoing meeting

## Overview

The `addToLiveMeeting` mutation allows you to add the Fireflies.ai bot to an ongoing meeting. It is rate limited to 3 requests per 20 minutes per user; on Business and Enterprise plans the team shares a pool of 3 requests per paid seat per 20 minutes, up to 60, of which a single user can use at most half (rounded up, never less than 3).

## Arguments

**meeting\_link** `String!` *required*

A valid http URL for the meeting link, i.e. gooogle meet, zoom, etc

**title** `String`

Title or name of the meeting, this will be used to identify the transcribed file. If title is not
provided, a default title will be set automatically

Maximum length is 256 characters.

**meeting\_password** `String`

Password for the meeting, if applicable.

Maximum length is 32 characters.

**duration** `Int`

Meeting duration in minutes. Defaults to 60 minutes if
param is not provided

Minimum is 15 and maximum is 120.

**language** `String`

Language of the meeting. Defaults to English if not provided. For a complete list of language codes, please view [Language Codes](https://docs.fireflies.ai/miscellaneous/language-codes.md)

Maximum length is 5 characters.

**attendees** `[Attendee]`

Array of [Attendees](https://docs.fireflies.ai/schema/input/attendee.md) for expected meeting participants.

## Usage Example

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

```graphql theme={null}
mutation AddToLiveMeeting($meetingLink: String!) {
  addToLiveMeeting(meeting_link: $meetingLink) {
    success
  }
}
```

```bash curl theme={null}
curl -X POST \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer your_api_key" \
  -d '{
    "query": "mutation AddToLiveMeeting($meetingLink: String!) { addToLiveMeeting(meeting_link: $meetingLink) { success } }",
    "variables": {
      "meetingLink": "https://meet.google.com/code-here"
    }
  }' \
  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 data = {
  query: `  mutation AddToLiveMeeting($meetingLink: String!) {
				addToLiveMeeting(meeting_link: $meetingLink) {
					success
				}
			}
    `,
  variables: { meetingLink: 'https://meet.google.com/code-here' }
};

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'
}


data = {
	'query': '''
		mutation AddToLiveMeeting($meetingLink: String!) {
			addToLiveMeeting(meeting_link: $meetingLink) {
				success
			}
		}
	''',
	'variables': {'meetingLink': 'https://meet.google.com/code-here'}
}

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 jsonRequest = "{\"query\": \"mutation AddToLiveMeeting($meetingLink: String!) { addToLiveMeeting(meeting_link: $meetingLink) { success } }\", \"variables\": {\"meetingLink\": \"https://meet.google.com/code-here\"}";
        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(jsonRequest))
            .build();

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

```json Response theme={null}
{
  "data": {
    "addToLiveMeeting": {
      "success": true,
    }
  }
}
```

## FAQ

> [accordion] Why am I getting a 'too\_many\_requests' error?
>
> The `addToLiveMeeting` mutation has a limit of 3 requests per 20 minutes per user. Business and Enterprise teams share a pool of 3 requests per paid seat per 20 minutes (up to 60), so another team member's calls count against the same pool; a single user can use at most half of it (rounded up, never less than 3).
>
> You may view API Rate limits [here](https://docs.fireflies.ai/fundamentals/limits.md).

## Error Codes

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

> [accordion] too\_many\_requests
>
> You have exceeded the rate limit for the `addToLiveMeeting` mutation: 3 requests per 20 minutes per user, or your team's pooled allowance on Business and Enterprise. Wait for the number of seconds in the `Retry-After` header before retrying; `extensions.metadata.retryAfter` in the error body gives the same moment as an epoch timestamp in milliseconds.

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

> [accordion] unsupported\_platform
>
> The meeting platform URL provided is not supported. Please use a supported meeting platform such as Zoom, Google Meet, Microsoft Teams, etc.

## Audit Trail

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

## Additional Resources

> [card] [Upload Audio](https://docs.fireflies.ai/graphql-api/mutation/upload-audio.md)
>
> Use the API to upload audio to Fireflies.ai

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


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