Skip to navigation

Create Benchling Warehouse credentials

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.

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Request

This endpoint expects an object.
expiresInintegerRequired1-3599
Duration, in seconds, that credentials should be active for. Must be greater than 0 and less than 3600.

Response

OK
expiresAtdatetimeOptionalRead-only

The time after which new connections using the username/password will not be permitted. Upon expiration, currently open connections are not terminated.

passwordstringOptionalRead-only
The password to connect to the warehouse.
usernamestringOptionalRead-only
The username to connect to the warehouse.

Errors

400
Bad Request Error