Redeem installation credential
The registered app backend authenticates with a signed client assertion and a single-use code. Plaintext is returned only once; retries return status and never create another credential.
/v1/installation-requests/redeemcurl --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
enum<string>Selects the API contract date. Without it, the request is served as 2026-07-01.
"2026-07-01"Body requiredapplication/json
"^pho_app_[0-7][0-9a-hjkmnp-tv-z]{25}$""^[A-Za-z0-9_-]{43}$"Responseapplication/json
First successful delivery or metadata-only operation status.
"^pho_ain_[0-7][0-9a-hjkmnp-tv-z]{25}$""created"Response Headers
stringRFC 9745 structured-field Date at which the operation was or will be deprecated: @ followed by Unix seconds, for example @1767225599.
"^@-?[0-9]+$"booleanTrue when this response was replayed from an earlier attempt.
stringLinks related to lifecycle or remediation documentation.
enum<string>The selected API contract date, also returned on errors after selection.
"2026-07-01"stringCurrent rate-limit state.
stringRate-limit policy applied by the gateway.
stringDelay before retrying, in seconds or as an HTTP date.
stringRFC 8594 HTTP-date (IMF-fixdate) after which the operation may become unavailable, for example Thu, 31 Dec 2026 23:59:59 GMT.
"^(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$"stringIdentifier for this HTTP attempt.
stringTrace ID of this request. Sent alongside X-Request-ID when a middleware published a trace ID for the request.
"^(?!0{32}$)[0-9a-f]{32}$"