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

# Create Memory Source

> Create a new memory source for an agent



## OpenAPI

````yaml /api-reference/openapi.json post /v1/bot/source/create
openapi: 3.0.0
info:
  title: BoostGPT API
  version: 1.0.0
  description: API for managing AI agents with memory capabilities
servers:
  - url: https://api.boostgpt.co
    description: Production server
security:
  - BearerAuth: []
tags:
  - name: Agent
    description: Operations for managing AI agents
  - name: Memory
    description: Operations for managing agent memory sources
  - name: Chat
    description: Operations for chatting with agents and managing conversations
  - name: Subscribers
    description: Operations for managing subscribers and leads
  - name: Tools
    description: Operations for managing agent tools and MCP server integrations
  - name: Analytics
    description: Operations for retrieving agent statistics and analytics
  - name: Heartbeat
    description: Operations for managing autonomous agent scheduling and execution
  - name: User Memory
    description: Operations for managing per-user memory entries
  - name: Email
    description: Operations for managing agent email functionality
  - name: Triggers
    description: Operations for firing proactive agent trigger events
  - name: CRM
    description: >-
      Operations for managing agent CRM contacts, pipelines, deals, follow-ups,
      and reports
  - name: Workflows
    description: Operations for managing agent workflow automations
  - name: Calendar
    description: Operations for managing agent calendar settings, availability, and events
  - name: Workspace
    description: Operations for managing agent workspaces and files
paths:
  /v1/bot/source/create:
    post:
      tags:
        - Memory
      summary: Create Memory Source
      description: Create a new memory source for an agent
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateMemorySourceRequest'
      responses:
        '200':
          description: Memory source created successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MemorySourceResponse'
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    CreateMemorySourceRequest:
      type: object
      required:
        - project_id
        - bot_id
        - title
        - type
        - source
      properties:
        project_id:
          type: string
          description: The project ID
        bot_id:
          type: string
          description: The agent ID
        title:
          type: string
          description: Title of the memory source
        description:
          type: string
          description: Description of the memory source
        tags:
          type: array
          items:
            type: string
          description: Tags for categorizing the memory source
        type:
          type: string
          description: Type of memory source (e.g., 'document', 'url', 'text')
        source:
          type: string
          description: The actual source content or URL
        forget_after:
          type: string
          description: Time duration after which to forget this source
          enum:
            - 1 day
            - 1 week
            - 2 weeks
            - 1 month
            - 3 months
            - 6 months
            - 1 year
            - never
        sync_frequency:
          type: string
          description: How often to sync this source
          enum:
            - never
            - weekly
            - monthly
    MemorySourceResponse:
      type: object
      properties:
        source:
          type: object
          description: Memory source details
          properties:
            id:
              type: string
              description: Memory source ID
            uuid:
              type: string
              description: Memory source unique identifier
            title:
              type: string
              description: Title of the memory source
            description:
              type: string
              description: Description of the memory source
            source:
              type: string
              description: The source URL or origin
            content:
              type: string
              description: The actual content or URL to fetch
            type:
              type: string
              description: Type of memory source (e.g., 'website', 'document', 'text')
            forget_after:
              type: string
              description: Forget duration setting (e.g., 'never', '30d')
            sync_frequency:
              type: string
              description: Sync frequency setting (e.g., 'never', 'daily', 'weekly')
            links:
              type: array
              description: Extracted links from the source
              items:
                type: object
                properties:
                  url:
                    type: string
                    description: Link URL
                  title:
                    type: string
                    description: Page title
                  tokens:
                    type: integer
                    description: Number of tokens in the page content
                  favicon:
                    type: string
                    description: Favicon URL
            tags:
              type: array
              items:
                type: string
              description: Tags associated with the source
            tokens:
              type: integer
              description: Total number of tokens across all content
            status:
              type: string
              description: Processing status (e.g., 'success', 'pending', 'failed')
            synced_at:
              type: string
              format: date-time
              nullable: true
              description: Last sync timestamp
            forget_after_at:
              type: string
              format: date-time
              nullable: true
              description: Timestamp when the source will be forgotten
            created_at:
              type: string
              format: date-time
              description: Creation timestamp
            updated_at:
              type: string
              format: date-time
              description: Last update timestamp
    Error:
      type: object
      properties:
        error:
          type: string
          description: Error message
        code:
          type: string
          description: Error code
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: Enter your API key

````