Rotate Installation Credential
POST
https://api.vercel.com/v1/installations/{integrationConfigurationId}/credentials/rotateIssues a replacement access token for an installation, so a partner can rotate a credential it believes is compromised without the customer having to reinstall. Authenticated by the credential being replaced plus the integration's client secret: a leaked access token on its own cannot rotate itself, which would otherwise let an attacker take over the installation and lock the partner out. The previous credential intentionally stays valid so in-flight requests keep working. Retiring it is a separate, explicit operation — a partner is never left mid-rotation without a working credential.
https://api.vercel.com/v1/installations/{integrationConfigurationId}/credentials/rotate
const response = await fetch('https://api.vercel.com/v1/installations/integrationConfigurationId/credentials/rotate', { method: 'POST', headers: { 'Authorization': 'Bearer YOUR_ACCESS_TOKEN', 'Content-Type': 'application/json', }, body: JSON.stringify({ "client_secret": "string", "client_id": "example_id" }),});
const data = await response.json();console.log(data);Response
{ "access_token": "string", "expires_in": "123", "scope": "string", "token_type": "oauth2-token"}AuthorizationbearerToken
Default authentication mechanism
400One of the provided values in the request body is invalid.
One of the provided values in the request query is invalid.
401The request is not authorized.
403You do not have permission to access this resource.
404Error
409Error
410Error