curl --request PATCH \
--url https://spectrum.photon.codes/projects/{projectId}/voice/sip-inbound/ \
--header 'Content-Type: application/json' \
--data '
{
"sipUri": "<string>",
"username": "<string>",
"password": "<string>"
}
'{
"succeed": true,
"data": {
"configId": "<string>",
"projectId": "<string>",
"sipUri": "<string>",
"username": "<string>",
"hasPassword": true,
"createdAt": "<string>",
"updatedAt": "<string>"
}
}Upsert the project’s SIP inbound configuration. On first call (no active config), sipUri is required and the project’s voice platform must be enabled. On subsequent calls, any non-empty subset patches the existing config — omitted fields are preserved, explicit null for username/password clears them. Resulting state must satisfy: username and password are either both set or both null (half-credentials are rejected). Requires Authorization: Basic base64(projectId:projectSecret).
curl --request PATCH \
--url https://spectrum.photon.codes/projects/{projectId}/voice/sip-inbound/ \
--header 'Content-Type: application/json' \
--data '
{
"sipUri": "<string>",
"username": "<string>",
"password": "<string>"
}
'{
"succeed": true,
"data": {
"configId": "<string>",
"projectId": "<string>",
"sipUri": "<string>",
"username": "<string>",
"hasPassword": true,
"createdAt": "<string>",
"updatedAt": "<string>"
}
}Documentation Index
Fetch the complete documentation index at: https://docs.photon.codes/docs/llms.txt
Use this file to discover all available pages before exploring further.
^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$Was this page helpful?