Skip to main content
POST
/
apps
/
rotate_token
JavaScript
import Morphik from 'morphik';

const client = new Morphik({
  apiKey: process.env['MORPHIK_API_KEY'], // This is the default and can be omitted
});

const response = await client.cloud.rotateAppToken();

console.log(response);
{}

Headers

authorization
string | null
X-Morphik-Admin-Secret
string | null

Query Parameters

app_id
string | null

Application ID to rotate

app_name
string | null

Application name to rotate

expiry_days
integer
default:5475

Number of days until the new token expires

Required range: x >= 1

Response

Successful Response

The response is of type Response Rotate App Token Apps Rotate Token Post · object.