### API Integration Examples Source: https://docs.fireflies.ai/graphql-api/mutation/create-askfred-thread Examples showing how to execute the mutation using cURL and Axios. ```bash curl -X POST \ -H "Content-Type: application/json" \ -H "Authorization: Bearer your_api_key" \ -d '{ "query": "mutation CreateThread($input: CreateAskFredThreadInput!) { createAskFredThread(input: $input) { message { id thread_id query answer suggested_queries status } } }", "variables": { "input": { "query": "What were the main decisions made in the product planning meeting?", "transcript_id": "transcript_xyz789", "response_language": "en", "format_mode": "markdown" } } }' \ https://api.fireflies.ai/graphql ``` ```javascript const axios = require('axios'); const url = 'https://api.fireflies.ai/graphql'; const headers = { 'Content-Type': 'application/json', Authorization: 'Bearer your_api_key' }; // Example 1: Query a specific meeting const inputForSpecificMeeting = { query: "What were the action items discussed?", transcript_id: "transcript_xyz789", response_language: "en", format_mode: "markdown" }; // Example 2: Query across meetings with filters const inputWithFilters = { query: "What customer concerns were raised this week?", filters: { start_time: "2024-03-10T00:00:00Z", end_time: "2024-03-17T00:00:00Z", participants: ["customer@example.com"] }, response_language: "en", format_mode: "markdown" }; const data = { query: ` mutation CreateAskFredThread($input: CreateAskFredThreadInput!) { createAskFredThread(input: $input) { message { id thread_id query answer suggested_queries status created_at } } } `, variables: { input: inputForSpecificMeeting } }; axios .post(url, data, { headers: headers }) .then(result => { console.log(result.data); }) .catch(e => { console.error(e); }); ``` -------------------------------- ### Request Examples for UpdateMeetingChannel Source: https://docs.fireflies.ai/llms-full.txt Implementation examples for the updateMeetingChannel mutation across various programming languages. ```bash curl -X POST https://api.fireflies.ai/graphql \ -H "Content-Type: application/json" \ -H "Authorization: Bearer your_api_key" \ -d '{ "query": "mutation($input: UpdateMeetingChannelInput!) { updateMeetingChannel(input: $input) { id title channels { id } } }", "variables": { "input": { "transcript_ids": ["transcript_id_1", "transcript_id_2"], "channel_id": "channel_id" } } }' ``` ```javascript 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($input: UpdateMeetingChannelInput!) { updateMeetingChannel(input: $input) { id title channels { id } } } `, variables: { input: { transcript_ids: ['transcript_id_1', 'transcript_id_2'], channel_id: 'channel_id' } } }; const response = await axios.post(url, data, { headers }); console.log(response.data); ``` ```python import requests url = 'https://api.fireflies.ai/graphql' headers = { 'Content-Type': 'application/json', 'Authorization': 'Bearer your_api_key' } data = { 'query': ` mutation($input: UpdateMeetingChannelInput!) { updateMeetingChannel(input: $input) { id title channels { id } } } `, 'variables': { 'input': { 'transcript_ids': ['transcript_id_1', 'transcript_id_2'], 'channel_id': 'channel_id' } } } response = requests.post(url, json=data, headers=headers) print(response.json()) ``` ```java 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 UpdateMeetingChannelExample { public static void main(String[] args) throws IOException, InterruptedException { HttpClient client = HttpClient.newHttpClient(); String json = "{" + "\"query\":\"mutation($input: UpdateMeetingChannelInput!) { updateMeetingChannel(input: $input) { id title channels { id } } }\"," + "\"variables\":{" + "\"input\":{" + "\"transcript_ids\":[\"transcript_id_1\",\"transcript_id_2\"]," + "\"channel_id\":\"channel_id\"" + "}" + "}" + "}"; 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(); } } ``` -------------------------------- ### API Request Examples Source: https://docs.fireflies.ai/graphql-api/mutation/set-user-role Examples of executing the mutation using curl, JavaScript, and Python. ```bash curl -X POST https://api.fireflies.ai/graphql \ -H "Content-Type: application/json" \ -H "Authorization: Bearer your_api_key" \ -d '{ "query": "mutation($user_id: String!, $role: Role!) { setUserRole(user_id: $user_id, role:$role) { name is_admin } }", "variables": { "user_id": "your_user_id", "role": "admin" } }' ``` ```javascript 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 Mutation($userId: String!, $role: Role!) { setUserRole(user_id: $userId, role: $role) { name is_admin } }`, variables: { userId: 'your_user_id', role: 'admin' } }; axios .post(url, data, { headers: headers }) .then(result => { console.log(result.data); }) .catch(e => { console.log(JSON.stringify(e)); }); ``` ```python import requests url = 'https://api.fireflies.ai/graphql' headers = { 'Content-Type': 'application/json', 'Authorization': 'Bearer your_api_key' } data = { 'query': ''' mutation($user_id: String!, $role: Role!) { setUserRole(user_id: $user_id, role:$role) { name is_admin } } ''', 'variables': { 'user_id': "your_user_id", 'role': "admin" } } response = requests.post(url, headers=headers, json=data) if response.status_code == 200: print(response.json()['data']) else: print(response.text) ``` -------------------------------- ### No Authentication Example Source: https://docs.fireflies.ai/schema/enum/download-auth-type Example of a mutation using the default authentication configuration. ```graphql mutation { uploadAudio( ``` -------------------------------- ### API Integration Examples Source: https://docs.fireflies.ai/llms-full.txt Examples showing how to execute the addToLiveMeeting mutation using various programming languages and tools. ```bash 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 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 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 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(); } } ``` -------------------------------- ### Retrieve Soundbites Configuration Example Source: https://docs.fireflies.ai/mcp-tools/overview Example JSON configuration for filtering and limiting soundbites. ```json { "mine": true, "limit": 10 } ``` -------------------------------- ### API Integration Examples Source: https://docs.fireflies.ai/llms-full.txt Examples for invoking the createLiveActionItem mutation using various programming languages and tools. ```bash curl -X POST https://api.fireflies.ai/graphql \ -H "Content-Type: application/json" \ -H "Authorization: Bearer your_api_key" \ -d '{ "query": "mutation CreateLiveActionItem($input: CreateLiveActionItemInput!) { createLiveActionItem(input: $input) { success } }", "variables": { "input": { "meeting_id": "your_meeting_id", "prompt": "Follow up with the client about the proposal" } } }' ``` ```javascript 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 CreateLiveActionItem($input: CreateLiveActionItemInput!) { createLiveActionItem(input: $input) { success } }`, variables: { input: { meeting_id: 'your_meeting_id', prompt: 'Follow up with the client about the proposal' } } }; axios .post(url, data, { headers: headers }) .then(result => { console.log(result.data); }) .catch(e => { console.log(JSON.stringify(e)); }); ``` ```python import requests url = 'https://api.fireflies.ai/graphql' headers = { 'Content-Type': 'application/json', 'Authorization': 'Bearer your_api_key' } data = { 'query': ''' mutation CreateLiveActionItem($input: CreateLiveActionItemInput!) { createLiveActionItem(input: $input) { success } } ''', 'variables': { 'input': { 'meeting_id': 'your_meeting_id', 'prompt': 'Follow up with the client about the proposal' } } } response = requests.post(url, headers=headers, json=data) if response.status_code == 200: print(response.json()['data']) else: print(response.text) ``` ```java 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; public class ApiRequest { public static void main(String[] args) { HttpClient client = HttpClient.newHttpClient(); String jsonRequest = "{\"query\": \"mutation CreateLiveActionItem($input: CreateLiveActionItemInput!) { createLiveActionItem(input: $input) { success } }\", \"variables\": {\"input\": {\"meeting_id\": \"your_meeting_id\", \"prompt\": \"Follow up with the client about the proposal\"}}}"; 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(); } } ``` -------------------------------- ### Create Live Soundbite Implementation Examples Source: https://docs.fireflies.ai/llms-full.txt Examples showing how to execute the CreateLiveSoundbite mutation using various programming languages and tools. ```bash curl -X POST https://api.fireflies.ai/graphql \ -H "Content-Type: application/json" \ -H "Authorization: Bearer your_api_key" \ -d '{ "query": "mutation CreateLiveSoundbite($input: CreateLiveSoundbiteInput!) { createLiveSoundbite(input: $input) { success } }", "variables": { "input": { "meeting_id": "your_meeting_id", "prompt": "Create a soundbite from the last 2 minutes" } } }' ``` ```javascript 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 CreateLiveSoundbite($input: CreateLiveSoundbiteInput!) { createLiveSoundbite(input: $input) { success } }`, variables: { input: { meeting_id: 'your_meeting_id', prompt: 'Create a soundbite from the last 2 minutes' } } }; axios .post(url, data, { headers: headers }) .then(result => { console.log(result.data); }) .catch(e => { console.log(JSON.stringify(e)); }); ``` ```python import requests url = 'https://api.fireflies.ai/graphql' headers = { 'Content-Type': 'application/json', 'Authorization': 'Bearer your_api_key' } data = { 'query': ''' mutation CreateLiveSoundbite($input: CreateLiveSoundbiteInput!) { createLiveSoundbite(input: $input) { success } } ''', 'variables': { 'input': { 'meeting_id': 'your_meeting_id', 'prompt': 'Create a soundbite from the last 2 minutes' } } } response = requests.post(url, headers=headers, json=data) if response.status_code == 200: print(response.json()['data']) else: print(response.text) ``` ```java 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; public class ApiRequest { public static void main(String[] args) { HttpClient client = HttpClient.newHttpClient(); String jsonRequest = "{\"query\": \"mutation CreateLiveSoundbite($input: CreateLiveSoundbiteInput!) { createLiveSoundbite(input: $input) { success } }\", \"variables\": {\"input\": {\"meeting_id\": \"your_meeting_id\", \"prompt\": \"Create a soundbite from the last 2 minutes\"}}}"; 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(); } } ``` -------------------------------- ### Bite Query Implementation Examples Source: https://docs.fireflies.ai/llms-full.txt Examples showing how to execute the bite query using various programming languages and tools. ```bash curl -X POST \ -H "Content-Type: application/json" \ -H "Authorization: Bearer your_api_key" \ --data '{ "query": "query Bite($biteId: ID!) { bite(id: $biteId) { user_id name status summary } }", "variables": { "biteId": "your_bite_id" } }' \ https://api.fireflies.ai/graphql ``` ```javascript 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: 'query Bite($biteId: ID!) { bite(id: $biteId) { user_id name status summary } }', variables: { biteId: 'your_bite_id' } }; axios .post(url, data, { headers: headers }) .then(response => { console.log(response.data); }) .catch(error => { console.error('Error:', error); }); ``` ```python import requests url = 'https://api.fireflies.ai/graphql' headers = { 'Content-Type': 'application/json', 'Authorization': 'Bearer your_api_key' } data = '{"query": "query Bite($biteId: ID!) { bite(id: $biteId) { user_id name status summary } }", "variables": {"biteId": "your_bite_id"}}' response = requests.post(url, headers=headers, data=data) print(response.json()) ``` ```java 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; public class ApiRequest { public static void main(String[] args) { HttpClient client = HttpClient.newHttpClient(); String jsonRequest = "{\"query\": \"query Bite($biteId: ID!) { bite(id: $biteId) { user_id name status summary } }\", \"variables\": {\"biteId\": \"your_bite_id\"}}"; 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(); } } ``` -------------------------------- ### API Request Examples Source: https://docs.fireflies.ai/graphql-api/query/channels Examples of how to execute the channels query using various programming languages and tools. ```curl curl -X POST \ -H "Content-Type: application/json" \ -H "Authorization: Bearer your_api_key" \ --data '{ "query": "query Channels { channels { id title is_private members { user_id email } } }" }' \ https://api.fireflies.ai/graphql ``` ```javascript 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: 'query Channels { channels { id title is_private members { user_id email } } }' }; axios .post(url, data, { headers: headers }) .then(response => { console.log(response.data); }) .catch(error => { console.error(error); }); ``` ```python import requests url = 'https://api.fireflies.ai/graphql' headers = { 'Content-Type': 'application/json', 'Authorization': 'Bearer your_api_key' } data = '{"query": "query Channels { channels { id title is_private members { user_id email } } }"}' response = requests.post(url, headers=headers, data=data) print(response.json()) ``` ```java import java.net.URI; import java.net.http.HttpClient; import java.net.http.HttpRequest; import java.net.http.HttpResponse; import java.net.http.HttpResponse.BodyHandlers; public class ApiRequest { public static void main(String[] args) throws Exception { HttpClient client = HttpClient.newHttpClient(); String json = "{\"query\":\"query Channels { channels { id title is_private members { user_id email } } }\"}"; HttpRequest request = HttpRequest.newBuilder() .uri(URI.create("https://api.fireflies.ai/graphql")) .header("Content-Type", "application/json") .header("Authorization", "Bearer your_api_key") .POST(HttpRequest.BodyPublishers.ofString(json)) .build(); client.sendAsync(request, HttpResponse.BodyHandlers.ofString()) .thenApply(HttpResponse::body) .thenAccept(System.out::println) .join(); } } ``` -------------------------------- ### Bites Query Implementation Examples Source: https://docs.fireflies.ai/llms-full.txt Examples showing how to execute the bites query using various programming languages and tools. ```bash curl -X POST \ -H "Content-Type: application/json" \ -H "Authorization: Bearer your_api_key" \ --data '{ "query": "query Bites($mine: Boolean) { bites(mine: $mine) { user_id name end_time } }", "variables": { "mine": true } }' \ https://api.fireflies.ai/graphql ``` ```javascript 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: 'query Bites($mine: Boolean) { bites(mine: $mine) { user_id name end_time } }', variables: { mine: true } }; axios .post(url, data, { headers: headers }) .then(response => { console.log(response.data); }) .catch(error => { console.error('Error:', error); }); ``` ```python import requests url = 'https://api.fireflies.ai/graphql' headers = { 'Content-Type': 'application/json', 'Authorization': 'Bearer your_api_key' } data = '{"query": "query Bites($mine: Boolean) { bites(mine: $mine) { user_id name end_time } }", "variables": {"mine": true }}' response = requests.post(url, headers=headers, data=data) print(response.json()) ``` ```java 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; public class ApiRequest { public static void main(String[] args) { HttpClient client = HttpClient.newHttpClient(); String jsonRequest = "{\"query\": \"query Bites($mine: Boolean) { bites(mine: $mine) { user_id name end_time } }\", \"variables\": {\"mine\": true}}"; 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(); } } ``` -------------------------------- ### Get Rule Executions Example Source: https://docs.fireflies.ai/mcp-tools/overview Example of a request to retrieve rule execution logs. ```json { ``` -------------------------------- ### Upload Audio Implementation Examples Source: https://docs.fireflies.ai/graphql-api/mutation/upload-audio Examples demonstrating how to execute the uploadAudio mutation using different programming languages and HTTP clients. ```curl 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 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 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) ``` -------------------------------- ### API Request Examples Source: https://docs.fireflies.ai/graphql-api/query/askfred-threads Examples of how to execute the askfred_threads query using curl, JavaScript, and Python. ```bash curl -X POST \ -H "Content-Type: application/json" \ -H "Authorization: Bearer your_api_key" \ -d '{ "query": "query { askfred_threads { id title transcript_id user_id created_at } }" }' \ https://api.fireflies.ai/graphql ``` ```javascript 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: ` query GetAskFredThreads { askfred_threads { id title transcript_id user_id created_at } } ` }; axios .post(url, data, { headers: headers }) .then(result => { console.log(result.data); }) .catch(e => { console.error(e); }); ``` ```python import requests url = 'https://api.fireflies.ai/graphql' headers = { 'Content-Type': 'application/json', 'Authorization': 'Bearer your_api_key' } query = ''' query GetAskFredThreads { askfred_threads { id title transcript_id user_id created_at } } ''' data = { 'query': query } response = requests.post(url, headers=headers, json=data) if response.status_code == 200: print(response.json()) else: print(response.text) ``` -------------------------------- ### Configure DownloadAuthInput Source: https://docs.fireflies.ai/llms-full.txt Examples for setting up authentication methods for media downloads. ```graphql { type: bearer_token bearer: { token: "your-bearer-token-here" } } ``` ```graphql { type: basic_auth basic: { username: "your-username" password: "your-password" } } ``` ```graphql { type: none } ``` -------------------------------- ### API Request Examples Source: https://docs.fireflies.ai/llms-full.txt Examples of how to execute the active_meetings query using various programming languages and tools. ```bash curl -X POST \ -H "Content-Type: application/json" \ -H "Authorization: Bearer your_api_key" \ --data '{ "query": "query ActiveMeetings { active_meetings { id title organizer_email meeting_link start_time } }" }' \ https://api.fireflies.ai/graphql ``` ```javascript 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: 'query ActiveMeetings { active_meetings { id title organizer_email meeting_link start_time } }' }; axios .post(url, data, { headers: headers }) .then(response => { console.log(response.data); }) .catch(error => { console.error(error); }); ``` ```python import requests url = 'https://api.fireflies.ai/graphql' headers = { 'Content-Type': 'application/json', 'Authorization': 'Bearer your_api_key' } data = '{"query": "query ActiveMeetings { active_meetings { id title organizer_email meeting_link start_time } }"}' response = requests.post(url, headers=headers, data=data) print(response.json()) ``` ```java import java.net.URI; import java.net.http.HttpClient; import java.net.http.HttpRequest; import java.net.http.HttpResponse; import java.net.http.HttpResponse.BodyHandlers; public class ApiRequest { public static void main(String[] args) throws Exception { HttpClient client = HttpClient.newHttpClient(); String json = "{\"query\":\"query ActiveMeetings { active_meetings { id title organizer_email meeting_link start_time } } \"}"; HttpRequest request = HttpRequest.newBuilder() .uri(URI.create("https://api.fireflies.ai/graphql")) .header("Content-Type", "application/json") .header("Authorization", "Bearer your_api_key") .POST(HttpRequest.BodyPublishers.ofString(json)) .build(); client.sendAsync(request, HttpResponse.BodyHandlers.ofString()) .thenApply(HttpResponse::body) .thenAccept(System.out::println) .join(); } } ``` -------------------------------- ### API Request Examples for User Groups Source: https://docs.fireflies.ai/llms-full.txt Implementation examples for querying user groups using various programming languages and tools. ```bash curl -X POST \ -H "Content-Type: application/json" \ -H "Authorization: Bearer your_api_key" \ --data '{ "query": "{ user_groups { name handle members { first_name last_name email } } }" }' \ https://api.fireflies.ai/graphql ``` ```javascript 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: '{ user_groups { name handle members { first_name last_name email } } }' }; axios .post(url, data, { headers: headers }) .then(response => { console.log(response.data); }) .catch(error => { console.error('Error:', error); }); ``` ```python import requests url = 'https://api.fireflies.ai/graphql' headers = { 'Content-Type': 'application/json', 'Authorization': 'Bearer your_api_key' } data = '{"query": "{ user_groups { name handle members { first_name last_name email } } }"}' response = requests.post(url, headers=headers, data=data) print(response.json()) ``` ```java 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; public class ApiRequest { public static void main(String[] args) { HttpClient client = HttpClient.newHttpClient(); String jsonRequest = "{\"query\": \"{ user_groups { name handle members { first_name last_name email } } }\"}"; 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(); } } ``` -------------------------------- ### Create Bite Mutation Examples Source: https://docs.fireflies.ai/graphql-api/mutation/create-bite Examples showing how to execute the createBite mutation using various programming languages and tools. ```bash curl -X POST https://api.fireflies.ai/graphql \ -H "Content-Type: application/json" \ -H "Authorization: Bearer your_api_key" \ -d '{ "query": "mutation CreateBite($transcriptId: ID!, $startTime: Float!, $endTime: Float!) { createBite(transcript_id: $transcriptId, start_time: $startTime, end_time: $endTime) { summary status id } }", "variables": { "transcriptId": "your_transcript_id", "startTime": 0, "endTime": 5 } }' ``` ```javascript 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 CreateBite($transcriptId: ID!, $startTime: Float!, $endTime: Float!) { createBite(transcript_id: $transcriptId, start_time: $startTime, end_time: $endTime) { summary status id } }`, variables: { transcriptId: 'your_transcript_id', startTime: 0, endTime: 5 } }; axios .post(url, data, { headers: headers }) .then(result => { console.log(result.data); }) .catch(e => { console.log(JSON.stringify(e)); }); ``` ```python import requests url = 'https://api.fireflies.ai/graphql' headers = { 'Content-Type': 'application/json', 'Authorization': 'Bearer your_api_key' } data = { 'query': ''' mutation CreateBite($transcriptId: ID!, $startTime: Float!, $endTime: Float!) { createBite(transcript_id: $transcriptId, start_time: $startTime, end_time: $endTime) { summary status id } } ''', 'variables': { 'transcriptId': "your_transcript_id", 'startTime': 0, 'endTime': 5 } } response = requests.post(url, headers=headers, json=data) if response.status_code == 200: print(response.json()['data']) else: print(response.text) ``` -------------------------------- ### ContinueAskFredThread Implementation Examples Source: https://docs.fireflies.ai/llms-full.txt Examples showing how to execute the ContinueAskFredThread mutation using different programming languages and tools. ```bash curl -X POST \ -H "Content-Type: application/json" \ -H "Authorization: Bearer your_api_key" \ -d '{ "query": "mutation ContinueThread($input: ContinueAskFredThreadInput!) { continueAskFredThread(input: $input) { message { id thread_id query answer suggested_queries status } } }", "variables": { "input": { "thread_id": "thread_abc123", "query": "Can you provide more details about the budget allocation?", "response_language": "en", "format_mode": "markdown" } } }' \ https://api.fireflies.ai/graphql ``` ```javascript const axios = require('axios'); const url = 'https://api.fireflies.ai/graphql'; const headers = { 'Content-Type': 'application/json', Authorization: 'Bearer your_api_key' }; const input = { thread_id: "thread_abc123", query: "Can you provide more details about the budget allocation?", response_language: "en", format_mode: "markdown" }; const data = { query: ` mutation ContinueAskFredThread($input: ContinueAskFredThreadInput!) { continueAskFredThread(input: $input) { message { id thread_id query answer suggested_queries status created_at } } } `, variables: { input } }; axios .post(url, data, { headers: headers }) .then(result => { console.log(result.data); }) .catch(e => { console.error(e); }); ``` ```python import requests url = 'https://api.fireflies.ai/graphql' headers = { 'Content-Type': 'application/json', 'Authorization': 'Bearer your_api_key' } input_data = { "thread_id": "thread_abc123", "query": "Can you provide more details about the budget allocation?", "response_language": "en", "format_mode": "markdown" } query = ''' mutation ContinueAskFredThread($input: ContinueAskFredThreadInput!) { continueAskFredThread(input: $input) { message { id thread_id query answer suggested_queries status created_at } } } ''' data = { 'query': query, 'variables': {'input': input_data} } response = requests.post(url, headers=headers, json=data) if response.status_code == 200: print(response.json()) else: print(response.text) ``` -------------------------------- ### AskFred Thread Query Examples Source: https://docs.fireflies.ai/graphql-api/mutation/create-askfred-thread Examples showing how to structure input objects for querying specific transcripts or applying filters for cross-meeting analysis. ```graphql transcript_id: "transcript_xyz789", response_language: "en", format_mode: "markdown" }; // Example 2: Query across meetings with filters const inputWithFilters = { query: "What customer concerns were raised this week?", filters: { start_time: "2024-03-10T00:00:00Z", end_time: "2024-03-17T00:00:00Z", participants: [" ``` -------------------------------- ### Upload Audio Response Example Source: https://docs.fireflies.ai/graphql-api/mutation/upload-audio Example of a successful JSON response returned by the uploadAudio mutation. ```json { "data": { "uploadAudio": { "success": true, "title": "title of the file", "message": "Uploaded audio has been queued for processing." } } } ``` -------------------------------- ### GraphQL Channel Query Example Source: https://docs.fireflies.ai/graphql-api/query/channel Example usage of the channel query to fetch channel details. ```graphql query { channel(id: "CHANNEL_ID") { id name # Add other fields as needed } } ``` -------------------------------- ### Example Request with Authorization Header Source: https://docs.fireflies.ai/fundamentals/authorization Examples of how to include the Authorization header in cURL and Axios requests. ```text curl \ -X POST \ -H "Content-Type: application/json" \ -H "Authorization: Bearer your_api_key" \ --data '{ "query": "{ user { name integrations } }" }' \ https://api.fireflies.ai/graphql ``` ```javascript const axios = require('axios'); const url = 'https://api.fireflies.ai/graphql'; ``` -------------------------------- ### AskFred API Integration Examples Source: https://docs.fireflies.ai/llms-full.txt Examples of how to interact with the AskFred GraphQL API using cURL, JavaScript, and Python. ```bash curl -X POST \ -H "Content-Type: application/json" \ -H "Authorization: Bearer your_api_key" \ -d '{ "query": "mutation CreateThread($input: CreateAskFredThreadInput!) { createAskFredThread(input: $input) { message { id thread_id query answer suggested_queries status } } }", "variables": { "input": { "query": "What were the main decisions made in the product planning meeting?", "transcript_id": "transcript_xyz789", "response_language": "en", "format_mode": "markdown" } } }' \ https://api.fireflies.ai/graphql ``` ```javascript const axios = require('axios'); const url = 'https://api.fireflies.ai/graphql'; const headers = { 'Content-Type': 'application/json', Authorization: 'Bearer your_api_key' }; // Example 1: Query a specific meeting const inputForSpecificMeeting = { query: "What were the action items discussed?", transcript_id: "transcript_xyz789", response_language: "en", format_mode: "markdown" }; // Example 2: Query across meetings with filters const inputWithFilters = { query: "What customer concerns were raised this week?", filters: { start_time: "2024-03-10T00:00:00Z", end_time: "2024-03-17T00:00:00Z", participants: ["customer@example.com"] }, response_language: "en", format_mode: "markdown" }; const data = { query: ` mutation CreateAskFredThread($input: CreateAskFredThreadInput!) { createAskFredThread(input: $input) { message { id thread_id query answer suggested_queries status created_at } } } `, variables: { input: inputForSpecificMeeting } }; axios .post(url, data, { headers: headers }) .then(result => { console.log(result.data); }) .catch(e => { console.error(e); }); ``` ```python import requests url = 'https://api.fireflies.ai/graphql' headers = { 'Content-Type': 'application/json', 'Authorization': 'Bearer your_api_key' } # Example 1: Query a specific meeting input_specific = { "query": "What were the action items discussed?", "transcript_id": "transcript_xyz789", "response_language": "en", "format_mode": "markdown" } # Example 2: Query across meetings with filters input_filtered = { "query": "What customer concerns were raised this week?", "filters": { "start_time": "2024-03-10T00:00:00Z", "end_time": "2024-03-17T00:00:00Z", "participants": ["customer@example.com"] }, "response_language": "en", "format_mode": "markdown" } query = ''' mutation CreateAskFredThread($input: CreateAskFredThreadInput!) { createAskFredThread(input: $input) { message { id thread_id query answer suggested_queries status created_at } } } ''' data = { 'query': query, 'variables': {'input': input_specific} } response = requests.post(url, headers=headers, json=data) if response.status_code == 200: print(response.json()) else: print(response.text) ``` -------------------------------- ### Webhook Configuration Example Source: https://docs.fireflies.ai/graphql-api/webhooks A basic structure for defining a webhook URL and title. ```json "title": "title of the file", "webhook": "https://url_for_the_webhook" } } }' " https://api.fireflies.ai/graphql" ``` -------------------------------- ### Basic Authentication Header Example Source: https://docs.fireflies.ai/schema/input/basic-auth-input Example of the Authorization header generated when using 'user' as the username and 'pass' as the password. ```http Authorization: Basic dXNlcjpwYXNz ```