Skip to main content
POST
/
api
/
memory
/
agents
/
{id}
/
log-messages
Log messages to this agent's memory
curl --request POST \
  --url https://api.bedrock.orinlabs.org/api/memory/agents/{id}/log-messages/ \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "messages": [
    "<string>"
  ],
  "timestamp": "2023-11-07T05:31:56Z"
}
'
{
  "success": true,
  "message_count": 123,
  "error": "<string>"
}

Authorizations

Authorization
string
header
required

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

Path Parameters

id
string<uuid>
required

Body

Serializer for logging multiple messages to an agent.

messages
string[]
required

Array of Message objects (role + content blocks)

Minimum array length: 1
timestamp
string<date-time>

Optional timestamp for all messages (defaults to now)

Response

success
boolean
required
message_count
integer
error
string