Skip to navigation

Create AppSession

Beta
Create AppSession.

Authentication

AuthorizationBearer

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

Headers

EARLY-ACCESSstringOptional

Set to true to access beta operations via /api/v3.

Request

This endpoint expects an object.
appIdstringRequired
API ID of the Benchling App that owns this session.
namestringRequired

Human-readable name for this session.

timeoutSecondsintegerRequired

Maximum session duration in seconds before automatic timeout (1 to 2592000).

messageslist of objectsOptional
Initial messages to display. If omitted, the session starts with no messages.

Response

Created
__typenamestringOptional
appobjectOptional
The Benchling App installation that owns this session.
createdAtstringOptionalformat: "datetime"
idstringOptional
messageslist of objectsOptional
The messages currently displayed to the user, from the most recent session version.
modifiedAtstringOptionalformat: "datetime"
namestringOptional
statusenumOptional
The current lifecycle status of this session, derived from the most recent version.
Allowed values:
timeoutSecondsintegerOptional
Maximum duration in seconds before the session times out automatically. Once the session's age exceeds this value and the session has not been finalized, its status becomes TIMEOUT.

Errors

400
Bad Request Error
403
Forbidden Error
404
Not Found Error
409
Conflict Error
429
Too Many Requests Error
500
Internal Server Error