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

# Specs List

> List all available specs.

Retrieves a list of all available spec names or detailed information about each spec.

Parameters:
- current_org (AuthOrg): The current org making the request. Retrieved using dependency injection.
- include_all (bool, optional): Flag to include detailed information about each spec. Defaults to False.

Returns:
- Union[List[str], List[SpecInfo]]: A list of spec names or detailed information about each spec.

Raises:
- HTTPException(500): If an error occurs while fetching the specs.



## OpenAPI

````yaml get /api/specs
openapi: 3.1.0
info:
  title: Apigene
  description: Apigene API
  version: 1.0.0
  contact:
    name: Apigene Support
    url: https://app.apigene.ai
    email: support@apigene.ai
servers:
  - url: https://app.apigene.ai
security:
  - BearerAuth: []
paths:
  /api/specs:
    get:
      tags:
        - Spec
      summary: Specs List
      description: >-
        List all available specs.


        Retrieves a list of all available spec names or detailed information
        about each spec.


        Parameters:

        - current_org (AuthOrg): The current org making the request. Retrieved
        using dependency injection.

        - include_all (bool, optional): Flag to include detailed information
        about each spec. Defaults to False.


        Returns:

        - Union[List[str], List[SpecInfo]]: A list of spec names or detailed
        information about each spec.


        Raises:

        - HTTPException(500): If an error occurs while fetching the specs.
      operationId: specs_list
      parameters:
        - name: include_all
          in: query
          required: false
          schema:
            anyOf:
              - type: boolean
              - type: 'null'
            default: false
            title: Include All
        - name: only_configured
          in: query
          required: false
          schema:
            anyOf:
              - type: boolean
              - type: 'null'
            default: false
            title: Only Configured
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                anyOf:
                  - items:
                      additionalProperties: true
                      type: object
                    type: array
                  - type: array
                    items:
                      $ref: '#/components/schemas/SpecInfo'
                title: Response Specs List
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - BearerAuth: []
components:
  schemas:
    SpecInfo:
      properties:
        api_title:
          type: string
          title: Api Title
          description: The title of the API.
        api_name:
          type: string
          title: Api Name
          description: The name of the API.
        api_version:
          type: string
          title: Api Version
          description: The version of the API.
        domain_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Domain Url
          description: The domain URL of the API.
        server_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Server Url
          description: The server URL of the API.
        server_url_options:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Server Url Options
          description: A list of available server URLs for the API.
        examples:
          anyOf:
            - items: {}
              type: array
            - type: 'null'
          title: Examples
          description: List of examples associated with the API.
        llm_summary:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Llm Summary
          description: Summary information generated by LLM (Large Language Model).
        llm_app_categories:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Llm App Categories
          description: App categories generated by the LLM.
        llm_use_cases_content:
          anyOf:
            - items: {}
              type: array
            - type: 'null'
          title: Llm Use Cases Content
          description: Use case generated by the LLM.
        created_by:
          type: string
          format: email
          title: Created By
          description: Email address of the user who created the spec.
        created_at:
          type: string
          format: date-time
          title: Created At
          description: The date and time when the spec was created.
        updated_at:
          type: string
          format: date-time
          title: Updated At
          description: The date and time when the spec was last updated.
        security_info:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Security Info
          description: Information about the security configurations of the API.
        security_info_configured:
          type: boolean
          title: Security Info Configured
          description: Flag indicating whether the security information is configured.
          default: false
        operations_state:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Operations State
          description: Information about the state of each operation the spec. support.
        operations_total_count:
          anyOf:
            - type: integer
            - type: 'null'
          title: Operations Total Count
          description: Total number of operations the spec. support.
          default: 0
        operations_enabled_count:
          anyOf:
            - type: integer
            - type: 'null'
          title: Operations Enabled Count
          description: Number of operations that are enabled.
          default: 0
        common_parameters:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Common Parameters
          description: Name and values of common parameters used in the spec.
        user_input_templates:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: User Input Templates
          description: User input templates for the operations.
        global_spec:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Global Spec
          description: >-
            Flag indicating whether the spec belong to the tenant or it is a
            global one.
          default: false
        shared_security_info:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Shared Security Info
          description: >-
            Flag indicating whether the spec uses shared security info (global
            specs only).
          default: false
        agentic_metadata:
          anyOf:
            - items:
                additionalProperties: true
                type: object
              type: array
            - type: 'null'
          title: Agentic Metadata
          description: The agentic metadata of the spec.
      type: object
      required:
        - api_title
        - api_name
        - api_version
        - created_by
      title: SpecInfo
      description: Model representing information about a spec.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        JWT Authorization header using the Bearer scheme. Example:
        'Authorization: Bearer {token}'

````