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

# List Scripts

> List all scripts for your organization. Use include_tasks=true to include full task details (v1 parity). Deleted scripts are omitted unless include_deleted=true — a synchronising client needs them, otherwise a script that disappears from this list is indistinguishable from one that never existed.

Returns all interview scripts for your organization. Scripts define the structure and questions used during AI phone screen interviews.

Results are not paginated. Pass `include_tasks=true` to include each script's `tasks` (same shape as [Get Script](/docs/api-reference/scripts/get-script.md)); without it, `tasks` is omitted. Deleted scripts are left out unless you pass `include_deleted=true`, in which case each deleted script carries a non-null `deleted_at`.

```bash cURL theme={null}
curl https://api.classet.ai/v2/scripts \
  -H "X-API-KEY: your-api-key"
```

```json 200 theme={null}
{
  "data": [
    {
      "id": 1,
      "name": "Standard Screen",
      "description": "Default screening script for trade roles",
      "default": true,
      "deleted_at": null
    },
    {
      "id": 2,
      "name": "Senior Technician Screen",
      "description": "Extended screening for senior-level candidates",
      "default": false,
      "deleted_at": null
    }
  ]
}
```


## OpenAPI

````yaml GET /v2/scripts
openapi: 3.1.0
info:
  title: Classet API
  version: 2.0.3
  description: >-
    AI-powered recruiting and phone screening API.


    **API key scopes.** `read` covers every GET; any other method needs `write`
    (403 `insufficient_scope`); starting or stopping an interview also needs
    `interviews:send`. A branch-limited key sees and writes only jobs in its
    branches (not jobs with no branch) and their candidates, applications and
    calls; anything outside is a 404. An organization-group key is read-only
    across every organization in its group. Branch-limited and group keys cannot
    use organization configuration (scripts, knowledge, webhooks, message
    automations, agent settings, AI generation, organization): 403
    `restricted_key_unsupported`. `GET /v2/me` reports what the calling key can
    do.
servers:
  - url: https://api.classet.ai
    description: Production
  - url: http://localhost:8081
    description: Local development
security:
  - ApiKeyAuth: []
paths:
  /v2/scripts:
    get:
      tags:
        - Scripts
      summary: List interview scripts
      description: >-
        List all scripts for your organization. Use include_tasks=true to
        include full task details (v1 parity). Deleted scripts are omitted
        unless include_deleted=true — a synchronising client needs them,
        otherwise a script that disappears from this list is indistinguishable
        from one that never existed.
      parameters:
        - schema:
            type: string
            enum:
              - 'true'
              - 'false'
            description: Set to "true" to include tasks in the response
            example: 'false'
          required: false
          description: Set to "true" to include tasks in the response
          name: include_tasks
          in: query
        - schema:
            type: string
            enum:
              - 'true'
              - 'false'
            description: >-
              Set to "true" to include deleted scripts. Each carries a non-null
              `deleted_at`, so a client mirroring this list can retire its own
              copy.
            example: 'false'
          required: false
          description: >-
            Set to "true" to include deleted scripts. Each carries a non-null
            `deleted_at`, so a client mirroring this list can retire its own
            copy.
          name: include_deleted
          in: query
      responses:
        '200':
          description: Scripts
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/ScriptListItem'
                required:
                  - data
        '500':
          description: Server error
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    example: Resource not found
                  code:
                    type: string
                    enum:
                      - not_found
                      - validation_error
                      - unauthorized
                      - forbidden
                      - insufficient_scope
                      - restricted_key_unsupported
                      - branch_out_of_scope
                      - key_misconfigured
                      - quota_exceeded
                      - rate_limited
                      - rate_limit_unavailable
                      - conflict
                      - idempotency_key_reuse
                      - candidate_opted_out
                      - recently_contacted
                      - request_in_progress
                      - unprocessable
                      - bad_request
                      - payload_too_large
                      - internal_error
                      - service_unavailable
                    example: not_found
                    description: Stable machine-readable error code.
                  request_id:
                    type: string
                    example: 9f2c1d7e-4a3b-4c8d-9e0f-1a2b3c4d5e6f
                    description: >-
                      Request ID, also echoed in the X-Request-Id response
                      header. Include it when reporting issues.
                required:
                  - error
      security:
        - ApiKeyAuth: []
components:
  schemas:
    ScriptListItem:
      allOf:
        - $ref: '#/components/schemas/ScriptSummary'
        - type: object
          properties:
            tasks:
              type: array
              items:
                $ref: '#/components/schemas/ScriptTask'
              description: Present only when include_tasks=true.
            deleted_at:
              type: string
              nullable: true
              description: >-
                Non-null when the script has been deleted. Only ever non-null
                with include_deleted=true.
          required:
            - deleted_at
      description: Script summary
    ScriptSummary:
      type: object
      properties:
        id:
          type: integer
          description: The script ID.
        name:
          type: string
          nullable: true
          description: The name of the script.
        description:
          type: string
          nullable: true
          description: A description of the script's purpose.
        default:
          type: boolean
          description: Whether this is the default script for new jobs.
      required:
        - id
        - name
        - description
        - default
      description: Script summary
    ScriptTask:
      type: object
      properties:
        id:
          type: integer
          description: The task ID.
        task_id:
          type: integer
          nullable: true
        name:
          type: string
          nullable: true
          description: Display name of the task.
        short_name:
          type: string
          nullable: true
          description: Short identifier for the task.
        description:
          type: string
          nullable: true
          description: Description of what the task covers.
        regular_description:
          type: string
          nullable: true
          description: >-
            Human-readable description of what this task covers during the
            interview
        order:
          type: integer
          nullable: true
          description: Position in the interview flow (0-indexed).
        questions:
          nullable: true
          description: List of questions to ask during this task.
        qualifying_questions:
          nullable: true
          description: >-
            Questions with pass/fail criteria. Each has `question` (string) and
            `disqualifyIf` (string) fields.
        instructions:
          type: string
          nullable: true
          description: Additional instructions for the AI agent during this task.
        removed:
          type: boolean
          nullable: true
          description: Whether this task has been soft-deleted from the script.
        needed_variables:
          nullable: true
          description: >-
            Array of variable names this task supports (e.g. "task.questions",
            "qualifying_questions"). Use to determine which fields can be
            updated.
      required:
        - id
        - task_id
        - name
        - short_name
        - description
        - regular_description
        - order
        - instructions
        - removed
      description: Interview script task
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-KEY
      description: Your Classet API key. Create and rotate keys in Settings → API.

````

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