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

# Rule Executions by Meeting

> Query rule execution logs grouped by meeting for team automation workflows

## Overview

The `rule_executions_by_meeting` query retrieves rule execution logs grouped by meeting. This allows you to see which automation rules were triggered for each meeting and what actions were taken.

> [!NOTE]
>
> This query requires an **Enterprise** plan. See [pricing](https://fireflies.ai/pricing) for more
> details.

## Arguments

**limit** `Int` (default: 10)

Maximum number of meeting groups to return. Must be between 1 and 50.

**cursor** `String`

Pagination cursor for fetching the next page of results. Use the `next_cursor` value from a
previous response.

**logs\_per\_meeting** `Int` (default: 5)

Maximum number of execution logs to return per meeting. Must be between 1 and 20.

**filters** `RuleExecutionFiltersInput`

Optional filters to narrow down the results.

**Filter properties**

**rule\_id** `String`

Filter by a specific rule ID.

**meeting\_id** `String`

Filter by a specific meeting ID.

**date\_from** `String`

Filter executions from this date (ISO 8601 format).

**date\_to** `String`

Filter executions up to this date (ISO 8601 format).

**is\_test** `Boolean`

Filter by test evaluations. When `true`, returns only test logs. When `false`, returns only production logs. When not provided, returns all logs.

## Response Fields

**meetings** `[RuleExecutionMeetingGroup]`

List of meeting groups with their rule executions.

**Meeting group properties**

**meeting\_id** `String`

The unique identifier of the meeting.

**meeting** `RuleExecutionMeeting`

Meeting details including `id`, `title`, and `organizer_email`.

**resource\_attributes** `RuleExecutionResourceAttributes`

Additional meeting attributes like `host`, `attendees`, `user_group_ids`, and `host_user_group_ids`.

**executions** `[RuleExecution]`

List of rule executions for this meeting.

**Execution properties**

**extension\_id** `String`

The rule ID that was executed.

**extension\_title** `String`

The name of the rule that was executed.

**stopped\_at** `String`

Timestamp when the rule execution completed (ISO 8601 format).

**user\_name** `String`

Name of the meeting organizer.

**share** `RuleExecutionShare`

Share action details with `group_ids`.

**channel** `RuleExecutionChannel`

Channel routing action details with `channel_id`.

**meeting\_privacy** `RuleExecutionMeetingPrivacy`

Privacy update action details with `privacy`.

**has\_more** `Boolean`

Indicates if there are more results available.

**next\_cursor** `String`

Cursor to use for fetching the next page of results.

## Usage Example

```graphql theme={null}
query RuleExecutionsByMeeting($limit: Int, $filters: RuleExecutionFiltersInput) {
  rule_executions_by_meeting(limit: $limit, filters: $filters) {
    meetings {
      meeting_id
      meeting {
        id
        title
        organizer_email
      }
      executions {
        extension_id
        extension_title
        stopped_at
        user_name
        share {
          group_ids
        }
        channel {
          channel_id
        }
        meeting_privacy {
          privacy
        }
      }
    }
    has_more
    next_cursor
  }
}
```

```bash curl theme={null}
curl -X POST \
    -H "Content-Type: application/json" \
    -H "Authorization: Bearer your_api_key" \
    --data '{ "query": "query { rule_executions_by_meeting(limit: 5, filters: { is_test: false }) { meetings { meeting_id meeting { title } executions { extension_title stopped_at } } has_more next_cursor } }" }' \
    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 RuleExecutionsByMeeting($limit: Int, $filters: RuleExecutionFiltersInput) {
    rule_executions_by_meeting(limit: $limit, filters: $filters) {
      meetings {
        meeting_id
        meeting { title }
        executions { extension_title stopped_at }
      }
      has_more
      next_cursor
    }
  }`,
  variables: {
    limit: 5,
    filters: { is_test: false },
  },
};

axios
  .post(url, data, { headers: headers })
  .then((response) => {
    console.log(response.data);
  })
  .catch((error) => {
    console.error(error);
  });
```

```python python theme={null}
import requests

url = 'https://api.fireflies.ai/graphql'
headers = {
    'Content-Type': 'application/json',
    'Authorization': 'Bearer your_api_key'
}

query = '''
query RuleExecutionsByMeeting($limit: Int, $filters: RuleExecutionFiltersInput) {
  rule_executions_by_meeting(limit: $limit, filters: $filters) {
    meetings {
      meeting_id
      meeting { title }
      executions { extension_title stopped_at }
    }
    has_more
    next_cursor
  }
}
'''

data = {
    'query': query,
    'variables': {
        'limit': 5,
        'filters': { 'is_test': False }
    }
}

response = requests.post(url, headers=headers, json=data)
print(response.json())
```

```java java theme={null}
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;

public class ApiRequest {
    public static void main(String[] args) throws Exception {
        HttpClient client = HttpClient.newHttpClient();
        String json = "{\"query\":\"query { rule_executions_by_meeting(limit: 5, filters: { is_test: false }) { meetings { meeting_id meeting { title } executions { extension_title stopped_at } } has_more next_cursor } }\"}";
        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();
    }
}
```

```json Response theme={null}
{
  "data": {
    "rule_executions_by_meeting": {
      "meetings": [
        {
          "meeting_id": "01K8DV541XM97WMGRCX66TPSWG",
          "meeting": {
            "title": "Weekly Team Sync"
          },
          "executions": [
            {
              "extension_title": "Auto-share with Sales Team",
              "stopped_at": "2024-01-15T14:30:00.000Z"
            },
            {
              "extension_title": "Route to #meetings channel",
              "stopped_at": "2024-01-15T14:30:01.000Z"
            }
          ]
        }
      ],
      "has_more": true,
      "next_cursor": "1705329001000_01K8DV541XM97WMGRCX66TPSWG"
    }
  }
}
```

## Pagination

Use cursor-based pagination to fetch additional results:

```graphql theme={null}
query {
  rule_executions_by_meeting(limit: 10, cursor: "1705329001000_01K8DV541XM97WMGRCX66TPSWG") {
    meetings {
      meeting_id
    }
    has_more
    next_cursor
  }
}
```

## Error Codes

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

> [accordion] paid\_required (enterprise)
>
> You need to be on an Enterprise plan to query rule execution logs.

> [accordion] service\_unavailable
>
> The rules service is temporarily unavailable. Please try again later.

## Audit Trail

A successful call records a [`RULE_EXECUTIONS_VIEWED`](https://docs.fireflies.ai/graphql-api/query/audit-events) audit event for the team with the optional meeting ID and returned meeting count in metadata.

## Additional Resources

> [card] [Transcripts](https://docs.fireflies.ai/graphql-api/query/transcripts.md)
>
> Querying list of transcripts

> [card] [Analytics](https://docs.fireflies.ai/graphql-api/query/analytics.md)
>
> Querying meeting analytics


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