curl --request POST \
--url https://spectrum.photon.codes/projects/{projectId}/slack/tokens{
"succeed": true,
"data": {
"auth": {},
"teams": {},
"expiresIn": 123
}
}Issues per-installation Slack LightAuth tokens for a project. Use Authorization: Basic base64(projectId:projectSecret). Returns auth (Slack team_id -> LightAuth token) and teams (Slack team_id -> ). All returned tokens share the same TTL (seconds) in expiresIn. The map is the unified-API contract for ‘every workspace this deployment can act on’ — the SDK uses it to fan outbound calls and route inbound events without dev code touching team_id directly. Returns 403 if the project does not have the Slack platform enabled. Returns empty auth/teams maps when there are no active installations.
curl --request POST \
--url https://spectrum.photon.codes/projects/{projectId}/slack/tokens{
"succeed": true,
"data": {
"auth": {},
"teams": {},
"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?