The [Screen Share sessions endpoint](https://docs.cloud.google.com/contact-center/ccai-platform/docs/apps-api-cobrowse#co-browse-sessions-endpoint) provides access
to the Screen Share service.

## Screen Share sessions endpoint

| Parameter | Required | Data Type | Definition |
|---|---|---|---|
| ext_session_id | TRUE | String | The external Screen Share session ID |

***Endpoint:***

    Method: POST
    Type: RAW
    URL: https://{​{subdomain}​}.{​{domain}​}/apps/api/v1/cobrowse_sessions/

***Headers:***

| Key | Value | Description |
|---|---|---|
| Content-Type | application/json |   |

***Body:***

    {}

### Example request and responses

The following sections provide example requests to the endpoint.

#### End a Screen Share session using an external session ID

This example shows how to end a current Screen Share session.

##### Request

You can end a Screen Share session using an external session ID.

***Headers:***

| Key | Value | Description |
|---|---|---|
| Content-Type | application/json |   |

***Query:***

| Parameter | Required | Data Type | Definition |
|---|---|---|---|
| ext_session_id | TRUE | String | The external Screen Share session ID |

Request URL:

    POST https://SUBDOMAIN.DOMAIN/apps/api/v1/cobrowse_sessions/EXTERNAL_SESSION_ID/end

Replace the following:

- `SUBDOMAIN`: Your CCAI Platform tenant name.

- `DOMAIN`: The domain for your instance.

- `EXTERNAL_SESSION_ID`: The external session ID for the
  Screen Share session that you want to end.

##### Response: Session terminated

    {
        "message": "Session terminated"
    }

***Status Code:*** 200