# Log an event

## `POST /v1/events`

Log a conversation using an event type from your workspace. Reusing a channel and externalId returns the existing event and adds any new links. Requires the `write` scope.

```json
{
  "tags": [
    "Events"
  ],
  "operationId": "log-event",
  "summary": "Log an event",
  "description": "Log a conversation using an event type from your workspace. Reusing a channel and externalId returns the existing event and adds any new links. Requires the `write` scope.",
  "x-retainer-scope": "write",
  "parameters": [],
  "requestBody": {
    "required": true,
    "content": {
      "application/json": {
        "schema": {
          "type": "object",
          "properties": {
            "type": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            },
            "channel": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            },
            "externalId": {
              "type": "string",
              "minLength": 1,
              "maxLength": 500
            },
            "occurredAt": {
              "type": "string",
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
            },
            "title": {
              "type": "string",
              "maxLength": 500
            },
            "summary": {
              "type": "string",
              "maxLength": 20000
            },
            "fields": {
              "default": {},
              "type": "object",
              "propertyNames": {
                "type": "string"
              },
              "additionalProperties": {}
            },
            "bindings": {
              "type": "object",
              "properties": {
                "bindings_revision": {
                  "type": "integer",
                  "exclusiveMinimum": 0,
                  "maximum": 9007199254740991
                },
                "objectId": {
                  "type": "string",
                  "format": "uuid",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                },
                "fieldIds": {
                  "type": "object",
                  "propertyNames": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 100
                  },
                  "additionalProperties": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  }
                }
              },
              "required": [
                "bindings_revision",
                "objectId",
                "fieldIds"
              ],
              "additionalProperties": false
            },
            "participants": {
              "default": [],
              "maxItems": 200,
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "handle": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 320
                  },
                  "recordId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "role": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 100
                  }
                },
                "additionalProperties": false
              }
            },
            "about": {
              "default": [],
              "maxItems": 200,
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              }
            }
          },
          "required": [
            "type",
            "channel",
            "occurredAt"
          ],
          "additionalProperties": false
        },
        "example": {
          "type": "conversation",
          "channel": "calendar",
          "externalId": "acme-renewal",
          "occurredAt": "2026-11-18T10:00:00Z",
          "title": "Acme renewal review",
          "fields": {
            "medium": "meeting"
          },
          "about": [
            "d2c0648c-2994-4f16-bdf1-a0136be6037d"
          ]
        }
      }
    }
  },
  "responses": {
    "200": {
      "description": "The event was already logged.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/LoggedEvent"
          }
        }
      }
    },
    "201": {
      "description": "A new event was logged.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/LoggedEvent"
          }
        }
      }
    },
    "401": {
      "$ref": "#/components/responses/Unauthorized"
    },
    "409": {
      "description": "The identity belongs to a conflicting or retracted event.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "default": {
      "$ref": "#/components/responses/ApiError"
    }
  }
}
```

[Full OpenAPI contract](/openapi.json)
