## Create an ephemeral AutoScribe viewer session

`EphemeralSessionCreateResponse autoScribe().ephemeralSessions().create(EphemeralSessionCreateParamsparams, RequestOptionsrequestOptions = RequestOptions.none())`

**post** `/v1/autoScribe/ephemeral-sessions`

Mints a 30-second tokenized landing URL for a userless, studyless AutoScribe viewer session. The token names a customer retrievalId (not an Avara study). Optional options are echoed verbatim on ephemeral.access_requested (max 3072 bytes JSON). Optional hangingProtocol applies a single-monitor layout when the viewer loads. Requires a customer study webhook on the API key.

### Parameters

- `EphemeralSessionCreateParams params`

  - `String retrievalId`

    Opaque customer handle for this view session. Avara stores and echoes it; it is not an Avara study ID.

  - `Optional<EphemeralHangingProtocol> hangingProtocol`

    Optional single-monitor hanging protocol applied when the ephemeral viewer loads. Omitted = no protocol. Invalid shape is rejected.

  - `Optional<Options> options`

    Optional JSON object echoed verbatim on ephemeral.access_requested. Avara does not read or edit it. Hard cap 3072 bytes on JSON.stringify. Examples: studyInstanceUids or internal ids for multi-study reads. Not for URLs or manifests.

### Returns

- `class EphemeralSessionCreateResponse:`

  Tokenized landing URL for an ephemeral AutoScribe viewer session (30-second token).

  - `String url`

### Example

```java
package com.avarasoftware.example;

import com.avarasoftware.client.AvaraClient;
import com.avarasoftware.client.okhttp.AvaraOkHttpClient;
import com.avarasoftware.models.autoscribe.ephemeralsessions.EphemeralSessionCreateParams;
import com.avarasoftware.models.autoscribe.ephemeralsessions.EphemeralSessionCreateResponse;

public final class Main {
    private Main() {}

    public static void main(String[] args) {
        AvaraClient client = AvaraOkHttpClient.fromEnv();

        EphemeralSessionCreateParams params = EphemeralSessionCreateParams.builder()
            .retrievalId("order-12345")
            .build();
        EphemeralSessionCreateResponse ephemeralSession = client.autoScribe().ephemeralSessions().create(params);
    }
}
```

#### Response

```json
{
  "url": "https://autoscribe.avarasoftware.com/token/landing?token=abc123"
}
```
