Get a record
Módulo Work
GET/records/{id}records.get
A record of any of the 26 kinds. Kind-specific attributes live in 1:1 extension tables keyed by `record_id`. Returns one record with its `ETag`. A record the caller may not see returns 404.
- Requiere la capacidad work.record.read.
- Alcances de OAuth: work.
- Estados de error: 400, 401, 404, 429. Los errores son detalles de problema RFC 9457.
Parámetros de ruta y de consulta
| Campo | Tipo | Obligatorio | Descripción |
|---|---|---|---|
| id | string (uuid) | Sí | Identifier of the record. |
| fields | Fields | No | Sparse 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_]*)*$ |
Respuesta 200: Record
| Campo | Tipo | Obligatorio | Descripción |
|---|---|---|---|
| id | string (uuid) | Sí | Identifier of the record. |
| org_id | string (uuid) | Sí | Identifier of the owning organization, derived from the parent row and never accepted from the caller. |
| created_at | string (date-time) | Sí | When the row was created. |
| created_by | string (uuid) | null | Sí | Identifier of the person who created the row; null when a seed, platform or system process created it. |
| updated_at | string (date-time) | Sí | When the row was last updated. |
| updated_by | string (uuid) | null | Sí | Identifier of the person who last updated the row; null when a seed, platform or system process updated it. |
| record_key | string | Sí | Display key issued by `next_sequence`.Restricciones: pattern ^[A-Za-z0-9][A-Za-z0-9._-]{0,63}$ |
| record_kind | RecordKind | Sí | Record kind from `xpms.dim_record_kind` (26 kinds, Section 3.10).Restricciones: pattern ^[A-Z0-9][A-Za-z0-9&'/.()-]*( [A-Za-z0-9&'/.()-]+)*$ |
| record_subtype | RecordSubtype | Sí | Kind-scoped record subtype from `xpms.dim_record_subtype`. A subtype of one kind cannot be stored on another.Restricciones: pattern ^[A-Z0-9][A-Za-z0-9&'/.()-]*( [A-Za-z0-9&'/.()-]+)*$ |
| record_class | RecordClass | Sí | Record class from `xpms.dim_record_kind`, derived from the kind.Restricciones: pattern ^[A-Z0-9][A-Za-z0-9&'/.()-]*( [A-Za-z0-9&'/.()-]+)*$ |
| record_state | RecordState | Sí | Record state (Section 3.10). Blocked names its blocker, Deferred carries a replan reason, Canceled is retained.Restricciones: one of "Proposed", "Ready", "Scheduled", "Active", "Blocked", "In Review", "Complete", "Deferred", "Canceled" |
| title | string | Sí | Title, validated against the kind's title grammar on write.Restricciones: length 1 to 300 |
| scope_node_id | string (uuid) | Sí | Identifier of the scope node. |
| phase_code | PhaseCode | Sí | Phase code from `xpms.dim_phase`, ordered by gate ordinal.Restricciones: pattern ^[A-Z]{3}$ |
| urid | UridAtAnyGrain | Sí | URID at discipline grain (`DDDD.DD`) or category grain (`DDDD.DD.DD`), as GL dimension 2 allows.Restricciones: pattern ^[0-9]000(\.[0-9]{2}){1,2}$ |
| xyz | Xyz | Sí | XYZ schema-family tag (Section 3.6): X Resource, Y Process, Z Timeline.Restricciones: pattern ^[XYZ]$ |
| owner_party_id | string (uuid) | null | Sí | Identifier of the owning person or organization. |
| accountable_party_id | string (uuid) | null | Sí | Identifier of the accountable person or organization. |
| starts_at | string (date-time) | null | Sí | Start of the record window. |
| ends_at | string (date-time) | null | Sí | End of the record window. |
| due_at | string (date-time) | null | Sí | Due instant. |
| blocker_text | string | null | Sí | The named blocker; required when Blocked.Restricciones: length 1 to 20000 |
| replan_reason | string | null | Sí | Replan reason; required when Deferred.Restricciones: length 1 to 20000 |
| external_visibility | array of ExternalRoleType | Sí | External role types that may see the record; empty means internal only. Stored as junction rows, presented as a set. |
| project_id | string (uuid) | Sí | Identifier of the project the record belongs to, derived from its scope node and never changed. |
| parent_record_id | string (uuid) | null | Sí | Identifier of the summary record this record rolls up to, in the same project. |
| wbs_code | string | null | Sí | Work breakdown structure code, dot separated.Restricciones: pattern ^[0-9]+(\.[0-9]+)*$; length 1 to 50 |
| description | string | null | Sí | What the record involves, in sentence case.Restricciones: length 1 to 4000 |
| sop_id | string (uuid) | null | Sí | Identifier of the standard operating procedure that governs the work. |
| team_code | TeamId | null | Sí | |
| assignee_membership_ids | array of string (uuid) | Sí | Memberships assigned to the record (app.record_assignments), oldest first. |
| progress_pct | number | null | Sí | Progress of a task record, as a percentage.Restricciones: range 0 to 100 |
| permit_identifier | string | null | Sí | Permit identifier the authority issued, on a permit record.Restricciones: length 1 to 200 |
| inspection_result_enum_id | string (uuid) | null | Sí | Identifier of the Inspection Result enumeration row (Standard Library) of an inspection record. |
{
"id": "0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f",
"org_id": "0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f",
"created_at": "2026-10-08T14:30:00Z",
"created_by": "0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f",
"updated_at": "2026-10-08T14:30:00Z",
"updated_by": "0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f",
"record_key": "NWL-24-118",
"record_kind": "Task",
"record_subtype": "Design",
"record_class": "Work",
"record_state": "Scheduled",
"title": "Install Main Stage Truss",
"scope_node_id": "0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f",
"phase_code": "SCP",
"urid": "4000.01",
"xyz": "X",
"owner_party_id": "0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f",
"accountable_party_id": "0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f",
"starts_at": "2026-10-08T14:30:00Z",
"ends_at": "2026-10-08T14:30:00Z",
"due_at": "2026-10-08T14:30:00Z",
"blocker_text": "Waiting on the rigging plot.",
"replan_reason": "Moved to the second weekend.",
"external_visibility": [
"Vendor"
],
"project_id": "0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f",
"parent_record_id": "0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f",
"wbs_code": "1.2.1",
"description": "Rig the downstage truss.",
"sop_id": "0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f",
"team_code": "4000-T01",
"assignee_membership_ids": [
"0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f"
],
"progress_pct": 40,
"permit_identifier": "BP-2027-0611",
"inspection_result_enum_id": "0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f"
}Ejemplos de código
curl -X GET "$XOS_BASE_URL/records/0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f" \
-H "Authorization: Bearer $XOS_API_KEY"const { data, etag } = await xos.records.get("0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f");response = xos.records.get("0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f")xos records get 0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f