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"
}
}Create a new memory source for an agent
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"
}
}Enter your API key
The project ID
The agent ID
Title of the memory source
Type of memory source (e.g., 'document', 'url', 'text')
The actual source content or URL
Description of the memory source
Tags for categorizing the memory source
Time duration after which to forget this source
1 day, 1 week, 2 weeks, 1 month, 3 months, 6 months, 1 year, never How often to sync this source
never, weekly, monthly Memory source created successfully
Memory source details
Show child attributes
Was this page helpful?