> ## 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.

> ## Agent Instructions
> Use Stable documentation by default. Honor an explicit Beta request or a URL under /docs/beta/. If the requested version conflicts with the installed CLI package or API origin, clarify the target before writing integration code.
> Pages under /docs/beta/ document Beta; other product pages document Stable. Keep the CLI package, commands, API origin, and credentials within the selected version. State the documentation version in your answer.
> For MCP search, always pass version: Stable or version: Beta. Unfiltered search mixes both versions. For filesystem reads, keep Beta queries under /beta/ and exclude /beta/ from Stable queries; discover paths before reading them.
> The public docs base is https://photon.codes/docs. Convert MCP page paths to public URLs under that base, preserving /beta/ when present. Read https://photon.codes/docs/skill.md for version selection and https://photon.codes/docs/llms.txt for the version indexes.

# Request app installation

> Request app installation: createAppInstallationRequest in the TypeScript, Python and Rust clients.

`POST /v1/installation-requests`

Authenticates a registered app backend using a short-lived signed client assertion. Creates request metadata only; customer approval is still required.

<Tabs>
  <Tab title="TypeScript">
    ```typescript TypeScript theme={null}
    photon.system.createAppInstallationRequest(input: CreateAppInstallationRequestInput, options?: RequestOptions): Promise<CreateAppInstallationRequestOutput>
    ```
  </Tab>

  <Tab title="Python">
    ```python Python theme={null}
    photon.system.create_app_installation_request(input: CreateAppInstallationRequestInput) -> models.CreateAppInstallationRequestResponse
    ```
  </Tab>

  <Tab title="Rust">
    ```rust Rust theme={null}
    client.create_app_installation_request(body: &types::CreateAppInstallationRequestRequest).await -> Result<ResponseValue<types::CreateAppInstallationRequestResponse>, Error<CreateAppInstallationRequestError>>
    ```
  </Tab>
</Tabs>

<RequestExample>
  ```typescript TypeScript theme={null}
  import { Photon } from "@photon-ai/api";

  const photon = new Photon();
  const result = await photon.system.createAppInstallationRequest({
    body: {
      appId: "appId",
      clientAssertion: "clientAssertion",
      redirectUri: "redirectUri",
      state: "state",
    },
  });
  ```

  ```python Python theme={null}
  from photon_api import Photon
  from photon_api.rpc_generated import CreateAppInstallationRequestInput

  photon = Photon()
  result = photon.system.create_app_installation_request(
      CreateAppInstallationRequestInput.model_validate({
          "body": {
              "appId": "appId",
              "clientAssertion": "clientAssertion",
              "redirectUri": "redirectUri",
              "state": "state",
          },
      })
  )
  ```

  ```rust Rust theme={null}
  use photon_ai_api::PhotonClientBuilder;

  let client = PhotonClientBuilder::new().build()?;
  let result = client
      .create_app_installation_request(
          &serde_json::from_value(serde_json::json!({
              "appId": "appId",
              "clientAssertion": "clientAssertion",
              "redirectUri": "redirectUri",
              "state": "state",
          }))?,
      )
      .await
      .map_err(|error| format!("{error:?}"))?
      .into_inner();
  ```
</RequestExample>

<ResponseExample>
  ```json 201 theme={null}
  {
    "appId": "string",
    "appVersion": "string",
    "createdAt": "2026-01-01T00:00:00.000Z",
    "redirectUri": "string",
    "requestId": "string",
    "state": "string"
  }
  ```
</ResponseExample>

## Body

<ParamField body="appId" type={"string"} required />

<ParamField body="clientAssertion" type={"string"} required />

<ParamField body="redirectUri" type={"string"} required />

<ParamField body="state" type={"string"} required />

## Returns

**`201`** Installation request metadata. No customer credential or access is issued. CreateAppInstallationRequestResponse

<ResponseField name="appId" type={"string"} required />

<ResponseField name="appVersion" type={"string"} required />

<ResponseField name="createdAt" type={"string (date-time)"} required />

<ResponseField name="redirectUri" type={"string"} required />

<ResponseField name="requestId" type={"string"} required />

<ResponseField name="state" type={"string"} required />


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.