curl --request POST \
--url https://spectrum.photon.codes/projects/{projectId}/whatsapp-business/tokens{
"succeed": true,
"data": {
"auth": {},
"numbers": {},
"expiresIn": 123
}
}Issues per-line WhatsApp Business LightAuth tokens for a project. Use Authorization: Basic base64(projectId:projectSecret). Returns auth (Meta phone_number_id -> LightAuth token) and numbers (Meta phone_number_id -> display phone number, nullable). All returned tokens share the same TTL (seconds) in expiresIn.
curl --request POST \
--url https://spectrum.photon.codes/projects/{projectId}/whatsapp-business/tokens{
"succeed": true,
"data": {
"auth": {},
"numbers": {},
"expiresIn": 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)$Was this page helpful?