Skip to Content
Open Retainer
Events

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.

Authorization

bearerAuth
headerAuthorizationBearer <token>

A workspace API key.

Request Body

application/json
  1. body
type*string
Length1 <= length <= 100
channel*string
Length1 <= length <= 100
externalId?string
Length1 <= length <= 500
occurredAt*string
Match^(?:(?:\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)))$
Formatdate-time
title?string
Lengthlength <= 500
summary?string
Lengthlength <= 20000
fields?
Default{}
bindings?
participants?array<>
Itemsitems <= 200
Default[]
about?array<>
Itemsitems <= 200
Default[]

Response Body

The event was already logged.

application/json
  1. response
id*string
Match^([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)$
Formatuuid
type*string
created*boolean
participants*
about*array<>
added?
Example Request
curl -X POST 'https://retainer.tamloot.cc/v1/events' \  -H 'Authorization: Bearer YOUR_WORKSPACE_API_KEY' \  -H 'Content-Type: application/json' \  -d '{  "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"  ]}'
Example Response
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "type": "string",  "created": true,  "participants": {    "matched": [      {        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",        "handle": "string",        "role": "string",        "recordId": "0470cfd4-dcf3-4d8c-ac28-58c6deeff25f"      }    ],    "unmatched": [      {        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",        "handle": "string",        "role": "string",        "reason": "no_match",        "candidates": [          "ca3c6e0b-3eb2-4d6c-b8d9-7ce3bd020121"        ]      }    ]  },  "about": [    "dae22e5f-09ed-4916-9fa4-01d6902a20dd"  ],  "added": {    "participants": {      "matched": [        {          "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",          "handle": "string",          "role": "string",          "recordId": "0470cfd4-dcf3-4d8c-ac28-58c6deeff25f"        }      ],      "unmatched": [        {          "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",          "handle": "string",          "role": "string",          "reason": "no_match",          "candidates": [            "ca3c6e0b-3eb2-4d6c-b8d9-7ce3bd020121"          ]        }      ]    },    "about": [      "dae22e5f-09ed-4916-9fa4-01d6902a20dd"    ]  }}