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

# Save a prompt

> Saves a personal prompt for this key's person, as the app's Save prompt does. Needs prompts:write and a person's own key: a prompt belongs to whoever saves it, and only they change it.



## OpenAPI

````yaml /api/statisfy-api.openapi.json post /v1/prompts
openapi: 3.1.0
info:
  description: >-
    The agent-first Statisfy API. Authenticate with an API key (`Authorization:
    Bearer stfy_live_…`), then call `GET /v1/meta/capabilities` to discover
    every operation and its schemas.
  title: Statisfy API
  version: 1.0.0
servers:
  - url: https://api.statisfy.com
    description: Production
security: []
paths:
  /v1/prompts:
    post:
      tags:
        - prompts
      summary: Save a prompt
      description: >-
        Saves a personal prompt for this key's person, as the app's Save prompt
        does. Needs prompts:write and a person's own key: a prompt belongs to
        whoever saves it, and only they change it.
      operationId: prompts_create
      requestBody:
        content:
          application/json:
            schema:
              additionalProperties: false
              properties:
                context:
                  default: global
                  description: global (Stella's home) or account (an account's page)
                  enum:
                    - global
                    - account
                  title: Context
                  type: string
                prompt:
                  description: The text that goes into the chat box
                  maxLength: 20000
                  minLength: 1
                  title: Prompt
                  type: string
                title:
                  maxLength: 255
                  minLength: 1
                  title: Title
                  type: string
              required:
                - title
                - prompt
              type: object
        required: true
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Prompt'
          description: Successful Response
      security:
        - HTTPBearer: []
components:
  schemas:
    Prompt:
      properties:
        categories:
          description: Statisfy's categories, or the workspace's tags
          items:
            type: string
          title: Categories
          type: array
        context:
          description: global (Stella's home) or account (an account's page)
          enum:
            - global
            - account
          title: Context
          type: string
        created_by:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            Who saved it, an id from GET /v1/objects/user/records; null for
            Statisfy's, or a user who is gone
          title: Created By
        editable:
          description: Whether this key's person saved it, and so may change it
          title: Editable
          type: boolean
        id:
          title: Id
          type: string
        prompt:
          description: The text that goes into the chat box when someone picks it
          title: Prompt
          type: string
        source:
          description: >-
            statisfy (shipped by Statisfy, read-only), company (saved for the
            whole workspace) or personal (saved by one person)
          enum:
            - statisfy
            - company
            - personal
          title: Source
          type: string
        title:
          title: Title
          type: string
        updated_at:
          anyOf:
            - type: string
            - type: 'null'
          description: ISO 8601 UTC
          title: Updated At
      required:
        - id
        - title
        - prompt
        - source
        - context
        - categories
        - created_by
        - editable
        - updated_at
      title: Prompt
      type: object
  securitySchemes:
    HTTPBearer:
      scheme: bearer
      type: http
      description: >-
        An API key, sent as `Authorization: Bearer stfy_live_…`. See
        [Authentication](/rest-api/authentication) for how to get one and which
        scopes it needs.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.