palbaseDocs

Palbase ai · API

PUT/ai/memory/{namespace}/{key}

Upsert a memory record

Create or update a namespace-scoped memory record with optional metadata, vector embedding, and TTL.

Called by your server, with the project's secret key.

Path

namespacestring · requiredMemory namespace
keystring · requiredRecord key within namespace

Request body

contentstring · required
metadataobject · optional
embeddingnumber[] · optional
embedding_modelstring · optional
ttl_secondsinteger · optional
curl
curl -X PUT "https://<your-ref>.palbase.studio/ai/memory/<namespace>/<key>" \
  -H "apikey: $PALBASE_SECRET_KEY" \
  -H "content-type: application/json" \
  -d '{"content":"string"}'

Responses

200Memory record stored

400The request is malformed, or names what this module does not offer (the error names which)

401No valid credential

403A publishable key or a user's session: everything here is the project's server's, called with the secret key

404No such response, job or provider in this project

defaultAn error: the envelope names it (`error`) and explains it (`error_description`).

Operation PutMemory of ai's contract.