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

# Get Session Tags

> Retrieves the tags associated with a specific browser session.



## OpenAPI

````yaml /openapi.yaml get /v1/sessions/{session_id}/tags
openapi: 3.1.0
info:
  title: AnchorBrowser API
  version: 1.0.0
  description: APIs to manage all browser-related actions and configuration.
servers:
  - url: https://api.anchorbrowser.io
    description: API server
security: []
paths:
  /v1/sessions/{session_id}/tags:
    get:
      tags:
        - Browser Sessions
      summary: Get Session Tags
      description: Retrieves the tags associated with a specific browser session.
      parameters:
        - in: path
          name: session_id
          required: true
          description: The ID of the session to retrieve tags for.
          schema:
            type: string
      responses:
        '200':
          description: Session tags retrieved successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SessionTagsResponse'
        '400':
          description: Session ID is required.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Invalid API Key or unauthorized access.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Session not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: Failed to fetch session tags.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - api_key_header: []
components:
  schemas:
    SessionTagsResponse:
      type: object
      required:
        - tags
      properties:
        tags:
          type: array
          nullable: true
          items:
            type: string
          description: Tags currently associated with the session, or null if none are set.
    ErrorResponse:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: integer
            message:
              type: string
  securitySchemes:
    api_key_header:
      type: apiKey
      in: header
      name: anchor-api-key
      description: API key passed in the header

````