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

# Generate Core Features

> Generate named-capability core feature analysis from source materials using AI. Each generated core feature is attached to the provided parent offering.



## OpenAPI

````yaml post /api/v2/core-feature/generate
openapi: 3.0.0
info:
  version: 1.0.0
  title: Octave API
  description: API for Octave workspace management and AI-powered content generation
servers:
  - url: https://app.octavehq.com
security:
  - ApiKeyAuth: []
paths:
  /api/v2/core-feature/generate:
    post:
      tags:
        - Core Feature
      summary: Generate Core Features
      description: >-
        Generate named-capability core feature analysis from source materials
        using AI. Each generated core feature is attached to the provided parent
        offering.
      operationId: generateCoreFeatures
      requestBody:
        description: Core Feature generation input with source materials
        content:
          application/json:
            schema:
              type: object
              properties:
                primaryOfferingOId:
                  type: string
                  minLength: 1
                  description: >-
                    Parent Offering (Product, Service, or Solution) the
                    generated core features belong to. A core feature must have
                    exactly one parent offering, so this is required.
                  example: px_123456
                coreFeatures:
                  $ref: '#/components/schemas/CoreFeatureGenerationInputs'
                brandVoiceOId:
                  type: string
                  description: Brand voice oId to apply to generated core features
                  example: bv_123456
              required:
                - primaryOfferingOId
                - coreFeatures
      responses:
        '200':
          description: Core Features generated successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  _metadata:
                    $ref: '#/components/schemas/Metadata'
                  data:
                    type: array
                    items:
                      type: object
                      properties:
                        oId:
                          type: string
                        createdAt:
                          type: string
                          nullable: true
                          format: date-time
                        updatedAt:
                          type: string
                          nullable: true
                          format: date-time
                        deletedAt:
                          type: string
                          nullable: true
                          format: date-time
                        archivedAt:
                          type: string
                          nullable: true
                          format: date-time
                        name:
                          type: string
                        internalName:
                          type: string
                        description:
                          type: string
                        active:
                          type: boolean
                          default: true
                        data:
                          type: object
                          nullable: true
                          properties:
                            whatItDoes:
                              type: array
                              items:
                                type: string
                            howItWorks:
                              type: array
                              items:
                                type: string
                            whatItImpacts:
                              type: array
                              items:
                                type: string
                            whyThisExists:
                              type: array
                              items:
                                type: string
                            customFields:
                              $ref: '#/components/schemas/CustomDataFields'
                            additionalProperties:
                              type: object
                              additionalProperties:
                                anyOf:
                                  - type: string
                                  - type: array
                                    items:
                                      type: string
                                  - type: number
                                  - type: boolean
                          required:
                            - whatItDoes
                            - howItWorks
                            - whatItImpacts
                            - whyThisExists
                        user:
                          type: object
                          nullable: true
                          properties:
                            oId:
                              type: string
                              nullable: true
                            firstName:
                              type: string
                              nullable: true
                              description: >-
                                The first name of the user who created the core
                                feature
                              example: John
                            lastName:
                              type: string
                              nullable: true
                              description: >-
                                The last name of the user who created the core
                                feature
                              example: Doe
                        workspace:
                          type: object
                          nullable: true
                          properties:
                            oId:
                              type: string
                              nullable: true
                        offering:
                          type: object
                          nullable: true
                          properties:
                            oId:
                              type: string
                            type:
                              type: string
                              enum:
                                - product
                                - service
                                - solution
                            name:
                              type: string
                              nullable: true
                          required:
                            - oId
                            - type
                      required:
                        - oId
                        - createdAt
                        - updatedAt
                        - name
                        - internalName
                        - description
                required:
                  - _metadata
                  - data
        '400':
          description: Bad request - invalid sources or unable to process
          content:
            application/json:
              schema:
                type: object
                properties:
                  _metadata:
                    $ref: '#/components/schemas/Metadata'
                  message:
                    type: string
                required:
                  - _metadata
                  - message
        '404':
          description: Offering not found
          content:
            application/json:
              schema:
                type: object
                properties:
                  _metadata:
                    $ref: '#/components/schemas/Metadata'
                  message:
                    type: string
                required:
                  - _metadata
                  - message
      deprecated: false
components:
  schemas:
    CoreFeatureGenerationInputs:
      type: array
      items:
        type: object
        properties:
          name:
            type: string
            description: >-
              Optional name for the core feature - if provided, will be used as
              the entity name
            example: Real-time Deal Risk Alerts
          sources:
            type: array
            items:
              type: object
              properties:
                type:
                  type: string
                  enum:
                    - TEXT
                    - URL
                    - RESOURCE
                  description: The type of source material
                  example: TEXT
                value:
                  type: string
                  minLength: 1
                  description: The source content (text, URL, or name)
                  example: Lead generation and qualification for enterprise sales
              required:
                - type
                - value
            description: Source materials to generate the core feature analysis from
        required:
          - sources
      minItems: 1
      description: >-
        Array of core feature generation requests - each object generates one
        named capability
    Metadata:
      type: object
      properties:
        usage:
          type: number
          default: 0
          example: 0
          description: API usage
        requestId:
          type: string
          example: requestId
          description: Request ID
        message:
          type: string
          example: message
          description: Message
        timestamp:
          type: string
          example: '2021-01-01T00:00:00.000Z'
          description: Timestamp
      required:
        - requestId
        - timestamp
    CustomDataFields:
      type: array
      items:
        $ref: '#/components/schemas/CustomDataFieldItem'
    CustomDataFieldItem:
      type: object
      properties:
        title:
          type: string
        value:
          type: array
          items:
            type: string
      required:
        - title
        - value
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: api_key

````