Skip to main content
POST
/
projects
/
{projectId}
/
slack
/
setup
Set up a project's Slack app via workspace-admin tokens
curl --request POST \
  --url https://spectrum.photon.codes/projects/{projectId}/slack/setup \
  --header 'Content-Type: application/json' \
  --data '
{
  "appName": "<string>",
  "enabledFeatures": [
    "<string>"
  ],
  "configToken": "<string>",
  "refreshToken": "<string>"
}
'
{
  "succeed": true,
  "data": {
    "ok": true,
    "appId": "<string>",
    "startUrl": "<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.

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

appName
string
required
Required string length: 1 - 80
enabledFeatures
string[]
required
configToken
string
Minimum string length: 8
refreshToken
string
Minimum string length: 8

Response

200 - application/json

Response for status 200

succeed
boolean
required
data
object
required