Skip to main content
POST
/
api
/
v1
/
memory
/
store
Store Memory
curl --request POST \
  --url https://api.promptguard.dev/api/v1/memory/store \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "agent_id": "<string>",
  "content": "<string>",
  "session_id": "<string>",
  "metadata": {},
  "importance": 0.5
}
'
{}

Authorizations

Authorization
string
header
required

API Key authentication for developer endpoints (/api/v1/*). Use format: 'Bearer pg_api_your_key_here'

Headers

x-api-key
string | null

Body

application/json

Request to store a memory entry

agent_id
string
required
content
string
required
session_id
string | null
metadata
Metadata · object
importance
number
default:0.5

Response

Successful Response

The response is of type Response Store Memory Api V1 Memory Store Post · object.