Skip to main content
Creates a new Element session. This operation returns a session token that can be passed to an embedded Element in the browser. The Element uses the token to make subsequent calls to Rhetoric directly.

Request

string
Optional customer-provided session reference. You can use this to associate an Element session with your own internal session identifier.

Response

string
The session id.
string
Browser-scoped bearer token. Pass this as the Authorization header for all subsequent Element calls made from the browser.
string
Session expiration timestamp, in RFC 3339 format. Sessions expire two hours after creation.
string
Initial state token for the session.
string
Current session lifecycle state: open or submitted.
object
Backend-rendered form view for the first section of the flow.

Errors

This operation has no application errors.

Example

Request
Response