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

# GET /sessions/{uid}/deleted

> Obtains session deleted notification via SSE event.



## OpenAPI

````yaml docs/granta-mi/granta-mi-connected-materials/api/integration_service.yaml GET /sessions/{uid}/deleted
openapi: 3.0.0
info:
  version: 1.0.0
  title: Granta Integration Service
  description: Integration Service OpenAPI
servers:
  - url: https://integration.service/api/v1/
security:
  - OpenId:
      - is_read
      - is_write
      - is_read_write
paths:
  /sessions/{uid}/deleted:
    get:
      description: Obtains session deleted notification via SSE event.
      operationId: sessions-uid-deleted-get
      parameters:
        - $ref: '#/components/parameters/SessionUid'
      responses:
        '200':
          description: >
            Event stream that returns the following notifications: 'accepted'
            when the request for notification is received, and 'deleted' (with
            reason for session deletion) when the session is successfully
            deleted.
          content:
            text/event-stream:
              schema:
                type: object
                properties:
                  event:
                    type: string
                    enum:
                      - deleted
                      - accepted
                  data:
                    type: object
                    properties:
                      reason:
                        $ref: '#/components/schemas/DeletionReason'
        '400':
          description: Malformed session UUID or data sid
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HttpError'
        '403':
          description: Session is not owned by user
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HttpError'
        '404':
          description: Session not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HttpError'
components:
  parameters:
    SessionUid:
      description: Universally Unique identifier for a session.
      name: uid
      in: path
      required: true
      schema:
        type: string
        format: uuid
  schemas:
    DeletionReason:
      description: Reason for deleting a session
      type: string
      enum:
        - unspecified
        - completed
        - canceled
    HttpError:
      description: >-
        Returned by requests if an error occurs. Holds HTTP status code and
        message
      type: object
      required:
        - error
      properties:
        error:
          description: Fixed field indicating this is an error
          type: object
          required:
            - code
            - message
          properties:
            code:
              description: Text representation of Http status code category
              type: string
            message:
              description: A string describing the specific error that occurred.
              type: string
  securitySchemes:
    OpenId:
      type: openIdConnect
      openIdConnectUrl: https://azeww22wpoidc01.win.ansys.com/

````