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

> Returns all active analysis elements for your team (e.g., "Budget Confirmation", "Competitive Mention"). Elements are the specific things a slice evaluates in your calls.

<Tip>Use the `key` values from this response as `elementKeys` when searching evidence across runs.</Tip>


## OpenAPI

````yaml /api/openapi.yaml get /api/public/v1/elements
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/elements:
    get:
      tags:
        - Reference Data
      summary: List elements
      description: >-
        Returns all active analysis elements for your team (e.g., "Budget
        Confirmation", "Competitive Mention"). Elements are the specific things
        a slice evaluates in your calls.
      operationId: listElements
      responses:
        '200':
          description: Team-scoped elements
          content:
            application/json:
              schema:
                type: object
                required:
                  - data
                properties:
                  data:
                    type: object
                    required:
                      - elements
                    properties:
                      elements:
                        type: array
                        items:
                          $ref: '#/components/schemas/PublicElementResponse'
        '401':
          $ref: '#/components/responses/Unauthorized'
      security:
        - bearerAuth: []
components:
  schemas:
    PublicElementResponse:
      type: object
      required:
        - key
        - label
        - description
        - status
      properties:
        key:
          type: string
          example: budget_confirmation
        label:
          type: string
          example: Budget Confirmation
        description:
          type: string
          example: Prospect confirms available budget.
        status:
          type: string
          example: main
    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

````