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

# Check scenario access

> Check if a user has access to a specific scenario and what permission level they have.




## OpenAPI

````yaml /api-reference/openapi.yaml get /scenarios/{scenario_id}/access
openapi: 3.0.3
info:
  title: Exec API
  version: '1.0'
  description: >
    REST API for programmatic access to your Exec workspace.


    Use the Exec API to read workspace data, list members, retrieve group
    information,

    and create interactive scenario creation sessions.


    ## Authentication

    All requests require a valid API key passed in the Authorization header:

    ```

    Authorization: Bearer exec_live_...

    ```


    Create API keys in your workspace settings under **Settings > API**.
servers:
  - url: https://api.exec.com/rest/v1
    description: Production
security:
  - bearerAuth: []
tags:
  - name: Knowledge Hub - Folders
    x-group: Knowledge Hub
  - name: Knowledge Hub - Pages
    x-group: Knowledge Hub
  - name: Knowledge Hub - Sources
    x-group: Knowledge Hub
paths:
  /scenarios/{scenario_id}/access:
    get:
      tags:
        - Scenarios
      summary: Check scenario access
      description: >
        Check if a user has access to a specific scenario and what permission
        level they have.
      operationId: checkScenarioAccess
      parameters:
        - name: scenario_id
          in: path
          required: true
          description: Scenario identifier
          schema:
            type: string
        - name: user_email
          in: query
          required: true
          description: Email of the user to check access for
          schema:
            type: string
            format: email
            example: jane@acme.com
      responses:
        '200':
          description: User's permission levels for the scenario
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ScenarioAccessResponse'
              example:
                user_email: jane@acme.com
                scenario_id: s1c2e3n4a5r6
                permissions:
                  can_view: true
                  can_share: true
                  can_monitor: false
                  can_edit: false
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
components:
  schemas:
    ScenarioAccessResponse:
      type: object
      properties:
        user_email:
          type: string
          format: email
          description: Email of the user checked
        scenario_id:
          type: string
          description: Scenario identifier
        permissions:
          type: object
          properties:
            can_view:
              type: boolean
              description: Whether the user can view the scenario
            can_share:
              type: boolean
              description: Whether the user can share the scenario
            can_monitor:
              type: boolean
              description: Whether the user can monitor sessions on this scenario
            can_edit:
              type: boolean
              description: Whether the user can edit the scenario
    ValidationErrorDetail:
      type: object
      properties:
        error:
          type: object
          properties:
            type:
              type: string
              description: Error category (e.g., "invalid_request")
            code:
              type: string
              description: Specific error code (e.g., "user_not_found")
            message:
              type: string
              description: Human-readable error message
  responses:
    BadRequest:
      description: Invalid request parameters
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ValidationErrorDetail'
          example:
            error:
              type: invalid_request
              code: invalid_pagination
              message: Invalid pagination parameters
    Unauthorized:
      description: Missing or invalid API key
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ValidationErrorDetail'
          example:
            error:
              type: authentication_error
              code: invalid_api_key
              message: Invalid or inactive API key
    NotFound:
      description: Resource not found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ValidationErrorDetail'
          example:
            error:
              type: not_found
              message: 'Scenario not found: abc123'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: |
        API key created in Settings > API.

        Format: `exec_live_` followed by 40 alphanumeric characters.

````