Skip to main content
POST
/
add
Add Content
curl --request POST \
  --url https://ragapi.sno.ai/v1/add \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "content": "<string>",
  "spaces": [
    "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  ],
  "id": "<string>",
  "metadata": {},
  "images": [
    "<string>"
  ],
  "prefetched": {
    "contentToVectorize": "<string>",
    "contentToSave": "<string>",
    "title": "<string>",
    "type": "page",
    "description": "<string>",
    "ogImage": "<string>"
  }
}
'
{
  "message": "<string>",
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "type": "page"
}

Authorizations

Authorization
string
header
required

Enter your API key as a Bearer token. Example: 'Bearer YOUR_API_KEY'

Body

application/json
content
string
required

URL or plain text content

spaces
string<uuid>[]

Array of space IDs to associate content with

id
string

Custom ID for the content

metadata
object

Arbitrary metadata

images
string<url>[]
prefetched
object

Response

Content added successfully

message
string
id
string<uuid>
type
enum<string>
Available options:
page,
tweet,
note,
document