---
title: "createRepoExtensionInstallationUiShare"
---

> Documentation Index
> Fetch the complete documentation index at: https://buildrforge.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# createRepoExtensionInstallationUiShare

Path: Forge API › extensions

`POST /repos/{repo_id}/extension-installations/{name}/ui-shares`

Share the UI of main's installation publicly. Anyone with the answer's address opens the UI without signing in, as a guest who acts as the extension: its context names no user, and its page may call only the installation's tools, through callRepoExtensionInstallationTool, and only those an org policy lets the extension's guests call (request.principal is "guest"). Its guests join the installation's rooms only where an org policy lets the extension's guests join them (the room action join); it has no stream. Each call makes a new share with its own address; revoke one with deleteRepoExtensionInstallationUiShare. It takes the share action on the installation, which the org's policies grant; without it, and from extension code, it answers Forbidden. A share answers 404 while main installs no version with a UI and serves again once main installs one; it ends when it is revoked or the installation is removed.

## Path parameters

- `repo_id` (`createRepoExtensionInstallationUiShare.path.repo_id`; string, required)
  - pattern: `^repo_[0-7][0-9a-hjkmnp-tv-z]{25}$`
- `name` (`createRepoExtensionInstallationUiShare.path.name`; string, required)
  - maxLength: `129` · pattern: `^[a-z0-9]+(?:-[a-z0-9]+)*\.[a-z0-9]+(?:-[a-z0-9]+)*$`

## Code samples

### cURL

```bash
curl --request POST \
  --url '<base-url>/repos/<repo_id>/extension-installations/<name>/ui-shares'
```

### TypeScript

```typescript
const url = '<base-url>/repos/<repo_id>/extension-installations/<name>/ui-shares';
const options = {method: 'POST'};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "<base-url>/repos/<repo_id>/extension-installations/<name>/ui-shares"

response = requests.post(url)

print(response.text)
```

## Responses

### 200

Success

#### Example

```json
{
  "slug": "string",
  "address": "string",
  "created_by": "string",
  "created_at": "string"
}
```

- `slug` (`createRepoExtensionInstallationUiShare.response.200.slug`; string, required)
  - maxLength: `53` · pattern: `^[a-z0-9]+(?:-[a-z0-9]+)*-[2-9b-df-hjkmnp-tv-z]{16}$`
- `address` (`createRepoExtensionInstallationUiShare.response.200.address`; string, required)
- `created_by` (`createRepoExtensionInstallationUiShare.response.200.created_by`; string, required)
  - pattern: `^[a-z](?:[a-z_]{0,61}[a-z])?_[0-7][0-9a-hjkmnp-tv-z]{25}$`
- `created_at` (`createRepoExtensionInstallationUiShare.response.200.created_at`; string, required)

### 400

InvalidRequest

#### Example

```json
{
  "_tag": "InvalidRequest",
  "part": "path",
  "issues": [
    {
      "path": [
        "string"
      ],
      "message": "string"
    }
  ]
}
```

- `_tag` (`createRepoExtensionInstallationUiShare.response.400._tag`; string, required)
  - one of `"InvalidRequest"`
- `part` (`createRepoExtensionInstallationUiShare.response.400.part`; string, required)
  - one of `"path"`, `"query"`, `"headers"`, `"body"`
- `issues` (`createRepoExtensionInstallationUiShare.response.400.issues`; array of object, required)
  - `path` (`createRepoExtensionInstallationUiShare.response.400.issues.path`; array\<any of\>, required)
    - any of the following: `string`, `integer`
  - `message` (`createRepoExtensionInstallationUiShare.response.400.issues.message`; string, required)

### 401

InvalidCredentials

#### Example

```json
{
  "_tag": "InvalidCredentials"
}
```

- `_tag` (`createRepoExtensionInstallationUiShare.response.401._tag`; string, required)
  - one of `"InvalidCredentials"`

### 403

Forbidden | ForbiddenOrigin | RequiresPersonalSession | RunBranchRequired

#### Example

```json
{
  "_tag": "Forbidden",
  "message": "string"
}
```

Any of the following:

- `ForbiddenEncoded`
  - `_tag` (`ForbiddenEncoded._tag`; string, required)
    - one of `"Forbidden"`
  - `message` (`ForbiddenEncoded.message`; string, required)
- `ForbiddenOriginEncoded`
  - `_tag` (`ForbiddenOriginEncoded._tag`; string, required)
    - one of `"ForbiddenOrigin"`
- `RequiresPersonalSessionEncoded`
  - `_tag` (`RequiresPersonalSessionEncoded._tag`; string, required)
    - one of `"RequiresPersonalSession"`
- `RunBranchRequiredEncoded`
  - `_tag` (`RunBranchRequiredEncoded._tag`; string, required)
    - one of `"RunBranchRequired"`
  - `branch` (`RunBranchRequiredEncoded.branch`; string, required)
    - minLength: `1`
  - `message` (`RunBranchRequiredEncoded.message`; string, required)

### 404

ExtensionInstallationNotFound | ExtensionUiNotFound | RepoNotFound

#### Example

```json
{
  "_tag": "ExtensionInstallationNotFound",
  "extension_name": "string",
  "message": "string"
}
```

Any of the following:

- `ExtensionInstallationNotFoundEncoded`
  - `_tag` (`ExtensionInstallationNotFoundEncoded._tag`; string, required)
    - one of `"ExtensionInstallationNotFound"`
  - `extension_name` (`ExtensionInstallationNotFoundEncoded.extension_name`; string, required)
    - minLength: `1`
  - `message` (`ExtensionInstallationNotFoundEncoded.message`; string, required)
- `ExtensionUiNotFoundEncoded`
  - `_tag` (`ExtensionUiNotFoundEncoded._tag`; string, required)
    - one of `"ExtensionUiNotFound"`
  - `extension_name` (`ExtensionUiNotFoundEncoded.extension_name`; string, required)
- `RepoNotFoundEncoded`
  - `_tag` (`RepoNotFoundEncoded._tag`; string, required)
    - one of `"RepoNotFound"`

### 429

RateLimited

#### Example

```json
{
  "_tag": "RateLimited"
}
```

- `_tag` (`createRepoExtensionInstallationUiShare.response.429._tag`; string, required)
  - one of `"RateLimited"`

### 500

ControlPlaneFailure | RepoFailure | OrgFailure

#### Example

```json
{
  "_tag": "ControlPlaneFailure",
  "reason": "string"
}
```

Every option has:

- `reason` (`<option>.reason`; string, required)

Any of the following, each adding:

- `ControlPlaneFailureEncoded`
  - `_tag` (`ControlPlaneFailureEncoded._tag`; string, required)
    - one of `"ControlPlaneFailure"`
- `RepoFailureEncoded`
  - `_tag` (`RepoFailureEncoded._tag`; string, required)
    - one of `"RepoFailure"`
- `OrgFailureEncoded`
  - `_tag` (`OrgFailureEncoded._tag`; string, required)
    - one of `"OrgFailure"`

### 503

SessionUnavailable | RateLimitUnavailable

#### Example

```json
{
  "_tag": "SessionUnavailable"
}
```

Any of the following:

- `SessionUnavailableEncoded`
  - `_tag` (`SessionUnavailableEncoded._tag`; string, required)
    - one of `"SessionUnavailable"`
- `RateLimitUnavailableEncoded`
  - `_tag` (`RateLimitUnavailableEncoded._tag`; string, required)
    - one of `"RateLimitUnavailable"`


Source: https://buildrforge.com/docs/api/create-repo-extension-installation-ui-share/index.md
