Skip to content

PUT /v1/projects/{id}/platforms/voice/profiles/{profileId}/inbound

Creates or fully replaces a profile's inbound destination when the shared profile version matches. The profileId may identify the default or an additional profile. Credentials are required and nullable; null removes destination authentication. Requires platforms:write bound to the path project.

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

const photon = new Photon({
  headers: { Authorization: `Bearer ${process.env.PHOTON_API_TOKEN}` },
});
const result = await photon.projects.platforms.replaceVoiceProfileInbound({
  path: {
    id: "id",
    profileId: "profileId",
  },
  body: {
    credentials: {
      password: "password",
      username: "username",
    },
    destinationUri: "destinationUri",
    expectedVersion: 1,
  },
});
{
  "inbound": null,
  "profileVersion": 1
}

Parameters

Photon-VersionPhotonVersion

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

idstringrequired
profileIdstringrequired

Body

credentialsSipInboundCredentialsWithPassword | nullrequired
destinationUristringrequired
expectedVersionintegerrequired

Returns

200 The replaced inbound configuration and profile version. VoiceProfileInboundConfiguration

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

inboundSipInboundConfiguration | nullrequired
profileVersionintegerrequired

201 The newly created inbound configuration and profile version. VoiceProfileInboundConfiguration

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

inboundSipInboundConfiguration | nullrequired
profileVersionintegerrequired