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

# Get prompt

> Returns one team-owned prompt as separate sections (`context`, `firstMessage`, `followUps` for Messages, or `comment` for Comment), plus update guidelines. Does not return a raw content blob. `list_prompts` returns ids only.

Returns one team-owned prompt as separate sections, not a raw JSON blob.

For Messages prompts: `context`, `firstMessage`, and `followUps` (`[{ prompt, delay }]`). `delay` is days after the previous message (1-30). Max 3 follow-ups.

For Comment prompts: `comment`.

Also returns `guidelines` with the schema, mandatory `{{variables}}`, and missing coverage.

`GET /prompts` lists ids only. Call this endpoint before updating a prompt.


## OpenAPI

````yaml GET /prompts/{id}
openapi: 3.1.0
info:
  title: Kakiyo API
  description: API for automating LinkedIn outreach campaigns with AI-powered conversations
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://api.kakiyo.com/v1
security:
  - bearerAuth: []
paths:
  /prompts/{id}:
    get:
      summary: Get Prompt
      description: >-
        Returns one team-owned prompt as separate sections (`context`,
        `firstMessage`, `followUps` for Messages, or `comment` for Comment),
        plus update guidelines. Does not return a raw content blob.
        `list_prompts` returns ids only.
      operationId: getPrompt
      parameters:
        - name: id
          in: path
          description: ID of the prompt
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Prompt sections and guidelines
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PromptDetail'
        '401':
          description: Authentication failed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Prompt not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    PromptDetail:
      type: object
      properties:
        id:
          type: string
          example: prompt_987654321
        name:
          type: string
          example: Sales Outreach Sequence
        type:
          type: string
          enum:
            - Messages
            - Comment
          example: Messages
        model:
          type: string
          example: model_claude3
        followUpEnabled:
          type: boolean
          description: Whether follow-ups are sent. Does not delete stored followUps.
          example: true
        variables:
          type: array
          items:
            type: string
          description: Custom variable names used in this prompt
        context:
          type: string
          description: Messages only. Role and mission. Counts toward mandatory variables.
        firstMessage:
          type: string
          description: >-
            Messages only. First LinkedIn DM instructions. Counts toward
            mandatory variables.
        followUps:
          type: array
          maxItems: 3
          items:
            $ref: '#/components/schemas/PromptFollowUp'
          description: Messages only. Max 3 items.
        comment:
          type: string
          description: Comment prompts only.
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
        guidelines:
          type: object
          description: Schema, mandatory variables, and update rules for this prompt
          additionalProperties: true
    Error:
      type: object
      properties:
        error:
          type: string
          example: validation_error
        message:
          type: string
          example: The request parameters failed validation
        details:
          type: array
          items:
            type: object
            properties:
              field:
                type: string
                example: name
              message:
                type: string
                example: The name field is required
    PromptFollowUp:
      type: object
      required:
        - prompt
        - delay
      properties:
        prompt:
          type: string
          description: Follow-up instruction text
          example: If they didn't reply, send a short bump.
        delay:
          type: integer
          minimum: 1
          maximum: 30
          description: Days after the previous message
          example: 3
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````