LLM-readable documentation index

Create a Memory Entry

Hand off to an LLM

Create an entry in a bucket. The attributes must match the schema of the kind version named in the body, and the kind version's file rule decides whether the entry holds a file.

Send the body as JSON, with the file base64-encoded in file.inputContent, or as multipart form data, with the file in the file part. An entry is write-once: no request changes it after it is saved.

POST
/v3/structured-memory/buckets/{bucketKey}/entries
x-api-key<token>

Authenticate using API Key in request header

In: header

Path Parameters

bucketKey*string

Key of the bucket that holds the entry.

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

curl -X POST "https://api.bem.ai/v3/structured-memory/buckets/string/entries" \  -H "Content-Type: application/json" \  -d '{    "kindName": "invoice",    "kindVersionNum": 1,    "key": "INV-2041",    "attributes": {      "invoiceNumber": "INV-2041",      "totalAmount": 1250.5    }  }'
{
  "id": "string",
  "key": "string",
  "bucketKey": "string",
  "kindName": "string",
  "kindVersionNum": 0,
  "attributes": {},
  "producingCallID": "string",
  "file": {
    "name": "string",
    "inputType": "pdf",
    "downloadURL": "http://example.com"
  },
  "createdAt": "2019-08-24T14:15:22Z"
}
{
  "error": "string",
  "code": "string"
}
{
  "error": "string",
  "code": "string"
}
{
  "error": "string",
  "code": "string"
}

See also