Overview
The askfred_threads query retrieves a summary of all AskFred conversation threads belonging to the authenticated user. This query provides a lightweight overview of threads without including the full message history, making it ideal for listing and browsing conversations.
Arguments
Filter threads to only those associated with a specific transcript ID
Schema
Fields available to the AskFredThreadSummary query:
id: Unique identifier for the thread
title: Thread title (typically derived from the first question)
transcript_id: Associated transcript/meeting ID (if applicable)
user_id: ID of the user who created the thread
created_at: Timestamp when the thread was created
Usage Example
query GetAskFredThreads {
askfred_threads {
id
title
transcript_id
user_id
created_at
}
}
With Filter
query GetFilteredThreads ( $transcriptId : String ) {
askfred_threads ( transcript_id : $transcriptId ) {
id
title
transcript_id
user_id
created_at
}
}
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
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 );
});
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)
{
"data" : {
"askfred_threads" : [
{
"id" : "thread_abc123" ,
"title" : "What were the action items from the Q4 planning meeting?" ,
"transcript_id" : "transcript_xyz789" ,
"user_id" : "user_123" ,
"created_at" : "2024-03-15T10:30:00Z"
},
{
"id" : "thread_def456" ,
"title" : "Summary of customer feedback discussions" ,
"transcript_id" : null ,
"user_id" : "user_123" ,
"created_at" : "2024-03-14T14:20:00Z"
}
]
}
}
Get Thread Details Retrieve complete thread with message history
Create Thread Start a new AskFred conversation