Skip to content
Go to Micro

Events

Create object
POST/v2/prism/{teamId}/event
List records of an object type
GET/v2/prism/{teamId}/event
Get object
GET/v2/prism/{teamId}/event/{eventId}
Patch object
PATCH/v2/prism/{teamId}/event/{eventId}
Delete object
DELETE/v2/prism/{teamId}/event/{eventId}
Query
POST/v2/prism/{teamId}/event/query
Total record count for an object type
GET/v2/prism/{teamId}/event/count
Find a record by property value
GET/v2/prism/{teamId}/event/by/{slug}/{value}
Upsert by property value
PUT/v2/prism/{teamId}/event/by/{slug}/{value}
Duplicate object
POST/v2/prism/{teamId}/event/{eventId}/duplicate
Restore object
POST/v2/prism/{teamId}/event/{eventId}/restore
ModelsExpand Collapse
Event object { default, list }
default: optional map[unknown]

Properties keyed by property slug. Values can be strings, numbers, booleans, arrays, or null. For select/multiselect properties, values may be option slugs or option UUIDs on write; option slugs are returned on read.

list: optional unknown
EventCreateResponse object { id, default, list }

Object returned by reads (get/create/patch/restore). id is always present.

id: string
formatuuid
default: optional map[unknown]

Properties keyed by property slug.

list: optional unknown
EventListResponse object { data, has_more, next_cursor, total }
data: array of object { id, is_user_object, properties, source }
id: string
formatuuid
is_user_object: optional boolean
properties: optional map[unknown]

Selected property values keyed by property slug. For select/multiselect properties, option slugs are returned. For reference properties, values are nested { id, properties } objects.

source: optional array of string
has_more: boolean

Accurate end-of-data signal — false on the last page, never forces clients to overshoot.

next_cursor: optional string
total: optional number

Populated only when ?include_total=true was passed.

EventGetResponse object { id, default, list }

Object returned by reads (get/create/patch/restore). id is always present.

id: string
formatuuid
default: optional map[unknown]

Properties keyed by property slug.

list: optional unknown
EventUpdateResponse object { id, default, list }

Object returned by reads (get/create/patch/restore). id is always present.

id: string
formatuuid
default: optional map[unknown]

Properties keyed by property slug.

list: optional unknown
EventQueryResponse object { data, has_more, next_cursor, total }
data: array of object { id, is_user_object, properties, source }
id: string
formatuuid
is_user_object: optional boolean
properties: optional map[unknown]

Selected property values keyed by property slug. For select/multiselect properties, option slugs are returned. For reference properties, values are nested { id, properties } objects.

source: optional array of string
has_more: boolean

Accurate end-of-data signal. False when this page contains the last record; true only when at least one more record exists. (Implementation note: the server fetches one extra row internally to determine this — clients never need to overshoot to discover the end.)

next_cursor: optional string

Opaque cursor pointing at the next page. Pass it back unchanged. Do not parse it. The current encoding is offset-based (page + limit), so it has the same concurrent-write drift the deprecated page parameter has; treat it as a black box so a future keyset cursor is a drop-in. Null when has_more is false.

total: optional number

Only populated when the request set include_total: true. Total number of records matching the query, ignoring pagination. Opt-in because it costs an additional pass over the result set.

EventCountResponse object { total }
total: number

Number of records matching the access scope.

EventFindResponse object { id, default, list }

Object returned by reads (get/create/patch/restore). id is always present.

id: string
formatuuid
default: optional map[unknown]

Properties keyed by property slug.

list: optional unknown
EventUpsertResponse object { id, default, list }

Object returned by reads (get/create/patch/restore). id is always present.

id: string
formatuuid
default: optional map[unknown]

Properties keyed by property slug.

list: optional unknown
EventDuplicateResponse object { id, default, list }

Object returned by reads (get/create/patch/restore). id is always present.

id: string
formatuuid
default: optional map[unknown]

Properties keyed by property slug.

list: optional unknown
EventRestoreResponse object { id, default, list }

Object returned by reads (get/create/patch/restore). id is always present.

id: string
formatuuid
default: optional map[unknown]

Properties keyed by property slug.

list: optional unknown

EventsGrant

Get grant
GET/v2/prism/{teamId}/event/{eventId}/grant
Update grant
PUT/v2/prism/{teamId}/event/{eventId}/grant
ModelsExpand Collapse
GrantGetResponse object { contact_ids, group_id, identity_ids, 4 more }

The grants on a record. For message, also carries the entity ids of everyone on the message, resolved from its address headers when the grant was written. The id arrays are read-only and are null when participant resolution was unavailable (for example the mailbox had no Gmail token at the time).

contact_ids: optional array of string
group_id: optional map["a" or "r" or "w"]
One of the following:
"a"
"r"
"w"
identity_ids: optional array of string
organization_ids: optional array of string
share_level: optional "metadata" or "full"

How much of the record the grant exposes. metadata shares only the record’s headers and participants; full shares its contents. Currently recorded on the access row and returned on read — it is not yet enforced by the read path. Applies to message grants; ignored for other object types.

One of the following:
"metadata"
"full"
team_id: optional map["a" or "r" or "w"]
One of the following:
"a"
"r"
"w"
user_id: optional map["a" or "r" or "w"]
One of the following:
"a"
"r"
"w"
GrantUpdateResponse object { contact_ids, group_id, identity_ids, 4 more }

The grants on a record. For message, also carries the entity ids of everyone on the message, resolved from its address headers when the grant was written. The id arrays are read-only and are null when participant resolution was unavailable (for example the mailbox had no Gmail token at the time).

contact_ids: optional array of string
group_id: optional map["a" or "r" or "w"]
One of the following:
"a"
"r"
"w"
identity_ids: optional array of string
organization_ids: optional array of string
share_level: optional "metadata" or "full"

How much of the record the grant exposes. metadata shares only the record’s headers and participants; full shares its contents. Currently recorded on the access row and returned on read — it is not yet enforced by the read path. Applies to message grants; ignored for other object types.

One of the following:
"metadata"
"full"
team_id: optional map["a" or "r" or "w"]
One of the following:
"a"
"r"
"w"
user_id: optional map["a" or "r" or "w"]
One of the following:
"a"
"r"
"w"