CognitiveX Docs
API

POST /api/memories/{memory_id}/share

Share Memory

POST /api/memories/{memory_id}/share

Share Memory

Authentication: Authorization: Bearer <key> or X-API-Key: <key>. Create keys at developers.cognitivx.io/keys.

Parameters

NameInTypeRequiredDescription
memory_idpathstringYes-
Idempotency-Keyheaderstring | nullNo-
X-Org-IDheaderstring | nullNo-

Request body

A JSON request body is required.

FieldTypeRequiredDescription
agent_slugstring | nullNo-
team_idstring | nullNo-
actor_agent_slugstring | nullNo-

Example request

curl -X POST https://api.cognitivx.io/api/memories/{memory_id}/share \
  -H "Authorization: Bearer icog_..." \
  -H "Content-Type: application/json" \
  -d '{
    "agent_slug": null,
    "team_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "actor_agent_slug": null
  }'

Example response

200 application/json

{
  "memory_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "shared_with": "string",
  "event_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}

Responses

StatusDescription
200Success. Returns the response body shown below.
422Request validation failed. detail lists each offending field.