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

# Rotate App Token

`POST /apps/rotate_token`

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

---

[API](https://skmtc.net/morphik-org/apis/fastapi.md) · [All operations](https://skmtc.net/morphik-org/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/morphik-org/fastapi/versions/2d9291c3821d/schema)
