v1

latestOpenAPI 3.1.02026-08-06209117239.7 KB
sockets

Create socket from template

Create a new socket using a template

post/api/v1/spaces/{space_id}/sockets/from-template

Path parameters

space_idstring required

Request body

object required

Response

Successful Response

socket_namestring required

Socket name

descriptionstring nullable

Socket description

socket_idstring required

Unique socket identifier

space_idstring required

Space this socket belongs to

user_idstring required

User who owns this socket

is_activeboolean

Whether socket is active

created_atstring date-time required

Creation timestamp

updated_atstring date-time nullable

Last update timestamp

Example response

{
  "created_at": "2023-04-01T14:30:45.123Z",
  "description": "Automate work-related memory processing",
  "integration_bindings": [],
  "is_active": true,
  "socket_config": {
    "actions": [
      {
        "parameters": {
          "tags": [
            "work",
            "auto-tagged"
          ]
        },
        "type": "add_tags"
      }
    ],
    "execution_mode": "async",
    "priority": 8,
    "triggers": [
      {
        "conditions": [
          {
            "type": "keyword_match",
            "value": [
              "meeting",
              "client",
              "project"
            ]
          }
        ],
        "event": "pre-remember"
      }
    ]
  },
  "socket_id": "socket_550e8400-e29b-41d4-a716-446655440000",
  "socket_name": "Professional Memory Hub",
  "space_id": "space_work_123",
  "updated_at": "2023-04-01T16:45:10.456Z",
  "user_id": "user_123456789"
}