---
title: "Create Benchling Warehouse credentials"
method: POST
path: "/warehouse-credentials"
tags: ["warehouse"]
---

# Create Benchling Warehouse credentials

`POST /warehouse-credentials`

## Request

- Base URL: `https://{tenant_name}.benchling.com/api/v2`
- URL: `https://{tenant_name}.benchling.com/api/v2/warehouse-credentials`
- Auth: HTTP bearer

Allows for programmatically generating credentials to connect to the Benchling warehouse. You must have a warehouse configured to access this endpoint.
The credentials will authenticate as the same user calling the API.
Note that expiresIn is required - only temporary credentials are currently allowed.

## Request body

- WarehouseCredentialsCreate
  - `expiresIn` integer, required: Duration, in seconds, that credentials should be active for. Must be greater than 0 and less than 3600.

## Response `200`

OK

- WarehouseCredentials
  - `expiresAt` string, date-time: The time after which new connections using the username/password will not be permitted. Upon expiration, currently open connections are not terminated.
  - `password` string: The password to connect to the warehouse.
  - `username` string: The username to connect to the warehouse.

## Other responses

- `400`: Bad Request

---

[API](https://skmtc.dev/benchling/apis/benchling-api-2.md) - [All operations](https://skmtc.dev/benchling/apis/benchling-api-2/llms.txt) - [OpenAPI document](https://skmtc.dev/benchling/apis/benchling-api-2/revisions/01d2fa8523cd?raw)
