Saltar al contenido

List work detail event rows

Módulo Identity

GET/work-detail-eventsworkDetailEvents.list

One entry of a person's work details access log (Section 8.4): a change they made, a share or revocation, or a read or reveal by an engaging org, with the categories and changed column names but never a value. The person reads all of theirs; an org's audit readers read the entries naming their org. Returns a cursor page of work detail event rows the caller may see. The default order is `created_at` descending, newest first. Supports sparse fieldsets and the filter grammar.

  • Requiere la capacidad me.work_details.write.
  • Alcances de OAuth: me.
  • Paginación por cursor: se aplican limit, cursor, fields, sort y filter.
  • Estados de error: 400, 401, 429. Los errores son detalles de problema RFC 9457.

Parámetros de ruta y de consulta

workDetailEvents.list: Parámetros de ruta y de consulta
CampoTipoObligatorioDescripción
limitLimitNoPage size. Default 50, maximum 200.Restricciones: range 1 to 200
cursorCursorNoOpaque cursor from `next_cursor` of the previous page.Restricciones: length 1 to any
fieldsFieldsNoSparse fieldset: a comma-separated list of top-level fields to return. `id` is always returned.Restricciones: pattern ^[a-z_][a-z0-9_]*(,[a-z_][a-z0-9_]*)*$
sortSortNoSort keys, comma-separated; a leading `-` sorts descending. Without `sort`, the documented default order applies (coded lists sort in numeric code order).Restricciones: pattern ^-?[a-z_][a-z0-9_]*(,-?[a-z_][a-z0-9_]*)*$
filterFilterNoFilter grammar `filter[field][op]=value`. Operators: eq, ne, lt, lte, gt, gte, in (comma-separated values), is_null (true or false) and contains. Conditions combine with AND.

Respuesta 200: una página de WorkDetailEvent

workDetailEvents.list: WorkDetailEvent
CampoTipoObligatorioDescripción
idstring (uuid)SíIdentifier of the entry.
person_idstring (uuid)SíIdentifier of the person whose work details were touched.
actor_person_idstring (uuid) | nullSíIdentifier of the person who acted; null for the database or a service.
org_idstring (uuid) | nullSíIdentifier of the org whose member acted or whose share changed.
engagement_idstring (uuid) | nullSíIdentifier of the engagement of a share, read or reveal.
actionstringSíWhat happened, as subject.verb: person_work_details.update, work_details.shared, work_details.share_changed, work_details.share_revoked, work_details.viewed, passport.revealed and others.Restricciones: pattern ^[a-z][a-z0-9_]*\.[a-z][a-z0-9_]*$
categoriesarray of WorkDetailCategorySíCategories the act covered.
changed_columnsarray of stringSíColumns an owner change touched, never their values.
reasonstring | nullSíReason an org member gave for revealing the passport number.Restricciones: length 1 to 500
created_atstring (date-time)SíWhen it happened.
{
  "data": [
    {
      "id": "0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f",
      "person_id": "0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f",
      "actor_person_id": "0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f",
      "org_id": "0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f",
      "engagement_id": "0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f",
      "action": "work_details.viewed",
      "categories": [
        "Dietary Needs"
      ],
      "changed_columns": [
        "allergies"
      ],
      "reason": "Booking the June flights.",
      "created_at": "2026-10-08T14:30:00Z"
    }
  ],
  "next_cursor": null
}

Ejemplos de código

curl -X GET "$XOS_BASE_URL/work-detail-events" \
  -H "Authorization: Bearer $XOS_API_KEY"
for await (const row of xos.workDetailEvents.listAll()) {
  console.log(row);
}
for row in xos.work_detail_events.list_all():
    print(row)
xos work-detail-events list --all