Skip to content
POST/v1/installation-requests/redeem
Redeem installation credential
curl --request POST \
  --url https://api.photon.codes/v1/installation-requests/redeem \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "appId": "<string>",
  "clientAssertion": "<string>",
  "code": "<string>"
}'
{
  "clientId": "<string>",
  "clientSecret": "<string>",
  "installationId": "<string>",
  "status": "created"
}

Headers

Photon-Versionenum<string>

Selects the API contract date. Without it, the request is served as 2026-07-01.

Available options: "2026-07-01"

Body requiredapplication/json

appIdstringrequired
pattern: "^pho_app_[0-7][0-9a-hjkmnp-tv-z]{25}$"
clientAssertionstringrequired
maxLength: 16384
minLength: 1
codestringrequired
pattern: "^[A-Za-z0-9_-]{43}$"
Additional properties are not allowed.

Responseapplication/json

First successful delivery or metadata-only operation status.

clientIdstringrequired
maxLength: 256
pattern: "^client_[A-Za-z0-9]+$"
clientSecretstringrequired
maxLength: 8192
minLength: 1
installationIdstringrequired
pattern: "^pho_ain_[0-7][0-9a-hjkmnp-tv-z]{25}$"
statusstringrequired
const: "created"
Additional properties are not allowed.

Response Headers

RFC 9745 structured-field Date at which the operation was or will be deprecated: @ followed by Unix seconds, for example @1767225599.

pattern: "^@-?[0-9]+$"

True when this response was replayed from an earlier attempt.

Photon-Versionenum<string>

The selected API contract date, also returned on errors after selection.

Available options: "2026-07-01"
RateLimitstring

Current rate-limit state.

Rate-limit policy applied by the gateway.

Delay before retrying, in seconds or as an HTTP date.

Sunsetstring

RFC 8594 HTTP-date (IMF-fixdate) after which the operation may become unavailable, for example Thu, 31 Dec 2026 23:59:59 GMT.

pattern: "^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), [0-9]{2} (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) [0-9]{4} [0-9]{2}:[0-9]{2}:[0-9]{2} GMT$"

Identifier for this HTTP attempt.

Trace ID of this request. Sent alongside X-Request-ID when a middleware published a trace ID for the request.

pattern: "^(?!0{32}$)[0-9a-f]{32}$"