---
title: "Stream Seek"
method: POST
path: "/api/v1.msgs.stream.seek"
tags: ["Msgs"]
---

# Stream Seek

`POST /api/v1.msgs.stream.seek`

Repositions a consumer group's read cursor on a topic.

Provide exactly one of `offset`, `position`, or `timestamp`. When using `offset`, the topic
must include a partition suffix (e.g. `ns:my-topic~0`). The `position` field accepts
`"earliest"` or `"latest"` and may be used with or without a partition suffix. The `timestamp`
field accepts a Unix timestamp in milliseconds and seeks to the first message at or after that
time.

## Request body

- MsgStreamSeekIn
  - `namespace` string, nullable
  - `topic` string, required
  - `consumer_group` string, required
  - `offset` integer, nullable
  - `position` 'earliest' | 'latest'
  - `timestamp` integer, nullable

## Response `200`

- MsgStreamSeekOut

## Other responses

- `400`
- `401`
- `403`
- `422`

---

[API](https://skmtc.net/svix/apis/diom-api.md) · [All operations](https://skmtc.net/svix/apis/diom-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/svix/diom-api/revisions/e98d7f3a3e10/schema)
