LLM-readable documentation index

Create a Memory Kind

Hand off to an LLM

Create a kind and its version 1.

POST
/v3/structured-memory/kinds
x-api-key<token>

Authenticate using API Key in request header

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

curl -X POST "https://api.bem.ai/v3/structured-memory/kinds" \  -H "Content-Type: application/json" \  -d '{    "name": "invoice",    "attributesSchema": {      "type": "object",      "properties": {        "invoiceNumber": {          "type": "string"        },        "totalAmount": {          "type": "number"        }      },      "required": [        "invoiceNumber",        "totalAmount"      ]    }  }'
{
  "id": "string",
  "name": "string",
  "latestVersionNum": 0,
  "createdAt": "2019-08-24T14:15:22Z",
  "updatedAt": "2019-08-24T14:15:22Z"
}
{
  "error": "string",
  "code": "string"
}
{
  "error": "string",
  "code": "string"
}

See also