# Create Guidance

POST https://fai.buildwithfern.com/guidance/{domain}/create
Content-Type: application/json

Reference: https://buildwithfern.com/learn/docs/ai-features/ask-fern/api-reference/guidance/create-guidance

## OpenAPI Specification

```yaml
openapi: 3.1.1
info:
  title: Create Guidance
  version: endpoint_guidance.create_guidance
paths:
  /guidance/{domain}/create:
    post:
      operationId: create-guidance
      summary: Create Guidance
      tags:
        - - subpackage_guidance
      parameters:
        - name: domain
          in: path
          required: true
          schema:
            type: string
        - name: Authorization
          in: header
          description: >-
            Bearer authentication of the form `Bearer <token>`, where token is
            your auth token.
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateGuidanceResponse'
        '422':
          description: Validation Error
          content: {}
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateGuidanceRequest'
components:
  schemas:
    CreateGuidanceRequest:
      type: object
      properties:
        context:
          type: array
          items:
            type: string
          description: >-
            The context of the guidance document, as a list of strings, that
            will be indexed. Each string will be vectorized separately to
            generate a separate record.
        document:
          type: string
          description: >-
            The content of the guidance document that will be returned to Ask
            Fern during Ask Fern retrieval.
      required:
        - context
        - document
    CreateGuidanceResponse:
      type: object
      properties:
        guidance_id:
          type: string
          description: The unique identifier of the created guidance document
      required:
        - guidance_id

```