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

# Create Memory

> Create a new memory.

Requires CREATE permission on memory resources.



## OpenAPI

````yaml https://analyst.heyhumm.ai/api/openapi.json post /memories
openapi: 3.1.0
info:
  title: Analyst API
  description: API for the Analyst service with proper organization-scoped permissions
  version: 1.0.0
servers:
  - url: https://analyst.heyhumm.ai
security: []
paths:
  /memories:
    post:
      tags:
        - memories
      summary: Create Memory
      description: |-
        Create a new memory.

        Requires CREATE permission on memory resources.
      operationId: create_memory_memories_post
      parameters:
        - name: organization_id
          in: query
          required: true
          schema:
            type: string
            title: Organization Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MemoryCreate'
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MemoryResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    MemoryCreate:
      properties:
        type:
          $ref: '#/components/schemas/MemoryType'
        scope:
          $ref: '#/components/schemas/MemoryScope'
          default: organization
        content:
          type: string
          title: Content
          description: Memory content as markdown text that you want Humm to store.
        quality_score:
          type: number
          maximum: 1
          minimum: 0
          title: Quality Score
          description: >-
            Confidence score from 0.0 to 1.0 indicating how trustworthy this
            memory is.
          example: 0.9
        status:
          $ref: '#/components/schemas/MemoryStatus'
          default: pending_review
        thread_id:
          type: string
          format: uuid
          title: Thread Id
          description: Thread UUID where this memory was observed or extracted.
          example: 33333333-3333-3333-3333-333333333333
        organization_id:
          type: string
          format: uuid
          title: Organization Id
          description: >-
            Organization UUID for the tenant that owns this memory. For POST
            /memories, this must also match the organization_id query parameter.
          example: 22222222-2222-2222-2222-222222222222
        user_id:
          type: string
          format: uuid
          title: User Id
          description: User UUID associated with the source thread or memory author.
          example: 44444444-4444-4444-4444-444444444444
        extraction_reasoning:
          type: string
          title: Extraction Reasoning
          description: Reasoning for extraction
          default: ''
        tags:
          items:
            type: string
          type: array
          title: Tags
          description: Optional tags
        reviewed_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Reviewed At
        reviewed_by:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Reviewed By
        embedding:
          anyOf:
            - items:
                type: number
              type: array
            - type: 'null'
          title: Embedding
          description: Vector embedding (1536 dimensions)
        objective_embedding:
          anyOf:
            - items:
                type: number
              type: array
            - type: 'null'
          title: Objective Embedding
          description: Objective-only vector embedding (1536 dimensions)
      type: object
      required:
        - type
        - content
        - quality_score
        - thread_id
        - organization_id
        - user_id
      title: MemoryCreate
      description: Create memory model.
    MemoryResponse:
      properties:
        type:
          $ref: '#/components/schemas/MemoryType'
        scope:
          $ref: '#/components/schemas/MemoryScope'
          default: organization
        content:
          type: string
          title: Content
          description: Memory content as markdown text that you want Humm to store.
        quality_score:
          type: number
          maximum: 1
          minimum: 0
          title: Quality Score
          description: >-
            Confidence score from 0.0 to 1.0 indicating how trustworthy this
            memory is.
        status:
          $ref: '#/components/schemas/MemoryStatus'
          default: pending_review
        thread_id:
          type: string
          format: uuid
          title: Thread Id
          description: Thread UUID where this memory was observed or extracted.
        organization_id:
          type: string
          format: uuid
          title: Organization Id
          description: >-
            Organization UUID for the tenant that owns this memory. For POST
            /memories, this must also match the organization_id query parameter.
        user_id:
          type: string
          format: uuid
          title: User Id
          description: User UUID associated with the source thread or memory author.
        extraction_reasoning:
          type: string
          title: Extraction Reasoning
          description: Reasoning for extraction
          default: ''
        tags:
          items:
            type: string
          type: array
          title: Tags
          description: Optional tags
        reviewed_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Reviewed At
        reviewed_by:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Reviewed By
        id:
          type: string
          format: uuid
          title: Id
        created_at:
          type: string
          format: date-time
          title: Created At
        updated_at:
          type: string
          format: date-time
          title: Updated At
      type: object
      required:
        - type
        - content
        - quality_score
        - thread_id
        - organization_id
        - user_id
        - id
        - created_at
        - updated_at
      title: MemoryResponse
      description: Response model for memory.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    MemoryType:
      type: string
      enum:
        - procedural
        - factual
        - contextual
      title: MemoryType
      description: Types of memories that can be extracted.
    MemoryScope:
      type: string
      enum:
        - organization
        - user
      title: MemoryScope
      description: Scope of memory applicability.
    MemoryStatus:
      type: string
      enum:
        - pending_review
        - approved
        - rejected
      title: MemoryStatus
      description: Memory review status.
    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:
    HTTPBearer:
      type: http
      scheme: bearer

````