---
title: "createRepoExtensionInstallationWorkflowRun"
---

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

# createRepoExtensionInstallationWorkflowRun

Path: Forge API › extensions

`POST /repos/{repo_id}/extension-installations/{name}/workflow-runs`

Start a run of a workflow of main's installation, at the version main's head commit pins, acting as the caller, and answer the run. The body is {"workflow": name, "input": …, "idempotency_key": key}: the input must fit the workflow's input schema, and a key that already names a run of the workflow answers that run instead of starting another.

## Path parameters

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

## Request body

_Required._

- `workflow` (`createRepoExtensionInstallationWorkflowRun.workflow`; string, required)
  - minLength: `1`
- `input` (`createRepoExtensionInstallationWorkflowRun.input`; unknown, required)
- `idempotency_key` (`createRepoExtensionInstallationWorkflowRun.idempotency_key`; string, optional)
  - maxLength: `256` · minLength: `1`

## Example request

```json
{
  "workflow": "string",
  "input": null,
  "idempotency_key": "string"
}
```

## Code samples

### cURL

```bash
curl --request POST \
  --url '<base-url>/repos/<repo_id>/extension-installations/<name>/workflow-runs' \
  --header 'Content-Type: application/json' \
  --data '
{
  "workflow": "string",
  "input": null,
  "idempotency_key": "string"
}
'
```

### TypeScript

```typescript
const url = '<base-url>/repos/<repo_id>/extension-installations/<name>/workflow-runs';
const options = {
  method: 'POST',
  headers: {'Content-Type': 'application/json'},
  body: JSON.stringify({workflow: 'string', input: null, idempotency_key: 'string'})
};

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>/workflow-runs"

payload = {
    "workflow": "string",
    "input": None,
    "idempotency_key": "string"
}
headers = {"Content-Type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
```

## Responses

### 201

ExtensionWorkflowRun

#### Example

```json
{
  "id": "string",
  "extension_name": "string",
  "version": "string",
  "branch": "string",
  "workflow": "string",
  "key": "string",
  "enqueued_by_id": "string",
  "enqueued_by_extension": "string",
  "status": "queued",
  "waiting_for_signal": "string",
  "signal_sequence": -9007199254740991,
  "input": null,
  "output": {},
  "failure": "string",
  "queued_at": "string",
  "started_at": "string",
  "finished_at": "string"
}
```

- `id` (`createRepoExtensionInstallationWorkflowRun.response.201.id`; string, required)
  - pattern: `^extension_workflow_run_[0-7][0-9a-hjkmnp-tv-z]{25}$`
- `extension_name` (`createRepoExtensionInstallationWorkflowRun.response.201.extension_name`; string, required)
  - maxLength: `129` · pattern: `^[a-z0-9]+(?:-[a-z0-9]+)*\.[a-z0-9]+(?:-[a-z0-9]+)*$`
- `version` (`createRepoExtensionInstallationWorkflowRun.response.201.version`; any of, required)
  - any of the following: `string`, `string`
- `branch` (`createRepoExtensionInstallationWorkflowRun.response.201.branch`; string, required)
  - minLength: `1`
- `workflow` (`createRepoExtensionInstallationWorkflowRun.response.201.workflow`; string, required)
  - minLength: `1`
- `key` (`createRepoExtensionInstallationWorkflowRun.response.201.key`; string, required)
  - minLength: `1`
- `enqueued_by_id` (`createRepoExtensionInstallationWorkflowRun.response.201.enqueued_by_id`; string, required)
  - pattern: `^(?:user|extension)_[0-7][0-9a-hjkmnp-tv-z]{25}$`
- `enqueued_by_extension` (`createRepoExtensionInstallationWorkflowRun.response.201.enqueued_by_extension`; any of, required)
  - any of the following: `string`, `null`
- `status` (`createRepoExtensionInstallationWorkflowRun.response.201.status`; string, required)
  - one of `"queued"`, `"running"`, `"waiting"`, `"complete"`, `"errored"`, `"terminated"`
