Skip to content

POST /v1/projects/{id}/platforms/voice/profiles/{profileId}/outbound/rotate

Rotates a SIP profile's outbound credential when expectedVersion matches. The profileId may identify the default or an additional profile. Normal rotation gives the previous credential one hour of grace; emergency rotation gives none. The new password is returned once and is never recoverable. Requires platforms:write bound to the path project.

photon.projects.platforms.rotateVoiceProfileOutboundCredential(input: RotateVoiceProfileOutboundCredentialInput, options?: RequestOptions): Promise<RotateVoiceProfileOutboundCredentialOutput>
import { Photon } from "@photon-ai/api";

const photon = new Photon({
  headers: { Authorization: `Bearer ${process.env.PHOTON_API_TOKEN}` },
});
const result = await photon.projects.platforms.rotateVoiceProfileOutboundCredential({
  path: {
    id: "id",
    profileId: "profileId",
  },
  headers: {
    idempotencyKey: "idempotencyKey",
  },
  body: {
    expectedVersion: 1,
    mode: "normal",
  },
});
{
  "password": null,
  "previousPasswordValidUntil": null,
  "profileVersion": 1
}

Parameters

Photon-VersionPhotonVersion

Selects the API contract date. Without it, the request is served as 2026-07-01.

Idempotency-Keystringrequired

Identifies one logical mutation across retries.

idstringrequired
profileIdstringrequired

Body

expectedVersionintegerrequired
modeVoiceOutboundCredentialRotationModerequired

Returns

200 The rotated password result and next profile version. RotateVoiceProfileOutboundCredentialResponse

Headers: Photon-Version. The raw response carries these headers; see Raw responses.

passwordstring | nullrequired
previousPasswordValidUntilstring (date-time) | nullrequired
profileVersionintegerrequired