molroo docs
WorldAPI ReferenceWorldsIdEvents

Dispatch event to world entities

POST
/worlds/{id}/events

Path Parameters

id*string

World ID

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

curl -X POST "https://api.molroo.io/worlds/uuid/events" \  -H "Content-Type: application/json" \  -d '{    "type": "string"  }'
{
  "result": {
    "type": "string",
    "affected": [
      {
        "entityName": "string",
        "response": {
          "emotion": {
            "V": -1,
            "A": -1,
            "D": -1
          },
          "discrete": {
            "primary": "string",
            "secondary": "string",
            "intensity": 0
          },
          "socialUpdates": [
            {
              "entityId": "string",
              "field": "string",
              "oldValue": 0,
              "newValue": 0
            }
          ],
          "memoryEpisode": {
            "id": "string",
            "timestamp": 0,
            "sourceEntity": "string",
            "context": "string",
            "appraisal": {
              "goal_relevance": 0,
              "goal_congruence": 0,
              "expectedness": 0,
              "controllability": 0,
              "agency": 0,
              "norm_compatibility": 0
            },
            "emotionSnapshot": {
              "V": 0,
              "A": 0,
              "D": 0
            },
            "intensity": 0,
            "importance": 0
          },
          "reflectionPrompt": {
            "system": "string",
            "user": "string"
          },
          "stageTransition": "string",
          "maskExposure": {
            "integrity": 0,
            "exposed": true,
            "triggers": [
              "string"
            ]
          },
          "goalChanges": {
            "achieved": [
              "string"
            ],
            "abandoned": [
              "string"
            ],
            "activated": [
              "string"
            ]
          },
          "text": "string"
        }
      }
    ],
    "events": [
      {
        "type": "string",
        "spaceId": "string",
        "timestamp": 0,
        "sourceEntity": "string",
        "targetEntity": "string",
        "payload": {
          "property1": null,
          "property2": null
        },
        "appraisal": {
          "goal_relevance": 0,
          "goal_congruence": 0,
          "expectedness": 0,
          "controllability": 0,
          "agency": 0,
          "norm_compatibility": 0
        },
        "stimulus": {
          "bodyBudgetDelta": 0,
          "vadOverride": {
            "V": 0,
            "A": 0,
            "D": 0
          },
          "vadDelta": {
            "V": 0,
            "A": 0,
            "D": 0
          },
          "needsDelta": {
            "autonomy": 0,
            "competence": 0,
            "relatedness": 0
          },
          "soulStageForce": 0,
          "catastropheAlphaDelta": 0,
          "dampingOverride": 0
        }
      }
    ],
    "property1": null,
    "property2": null
  }
}
{
  "error": {
    "code": "string",
    "message": "string"
  }
}
{
  "error": {
    "code": "string",
    "message": "string"
  }
}