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

# List slices

> Returns all AI analysis templates available to your team, including each slice's key, title, business objective, and the elements it evaluates.

**Related:** [Get slice details](/api-reference/slices/get-slice-details) · [Preview matched call count](/api-reference/slices/preview-matched-call-count)


<Tip>This is usually your first API call. Browse the available slices, then use [Get slice details](/api-reference/slices/get-slice-details) to see the full output schema before running one.</Tip>


## OpenAPI

````yaml /api/openapi.yaml get /api/public/v1/slices
openapi: 3.1.0
info:
  title: OnePerfectSlice API
  version: 1.0.0
  description: |
    Programmatic access to OnePerfectSlice. Authenticate with a team-scoped
    API key (Bearer sk_...) obtained from Org Settings → API Keys.
servers:
  - url: https://app.oneperfectslice.ai
    description: Production
security:
  - bearerAuth: []
paths:
  /api/public/v1/slices:
    get:
      tags:
        - Slices
      summary: List slices
      description: >
        Returns all AI analysis templates available to your team, including each
        slice's key, title, business objective, and the elements it evaluates.


        **Related:** [Get slice
        details](/api-reference/slices/get-slice-details) · [Preview matched
        call count](/api-reference/slices/preview-matched-call-count)
      operationId: listSlices
      responses:
        '200':
          description: Slice list
          content:
            application/json:
              schema:
                type: object
                required:
                  - data
                properties:
                  data:
                    type: object
                    required:
                      - slices
                    properties:
                      slices:
                        type: array
                        items:
                          $ref: '#/components/schemas/SliceSummary'
        '401':
          $ref: '#/components/responses/Unauthorized'
      security:
        - bearerAuth: []
components:
  schemas:
    SliceSummary:
      type: object
      required:
        - key
        - title
        - objective
        - description
        - elementKeys
      properties:
        key:
          type: string
          description: Unique slice identifier
          example: high_intent_deals
        title:
          type: string
          description: Human-readable slice name
          example: High-Intent Deals
        objective:
          type: string
          description: Business objective category
          enum:
            - pipeline
            - deals
            - expand
            - product
          example: pipeline
        description:
          type: string
          description: What this slice surfaces
          example: Surfaces deals showing strong buying signals.
        elementKeys:
          type: array
          items:
            type: string
          description: Element keys this slice evaluates
          example:
            - intent_signal
            - budget_confirmation
    ApiError:
      type: object
      description: Standard error envelope for all public API error responses
      required:
        - error
      properties:
        error:
          type: object
          required:
            - code
            - message
          properties:
            code:
              type: string
              description: Machine-readable UPPER_SNAKE_CASE error code
              example: INVALID_TOKEN
            message:
              type: string
              description: Human-readable error description
              example: Token is invalid
            details:
              type: object
              description: Optional additional error context
              additionalProperties: true
  responses:
    Unauthorized:
      description: Authentication failed
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
          examples:
            missingToken:
              value:
                error:
                  code: MISSING_TOKEN
                  message: Authorization header with Bearer token is required
            invalidToken:
              value:
                error:
                  code: INVALID_TOKEN
                  message: Token is invalid
            tokenRevoked:
              value:
                error:
                  code: TOKEN_REVOKED
                  message: Token has been revoked
            tokenExpired:
              value:
                error:
                  code: TOKEN_EXPIRED
                  message: Token has expired
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: API key with sk_ prefix. Create one in Org Settings → API Keys.
      x-default: sk_your_api_key

````