Skip to content

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>
import { Photon } from "@photon-ai/api";

const photon = new Photon();
const result = await photon.system.redeemAppInstallationDelivery({
  body: {
    appId: "appId",
    clientAssertion: "clientAssertion",
    code: "code",
  },
});
{
  "clientId": "string",
  "clientSecret": "string",
  "installationId": "string",
  "status": "created"
}

Parameters

Photon-VersionPhotonVersion

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

Body

appIdstringrequired
clientAssertionstringrequired
codestringrequired

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

clientIdstringrequired
clientSecretstringrequired
installationIdstringrequired
statusunknownrequired

One of: ExistingAppInstallationDelivery

installationIdstringrequired
statusExistingAppInstallationDeliveryStatusrequired