---
search:
  exclude: true
---

# <a id="bitdrift.public.unary.workflows.v1.FetchCapturedSessionsRequest"></a>FetchCapturedSessionsRequest

**Source definition:** [`src/bitdrift/public/unary/workflows/v1/api.proto#L65-L82`](<https://github.com/bitdriftlabs/api/blob/main/src/bitdrift/public/unary/workflows/v1/api.proto#L65-L82>)

<section class="proto-fields-table" markdown>
| Field | Type | Description |
|---|---|---|
| action_id | <span class="proto-type proto-type-primitive">string</span><br><em class="proto-field-annotation">up to 100 chars</em> | The action ID whose captured sessions should be returned. If empty, returns  captured sessions across all actions. |
| time_range | <span class="proto-type proto-type-message">[<i class="proto-type-part">bitdrift</i><i class="proto-type-dot">.</i><i class="proto-type-part">public</i><i class="proto-type-dot">.</i><i class="proto-type-part">unary</i><i class="proto-type-dot">.</i><i class="proto-type-part">common</i><i class="proto-type-dot">.</i><i class="proto-type-part">v1</i><i class="proto-type-dot">.</i><i class="proto-type-part">TimeRange</i>](bitdrift_public_unary_common_v1_TimeRange.md "bitdrift.public.unary.common.v1.TimeRange")</span> | The start time and end time of the captured sessions. |
| page | <span class="proto-type proto-type-primitive">optional uint64</span> | The page number and the number of items per page. The server will use this  to paginate the results. Defaults to 1 when not set. |
| per_page | <span class="proto-type proto-type-primitive">optional uint64</span><br><em class="proto-field-annotation">between 1 and 100</em> | The number of items to return per page. Defaults to 100 when not set. |

</section>
#### Example
```json
{
  "action_id": "fkQ1PfAZhdYvJexzY6DYuoYCZTEaWO0Y7spxwjr7akc",
  "page": 1,
  "per_page": 25,
  "time_range": {
    "relative_time_range": {
      "duration": "3600s",
      "offset": "3600s"
    }
  }
}
```

