---
title: "Rotate the calendar feed token"
method: POST
path: "/v1/inboxes/{inbox_id}/calendar/feed/rotate"
tags: ["Calendar"]
---

# Rotate the calendar feed token

`POST /v1/inboxes/{inbox_id}/calendar/feed/rotate`

## Request

- Base URL: `https://api.deadsimple.email`
- URL: `https://api.deadsimple.email/v1/inboxes/{inbox_id}/calendar/feed/rotate`
- Auth: HTTP bearer

Issues a new feed token and invalidates the old URL immediately. Anyone subscribed to the old URL stops receiving updates. SDK: `calendar.rotate_feed` / `calendar.rotateFeed`.

## Path parameters

- `inbox_id` string, required

## Response `201`

New feed URLs.

- CalendarFeed
  - `inbox_id` string
  - `email` string
  - `feed_url` string: https URL of the .ics feed, token included. Paste into Google Calendar ("From URL"), Apple Calendar or Outlook.
  - `webcal_url` string: The same feed as a webcal:// link, which most calendar apps open as a subscription.
  - `token_created_at` string
  - `rotated` boolean: True when this call issued a new token (the first request, or a rotate).

---

[API](https://skmtc.dev/deadsimple/apis/dead-simple-email-api.md) · [All operations](https://skmtc.dev/deadsimple/apis/dead-simple-email-api/llms.txt) · [OpenAPI document](https://skmtc.dev/deadsimple/apis/dead-simple-email-api/revisions/c697881be131?raw)
