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

# Keep the sign-in of a browser session

> Keeps the sign-in of the website the active tab is on, as a saved login: `saved_login_ref` is what a later `POST /v1/browser-sessions` takes in `saved_login` to open already signed in. Only that website's sign-in is kept. It is saved when this session ends, and a saved login is open in one session at a time — so it can be used once this session is stopped. Delete it with `DELETE /v1/browser-saved-logins/{ref}`.



## OpenAPI

````yaml /api-reference/openapi.json post /v1/browser-sessions/{id}/keep-sign-in
openapi: 3.1.0
info:
  title: Sidenet API
  version: 1.0.0
  description: >-
    Sidenet HTTP endpoints exposed by the Sidenet Studio. All routes require an
    api key that can be generated through the studio in studio.sidenet.ai.
servers:
  - url: https://api.sidenet.ai
security:
  - bearerAuth: []
paths:
  /v1/browser-sessions/{id}/keep-sign-in:
    post:
      tags:
        - Browser
      summary: Keep the sign-in of a browser session
      description: >-
        Keeps the sign-in of the website the active tab is on, as a saved login:
        `saved_login_ref` is what a later `POST /v1/browser-sessions` takes in
        `saved_login` to open already signed in. Only that website's sign-in is
        kept. It is saved when this session ends, and a saved login is open in
        one session at a time — so it can be used once this session is stopped.
        Delete it with `DELETE /v1/browser-saved-logins/{ref}`.
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
            example: bs_3f9a1c0e5b7d2a4c6e8f0b1d
          description: The browser session id.
      responses:
        '200':
          description: The saved login
          content:
            application/json:
              schema:
                type: object
                properties:
                  saved_login_ref:
                    type: string
                  host:
                    type: string
              example:
                saved_login_ref: sl_0c9e4b7a1d3f5a6b8c2e4d6f
                host: admin.booking.com
        '404':
          description: >-
            No browser session with that id (or it is not one this caller may
            see)
        '409':
          description: >-
            The active tab is on no website, is a clean tab, or the session
            already keeps another website's sign-in
        '410':
          description: The session has ended
      security:
        - bearerAuth: []
        - sessionToken: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Organization API key, generated in studio.sidenet.ai. Backend only —
        never in a browser.
    sessionToken:
      type: http
      scheme: bearer
      description: >-
        Session token (`snat_…`) minted by POST /v1/token. Carries the
        organization and the end user; safe in a browser.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.