> ## 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.

# Create Profile Session

> Starts a short-lived browser session bound to a saved profile (persisting cookies and
storage back to the profile on termination). Returns CDP and live-view URLs.




## OpenAPI

````yaml /openapi.yaml post /v1/identities/profile-sessions
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/identities/profile-sessions:
    post:
      tags:
        - Profiles
        - Sessions
      summary: Create Profile Session
      description: >
        Starts a short-lived browser session bound to a saved profile
        (persisting cookies and

        storage back to the profile on termination). Returns CDP and live-view
        URLs.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - profile_name
                - initial_url
              properties:
                profile_name:
                  type: string
                  description: Name of the profile to load and persist.
                initial_url:
                  type: string
                  description: URL to open when the session starts.
      responses:
        '200':
          description: Profile session created successfully.
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    properties:
                      id:
                        type: string
                      cdp_url:
                        type: string
                      live_view_url:
                        type: string
        '400':
          description: Invalid request.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FlatErrorResponse'
        '401':
          description: No default API key available for the team.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FlatErrorResponse'
        '404':
          description: Profile not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FlatErrorResponse'
        '500':
          description: Failed to create profile session.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FlatErrorResponse'
      security:
        - api_key_header: []
components:
  schemas:
    FlatErrorResponse:
      type: object
      properties:
        error:
          type: string
          description: Human-readable error message.
        code:
          type: integer
          description: HTTP status code.
      required:
        - error
  securitySchemes:
    api_key_header:
      type: apiKey
      in: header
      name: anchor-api-key
      description: API key passed in the header

````