curl --request POST \
--url https://spectrum.photon.codes/projects/{projectId}/lines/ \
--header 'Content-Type: application/json' \
--data '
{
"platform": "<string>"
}
'{
"succeed": true,
"data": {
"line": {
"platform": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"phoneNumber": "<string>",
"createdAt": "<string>"
},
"billing": {
"quantity": 123,
"prorationAmount": 123
}
}
}Allocates a new dedicated iMessage phone number for the project and updates the Stripe subscription quantity with pro-rated billing. Business plan only. iMessage only for now; WhatsApp Business onboarding flows through the Meta registration endpoints. Requires Authorization: Basic base64(projectId:projectSecret).
curl --request POST \
--url https://spectrum.photon.codes/projects/{projectId}/lines/ \
--header 'Content-Type: application/json' \
--data '
{
"platform": "<string>"
}
'{
"succeed": true,
"data": {
"line": {
"platform": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"phoneNumber": "<string>",
"createdAt": "<string>"
},
"billing": {
"quantity": 123,
"prorationAmount": 123
}
}
}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)$"imessage"Was this page helpful?