> This page is for Developer Documentation.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.benchling.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.benchling.com/_mcp/server.

# Create Gateway Installer Config

POST https://{tenant_name}.benchling.com/api/v3/gateway/{gateway_id}:create-installer-config
Content-Type: application/json

Issue the certificate a LOCAL gateway authenticates with, and return it with its private key and the rest of the configuration the gateway installer needs.

The private key isn't stored, so it's returned only by this request, and a gateway's certificate can be issued only once. Issuing it for a gateway that already has one is a conflict.

Reference: https://docs.benchling.com/docs/api/benchling-api/gateway/createinstallerconfig

## Authentication

- `Authorization` header (bearer token, required) — Bearer authentication of the form `Bearer <token>`, where token is your auth token.

## Request

### Path parameters

- `gateway_id` (string, required) — ID of the Gateway.

### Headers

- `EARLY-ACCESS` (string, optional) — Set to true to access beta operations via /api/v3.

## Response

### 200

OK

- `awsRegion` (string, optional, nullable) — The AWS region the Gateway connects to.
- `certificatePem` (string, optional, nullable) — The PEM-encoded certificate the Gateway authenticates with.
- `iotCredentialsEndpoint` (string, optional, nullable) — The AWS IoT credentials endpoint the Gateway gets credentials from.
- `iotDataEndpoint` (string, optional, nullable) — The AWS IoT data endpoint the Gateway connects to.
- `iotRoleAlias` (string, optional, nullable) — The AWS IoT role alias the Gateway uses to get credentials.
- `privateKey` (string, optional, nullable) — The PEM-encoded private key of the Gateway's certificate. Store it securely.

## Errors

### 400 Bad Request Error

Bad Request

- `detail` (GeneralErrorDetail, required, nullable)
- `instance` (string, required)
- `status` (integer, required)
- `title` (string, required, nullable)
- `type` (string, required)
- `invalidId` (string, optional)

### 403 Forbidden Error

Forbidden

- `detail` (GeneralErrorDetail, required, nullable)
- `instance` (string, required)
- `status` (integer, required)
- `title` (string, required, nullable)
- `type` (string, required)
- `invalidId` (string, optional)

### 404 Not Found Error

Not Found

- `detail` (GeneralErrorDetail, required, nullable)
- `instance` (string, required)
- `status` (integer, required)
- `title` (string, required, nullable)
- `type` (string, required)
- `invalidId` (string, optional)

### 409 Conflict Error

Conflict

- `detail` (GeneralErrorDetail, required, nullable)
- `instance` (string, required)
- `status` (integer, required)
- `title` (string, required, nullable)
- `type` (string, required)
- `invalidId` (string, optional)

### 429 Too Many Requests Error

Too Many Requests

- `detail` (TooManyRequestsErrorDetail, required, nullable)
- `instance` (string, required)
- `status` (integer, required)
- `title` (string, required, nullable)
- `type` (string, required)
- `invalidId` (string, optional)

### 500 Internal Server Error

Internal Server Error

- `detail` (InternalServerErrorDetail, required, nullable)
- `instance` (string, required)
- `status` (integer, required)
- `title` (string, required, nullable)
- `type` (string, required)
- `errorId` (string, optional)

## Types

### GeneralErrorDetail

- string
- map from string to any

### TooManyRequestsErrorDetail

- string
- map from string to any

### InternalServerErrorDetail

- string
- map from string to any

## Examples

**Request**

```json
{}
```

**Response**

```json
{
  "awsRegion": null,
  "certificatePem": null,
  "iotCredentialsEndpoint": null,
  "iotDataEndpoint": null,
  "iotRoleAlias": null,
  "privateKey": null
}
```

**SDK Code**

```python
import requests

url = "https://{tenant_name}.benchling.com/api/v3/gateway/gateway_id:create-installer-config"

payload = {}
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

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

print(response.json())
```

```javascript
const url = 'https://{tenant_name}.benchling.com/api/v3/gateway/gateway_id:create-installer-config';
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```