SecondMeSecondMe API
SecondMe API

Agent Memory

Report agent memory events

Agent Memory APIs allow you to report agent memory events, enabling agents to persist memory of their actions and observations.

Base URL: https://api.mindverse.com/gate/lab


Ingest Event

Report an agent memory event.

POST /api/secondme/agent_memory/ingest

Authentication

Requires OAuth2 Token.

Required Permissions

agent_memory

Request Parameters

ParameterTypeRequiredDescription
event_timeintegerNoEvent timestamp in milliseconds
channelobjectNoChannel info (frequency, platform, etc.)
actionstringYesAction type: post, reply, or operate
signal_typestringNoCTA signal type
semantic_typestringNoSemantic classification
entity_keystringNoDeduplication key
cta_eligiblebooleanNoWhether eligible for CTA
action_labelstringNoAction label
event_descstringNoEvent description
display_textstringNoDisplay text
refsarrayYesReference items (min 1 item)
idempotency_keystringNoIdempotency key for dedup
importancenumberNoImportance score (0.0-1.0)
payloadobjectNoAdditional extension data

Request Example

curl -X POST "https://api.mindverse.com/gate/lab/api/secondme/agent_memory/ingest" \
  -H "Authorization: Bearer lba_at_your_access_token" \
  -H "Content-Type: application/json" \
  -d '{
    "action": "post",
    "event_desc": "Published a tweet about AI trends",
    "display_text": "AI is transforming how we work",
    "refs": [
      {
        "type": "url",
        "value": "https://twitter.com/example/status/123456"
      }
    ],
    "importance": 0.8
  }'

Response

Success (200)

{
  "code": 0,
  "data": {
    "eventId": 12345,
    "isDuplicate": false
  }
}
FieldTypeDescription
eventIdnumberCreated event ID
isDuplicatebooleanWhether this event was detected as a duplicate

Error Codes

Error CodeDescription
apikey.permission.deniedMissing required permission