> ## Documentation Index
> Fetch the complete documentation index at: https://docs.atomscale.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# End RHEED Stream

> End a RHEED streaming session and finalize processing

Ends an active RHEED streaming session and triggers final processing of all received frames.

<ParamField path="data_id" type="string" required>
  The data entry UUID for the streaming session
</ParamField>

<ParamField query="force_success" type="boolean" default="false">
  Force the stream to finalize with a success status, even if processing encountered issues
</ParamField>

## Response

Returns the final pipeline status as a string.

Possible values: `success`, `pending`, `error`, `running`, `quarantined`, `stream_finalizing`, `stream_error`

<RequestExample>
  ```python SDK theme={null}
  from atomscale.streaming import RHEEDStreamer

  streamer = RHEEDStreamer(api_key="YOUR_API_KEY")
  streamer.finalize("d290f1ee-6c54-4b01-90e6-d701748f0851")
  ```

  ```python Python theme={null}
  import requests

  response = requests.post(
      "https://api.atomscale.ai/rheed/stream/d290f1ee-6c54-4b01-90e6-d701748f0851/end",
      headers={"X-API-KEY": "YOUR_API_KEY"}
  )
  status = response.json()
  ```

  ```bash cURL theme={null}
  curl -X POST "https://api.atomscale.ai/rheed/stream/d290f1ee-6c54-4b01-90e6-d701748f0851/end" \
    -H "X-API-KEY: YOUR_API_KEY"
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  "success"
  ```
</ResponseExample>
