Skip to main content
POST
/
v1
/
bot
/
source
/
create
Create Memory Source
curl --request POST \
  --url https://api.boostgpt.co/v1/bot/source/create \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "project_id": "<string>",
  "bot_id": "<string>",
  "title": "<string>",
  "type": "<string>",
  "source": "<string>",
  "description": "<string>",
  "tags": [
    "<string>"
  ],
  "forget_after": "1 day",
  "sync_frequency": "never"
}
'
{
  "source": {
    "id": "<string>",
    "uuid": "<string>",
    "title": "<string>",
    "description": "<string>",
    "source": "<string>",
    "content": "<string>",
    "type": "<string>",
    "forget_after": "<string>",
    "sync_frequency": "<string>",
    "links": [
      {
        "url": "<string>",
        "title": "<string>",
        "tokens": 123,
        "favicon": "<string>"
      }
    ],
    "tags": [
      "<string>"
    ],
    "tokens": 123,
    "status": "<string>",
    "synced_at": "2023-11-07T05:31:56Z",
    "forget_after_at": "2023-11-07T05:31:56Z",
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z"
  }
}

Authorizations

Authorization
string
header
required

Enter your API key

Body

application/json
project_id
string
required

The project ID

bot_id
string
required

The agent ID

title
string
required

Title of the memory source

type
string
required

Type of memory source (e.g., 'document', 'url', 'text')

source
string
required

The actual source content or URL

description
string

Description of the memory source

tags
string[]

Tags for categorizing the memory source

forget_after
enum<string>

Time duration after which to forget this source

Available options:
1 day,
1 week,
2 weeks,
1 month,
3 months,
6 months,
1 year,
never
sync_frequency
enum<string>

How often to sync this source

Available options:
never,
weekly,
monthly

Response

Memory source created successfully

source
object

Memory source details