---
title: "Rotate Ingest Token"
method: POST
path: "/ingest/api/v1/source/{source_id}/token/rotate"
tags: ["Ingest Source"]
---

# Rotate Ingest Token

`POST /ingest/api/v1/source/{source_id}/token/rotate`

Rotate the Ingest Source's Url Token.

This will rotate the ingest source's token, which is used to
construct the unique `ingestUrl` for the source. Previous tokens
will remain valid for 48 hours after rotation. The token can be
rotated a maximum of three times within the 48-hour period.

## Path parameters

- `source_id` string, required — The Source's ID or UID.

## Headers

- `idempotency-key` string

## Response `200`

- RotateTokenOut
  - `ingestUrl` string, required

## Other responses

- `400` — Bad request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `409` — Conflict
- `422` — Validation Error
- `429` — Too Many Requests

---

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