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

# AskFred Threads

> Get a summary of all AskFred conversation threads for the current user

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

**transcript\_id** `String`

Filter threads to only those associated with a specific transcript ID

## Schema

Fields available to the [AskFredThreadSummary](https://docs.fireflies.ai/schema/askfred-thread-summary.md) 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

```graphql theme={null}
query GetAskFredThreads {
  askfred_threads {
    id
    title
    transcript_id
    user_id
    created_at
  }
}
```

### With Filter

```graphql theme={null}
query GetFilteredThreads($transcriptId: String) {
  askfred_threads(transcript_id: $transcriptId) {
    id
    title
    transcript_id
    user_id
    created_at
  }
}
```

```bash curl theme={null}
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 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: `
    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 python theme={null}
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)
```

```json Response theme={null}
{
  "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"
      }
    ]
  }
}
```

## Audit Trail

A successful call records an [`ASKFRED_THREADS_LISTED`](https://docs.fireflies.ai/graphql-api/query/audit-events) audit event with the optional meeting ID and number of returned threads in metadata.

## Related

> [card] [Get Thread Details](https://docs.fireflies.ai/graphql-api/query/askfred-thread.md)
>
> Retrieve complete thread with message history

> [card] [Create Thread](https://docs.fireflies.ai/graphql-api/mutation/create-askfred-thread.md)
>
> Start a new AskFred conversation


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