---
title: "Rotate App Token"
method: POST
path: "/apps/rotate_token"
---

# Rotate App Token

`POST /apps/rotate_token`

## Request

- Base URL: `https://api.morphik.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.morphik.ai/apps/rotate_token`
- Auth: none declared

Rotate the token for an existing application.

## Query parameters

- `app_id` string, nullable: Application ID to rotate
- `app_name` string, nullable: Application name to rotate
- `expiry_days` integer: Number of days until the new token expires

## Headers

- `authorization` string, nullable
- `X-Morphik-Admin-Secret` string, nullable

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

## Changes

- **2026-01-22** `2d9291c3821d`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/morphik-org/apis/morphik-api/changes/apps/rotate_token/post.md)

---

[API](https://skmtc.dev/morphik-org/apis/morphik-api.md) - [All operations](https://skmtc.dev/morphik-org/apis/morphik-api/llms.txt) - [OpenAPI document](https://skmtc.dev/morphik-org/apis/morphik-api/revisions/45d77e08d406?raw)