- `waiting_for_signal` (`createRepoExtensionInstallationWorkflowRun.response.201.waiting_for_signal`; any of, required)
  - any of the following: `string`, `null`
- `signal_sequence` (`createRepoExtensionInstallationWorkflowRun.response.201.signal_sequence`; integer, required)
  - maximum: `9007199254740991` · minimum: `-9007199254740991`
- `input` (`createRepoExtensionInstallationWorkflowRun.response.201.input`; unknown, required)
- `output` (`createRepoExtensionInstallationWorkflowRun.response.201.output`; any of, required)
  - any of the following: `Option 1`, `null`
- `failure` (`createRepoExtensionInstallationWorkflowRun.response.201.failure`; any of, required)
  - any of the following: `string`, `null`
- `queued_at` (`createRepoExtensionInstallationWorkflowRun.response.201.queued_at`; string, required)
- `started_at` (`createRepoExtensionInstallationWorkflowRun.response.201.started_at`; any of, required)
  - any of the following: `string`, `null`
- `finished_at` (`createRepoExtensionInstallationWorkflowRun.response.201.finished_at`; any of, required)
  - any of the following: `string`, `null`

### 400

ExtensionWorkflowInputTooLarge | ExtensionWorkflowInputTooDeep | ExtensionWorkflowInputDoesNotFit | ExtensionWorkflowInputDoesNotFitAt | InvalidRequest | RequestBodyTooDeep

#### Example

```json
{
  "_tag": "ExtensionWorkflowInputTooLarge",
  "max_bytes": -9007199254740991,
  "message": "string"
}
```

Any of the following:

- `ExtensionWorkflowInputTooLargeEncoded`
  - `_tag` (`ExtensionWorkflowInputTooLargeEncoded._tag`; string, required)
    - one of `"ExtensionWorkflowInputTooLarge"`
  - `max_bytes` (`ExtensionWorkflowInputTooLargeEncoded.max_bytes`; integer, required)
    - maximum: `9007199254740991` · minimum: `-9007199254740991`
  - `message` (`ExtensionWorkflowInputTooLargeEncoded.message`; string, required)
- `ExtensionWorkflowInputTooDeepEncoded`
  - `_tag` (`ExtensionWorkflowInputTooDeepEncoded._tag`; string, required)
    - one of `"ExtensionWorkflowInputTooDeep"`
  - `max_depth` (`ExtensionWorkflowInputTooDeepEncoded.max_depth`; integer, required)
    - maximum: `9007199254740991` · minimum: `-9007199254740991`
  - `message` (`ExtensionWorkflowInputTooDeepEncoded.message`; string, required)
- `ExtensionWorkflowInputDoesNotFitEncoded`
  - `_tag` (`ExtensionWorkflowInputDoesNotFitEncoded._tag`; string, required)
    - one of `"ExtensionWorkflowInputDoesNotFit"`
  - `extension_name` (`ExtensionWorkflowInputDoesNotFitEncoded.extension_name`; string, required)
    - minLength: `1`
  - `workflow` (`ExtensionWorkflowInputDoesNotFitEncoded.workflow`; string, required)
    - minLength: `1`
  - `issue` (`ExtensionWorkflowInputDoesNotFitEncoded.issue`; string, required)
  - `issues` (`ExtensionWorkflowInputDoesNotFitEncoded.issues`; array of object, required)
    - `path` (`ExtensionWorkflowInputDoesNotFitEncoded.issues.path`; array\<any of\>, required)
      - any of the following: `string`, `integer`
    - `message` (`ExtensionWorkflowInputDoesNotFitEncoded.issues.message`; string, required)
  - `message` (`ExtensionWorkflowInputDoesNotFitEncoded.message`; string, required)
