POST
/
user-memories
cURL
curl --request POST \
  --url https://api.datagrid.com/v1/user-memories \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "agent_id": "<string>",
  "user_prompt": "<string>",
  "memory": "<string>",
  "context": "<string>"
}'
{
  "object": "user_memory",
  "id": "<string>",
  "updated_at": "<string>",
  "created_at": "<string>",
  "user_prompt": "<string>",
  "context": [
    "<string>"
  ],
  "agent_id": "<string>",
  "user_id": "<string>",
  "memory": [
    "<string>"
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Response

201 - application/json

Successfully created user memory

The response is of type object.