Redeem installation credential
Redeem installation credential: redeemAppInstallationDelivery in the TypeScript, Python, Rust and Go clients.
POST /v1/installation-requests/redeem
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.
photon.system.redeemAppInstallationDelivery(input: RedeemAppInstallationDeliveryInput, options?: RequestOptions): Promise<RedeemAppInstallationDeliveryOutput>photon.system.redeem_app_installation_delivery(input: RedeemAppInstallationDeliveryInput, *, options: RequestOptions | None = None) -> models.RedeemAppInstallationDeliveryResponseclient.redeem_app_installation_delivery(body: &types::RedeemAppInstallationDeliveryRequest).await -> Result<ResponseValue<types::RedeemAppInstallationDeliveryResponse>, Error<RedeemAppInstallationDeliveryError>>client.System.RedeemAppInstallationDelivery(ctx context.Context, params *RedeemAppInstallationDeliveryParams, opts ...RequestOption) (*RedeemAppInstallationDeliveryResponse, error)import { Photon } from "@photon-ai/api";
const photon = new Photon();
const result = await photon.system.redeemAppInstallationDelivery({
body: {
appId: "appId",
clientAssertion: "clientAssertion",
code: "code",
},
});from photon_api import Photon
from photon_api.rpc_generated import RedeemAppInstallationDeliveryInput
photon = Photon()
result = photon.system.redeem_app_installation_delivery(
RedeemAppInstallationDeliveryInput.model_validate({
"body": {
"appId": "appId",
"clientAssertion": "clientAssertion",
"code": "code",
},
})
)use photon_ai_api::PhotonClientBuilder;
let client = PhotonClientBuilder::new().build()?;
let result = client
.redeem_app_installation_delivery(
&serde_json::from_value(serde_json::json!({
"appId": "appId",
"clientAssertion": "clientAssertion",
"code": "code",
}))?,
)
.await
.map_err(|error| format!("{error:?}"))?
.into_inner();import (
"context"
"encoding/json"
photonapi "github.com/photon-hq/api/packages/go"
)
ctx := context.Background()
client := photonapi.NewClient()
var body photonapi.RedeemAppInstallationDeliveryRequest
if err := json.Unmarshal([]byte(`{
"appId": "appId",
"clientAssertion": "clientAssertion",
"code": "code"
}`), &body); err != nil {
return err
}
result, err := client.System.RedeemAppInstallationDelivery(ctx, &photonapi.RedeemAppInstallationDeliveryParams{
Body: body,
})
if err != nil {
return err
}
_ = result{
"clientId": "string",
"clientSecret": "string",
"installationId": "string",
"status": "created"
}Parameters
Selects the API contract date. Without it, the request is served as 2026-07-01.
Body
Returns
200 First successful delivery or metadata-only operation status. RedeemAppInstallationDeliveryResponse
Headers: Photon-Version. The raw response carries these headers; see Raw responses.
One of: CreatedAppInstallationDelivery
One of: ExistingAppInstallationDelivery