- `ExtensionWorkflowInputDoesNotFitAtEncoded`
  - `_tag` (`ExtensionWorkflowInputDoesNotFitAtEncoded._tag`; string, required)
    - one of `"ExtensionWorkflowInputDoesNotFitAt"`
  - `extension_name` (`ExtensionWorkflowInputDoesNotFitAtEncoded.extension_name`; string, required)
    - minLength: `1`
  - `workflow` (`ExtensionWorkflowInputDoesNotFitAtEncoded.workflow`; string, required)
    - minLength: `1`
  - `path` (`ExtensionWorkflowInputDoesNotFitAtEncoded.path`; string, required)
  - `issue` (`ExtensionWorkflowInputDoesNotFitAtEncoded.issue`; string, required)
  - `issues` (`ExtensionWorkflowInputDoesNotFitAtEncoded.issues`; array of object, required)
    - `path` (`ExtensionWorkflowInputDoesNotFitAtEncoded.issues.path`; array\<any of\>, required)
      - any of the following: `string`, `integer`
    - `message` (`ExtensionWorkflowInputDoesNotFitAtEncoded.issues.message`; string, required)
  - `message` (`ExtensionWorkflowInputDoesNotFitAtEncoded.message`; string, required)
- `InvalidRequestEncoded`
  - `_tag` (`InvalidRequestEncoded._tag`; string, required)
    - one of `"InvalidRequest"`
  - `part` (`InvalidRequestEncoded.part`; string, required)
    - one of `"path"`, `"query"`, `"headers"`, `"body"`
  - `issues` (`InvalidRequestEncoded.issues`; array of object, required)
    - `path` (`InvalidRequestEncoded.issues.path`; array\<any of\>, required)
      - any of the following: `string`, `integer`
    - `message` (`InvalidRequestEncoded.issues.message`; string, required)
- `RequestBodyTooDeepEncoded`
  - `_tag` (`RequestBodyTooDeepEncoded._tag`; string, required)
    - one of `"RequestBodyTooDeep"`
  - `max_depth` (`RequestBodyTooDeepEncoded.max_depth`; integer, required)
    - maximum: `9007199254740991` · minimum: `-9007199254740991`

### 401

InvalidCredentials

#### Example

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

- `_tag` (`createRepoExtensionInstallationWorkflowRun.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 | ExtensionWorkflowNotFound | 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)
- `ExtensionWorkflowNotFoundEncoded`
  - `_tag` (`ExtensionWorkflowNotFoundEncoded._tag`; string, required)
    - one of `"ExtensionWorkflowNotFound"`
  - `extension_name` (`ExtensionWorkflowNotFoundEncoded.extension_name`; string, required)
    - minLength: `1`
  - `workflow` (`ExtensionWorkflowNotFoundEncoded.workflow`; string, required)
    - minLength: `1`
  - `message` (`ExtensionWorkflowNotFoundEncoded.message`; string, required)
- `RepoNotFoundEncoded`
  - `_tag` (`RepoNotFoundEncoded._tag`; string, required)
    - one of `"RepoNotFound"`

### 409

RepoArchived

#### Example

```json
{
  "_tag": "RepoArchived"
}
```

- `_tag` (`createRepoExtensionInstallationWorkflowRun.response.409._tag`; string, required)
  - one of `"RepoArchived"`

### 413

WriteTooLarge | RequestBodyTooLarge

#### Example

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

Any of the following:

- `WriteTooLargeEncoded`
  - `_tag` (`WriteTooLargeEncoded._tag`; string, required)
    - one of `"WriteTooLarge"`
  - `message` (`WriteTooLargeEncoded.message`; string, required)
- `RequestBodyTooLargeEncoded`
  - `_tag` (`RequestBodyTooLargeEncoded._tag`; string, required)
    - one of `"RequestBodyTooLarge"`
  - `max_bytes` (`RequestBodyTooLargeEncoded.max_bytes`; integer, required)
    - maximum: `9007199254740991` · minimum: `-9007199254740991`

### 429

RateLimited

#### Example

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

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

### 500

RepoFailure | OrgFailure

#### Example

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

Every option has:

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

Any of the following, each adding:

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

### 503

RepoBusy | SessionUnavailable | RateLimitUnavailable

#### Example

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

Any of the following:

- `RepoBusyEncoded`
  - `_tag` (`RepoBusyEncoded._tag`; string, required)
    - one of `"RepoBusy"`
  - `message` (`RepoBusyEncoded.message`; string, required)
- `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-workflow-run/index.md
