Skip to main content
POST
/
projects
/
{projectId}
/
lines
Add a dedicated iMessage line
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.

Path Parameters

projectId
string<uuid>
required
Pattern: ^([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)$

Body

platform
string
required
Allowed value: "imessage"

Response

200 - application/json

Response for status 200

succeed
boolean
required
data
object
required