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
		}
	}'
{
  "data": {
    "createBite": {
      "name": "bite-name",
      "status": "pending",
    }
  }
}

Overview

The createBite mutation allows you to create a bite through the API.

Arguments

transcript_id
ID
required

ID of the transcript

name
String

Name of the bite

start_time
Float
required

Start time of the bite in seconds

end_time
Float
required

End time of the bite in seconds

media_type
String

Type of the bite, either ‘video’ or ‘audio’

privacies
[String]

Array specifying the visibility of the Soundbite. Possible values are ‘public’, ‘team’, and ‘participants’. For example, [“team”, “participants”] indicates visibility to both team members and participants, while [“public”] denotes full public access.

summary
String

Summary for the bite

Usage Example

To create a bite, provide the necessary input parameters to the mutation. Here’s an example of how this mutation could be used:

mutation Mutation($transcriptId: ID!, $startTime: Float!, $endTime: Float!) {
  createBite(transcript_id: $transcriptId, start_time: $startTime, end_time: $endTime) {
    status
    name
    id
  }
}

Additional Resources