Docs

Docs

x-cpod-domain: legal

Legal

Contracts, NDAs, cases, IP, compliance, and reviews.

Try in explorer client.legal

LegalContract

A legal contract record (MSA, partnership, vendor, employment).

REST path/api/v1/legal/contracts
Operations
listgetcreateupdatedelete
SDK
// list — returns only your records; add filters/search:
await client.legal.contracts.list()

// create:
await client.legal.contracts.create({
  id: "rec_01HXEXAMPLE",
  tenant_id: "example tenant_id",
  created_at: "2026-01-01T00:00:00Z",
  updated_at: "2026-01-01T00:00:00Z",
  title: "example title",
  app_id: "example app_id",
})
FieldTypeDescription
id*uuidServer-assigned ULID with type prefix (e.g. per_…).
tenant_id*stringTenant scope — auto-stamped from the caller's JWT.
app_idstringApp scope. Stamped ONLY when the caller's JWT was minted for a specific Application (integration API keys). Absent for human-user sessions. Filters reads when present.
created_at*date-timeServer stamp.
updated_at*date-timeServer stamp; updated on every patch.
created_byuuidPerson id from the caller's JWT (sub).
updated_byuuidPerson id from the last writer's JWT (sub).
sourcestringProvenance tag — defaults to 'edm'.
source_typeenumWhere the write originated. Defaults to 'api'.frontendbackendserversystemapi
is_deletedbooleanSoft-delete flag. Excluded from default list queries.
deleted_atdate-timeStamped when soft-deleted; null otherwise.
deleted_byuuidPerson id who soft-deleted; null otherwise.
schema_versionnumberDocument schema version. Bumped on incompatible writes.
title*stringContract title.
typeenumContract type.servicepartnershipvendoremploymentother
statusenumContract lifecycle status.draftreviewsignedactiveexpiredterminated
partiesjsonParties to the contract.
effective_datedate-timeISO 8601 date the contract becomes effective.
expiration_datedate-timeISO 8601 date the contract expires.
valuenumberTotal contract value.
clausesjsonStructured clauses of the contract.
vendor_iduuidID of the associated vendor.
owner_iduuidUser ID of the contract owner.
namestringDisplay name of the contract.
signed_datedate-timeISO 8601 date the contract was signed.
expiry_datedate-timeISO 8601 date the contract expires.
notice_period_daysintegerNotice period in days before termination.
auto_renewal_window_daysintegerAuto-renewal window in days before expiry.
currencystringCurrency code for the contract value.
linked_license_idsjsonIDs of licenses linked to this contract.
document_refstringStorage reference to the contract document.
notesstringFree-form notes about the contract.
tagsjsonTags for categorizing the contract.

NDA

A non-disclosure agreement, mutual or unilateral.

REST path/api/v1/legal/ndas
Operations
listgetcreateupdatedelete
SDK
// list — returns only your records; add filters/search:
await client.legal.ndas.list()

// create:
await client.legal.ndas.create({
  id: "rec_01HXEXAMPLE",
  tenant_id: "example tenant_id",
  created_at: "2026-01-01T00:00:00Z",
  updated_at: "2026-01-01T00:00:00Z",
  title: "example title",
  app_id: "example app_id",
})
FieldTypeDescription
id*uuidServer-assigned ULID with type prefix (e.g. per_…).
tenant_id*stringTenant scope — auto-stamped from the caller's JWT.
app_idstringApp scope. Stamped ONLY when the caller's JWT was minted for a specific Application (integration API keys). Absent for human-user sessions. Filters reads when present.
created_at*date-timeServer stamp.
updated_at*date-timeServer stamp; updated on every patch.
created_byuuidPerson id from the caller's JWT (sub).
updated_byuuidPerson id from the last writer's JWT (sub).
sourcestringProvenance tag — defaults to 'edm'.
source_typeenumWhere the write originated. Defaults to 'api'.frontendbackendserversystemapi
is_deletedbooleanSoft-delete flag. Excluded from default list queries.
deleted_atdate-timeStamped when soft-deleted; null otherwise.
deleted_byuuidPerson id who soft-deleted; null otherwise.
schema_versionnumberDocument schema version. Bumped on incompatible writes.
title*stringNDA title.
typeenumNDA type.mutualunilateral
statusenumNDA lifecycle status.draftsentsignedexpired
partiesjsonParties to the NDA.
effective_datedate-timeISO 8601 date the NDA becomes effective.
expiration_datedate-timeISO 8601 date the NDA expires.
scopestringScope of the confidential information covered.
vendor_iduuidID of the associated vendor.
owner_iduuidUser ID of the NDA owner.
namestringDisplay name of the NDA.
signed_datedate-timeISO 8601 date the NDA was signed.
expiry_datedate-timeISO 8601 date the NDA expires.
notice_period_daysintegerNotice period in days before termination.
auto_renewal_window_daysintegerAuto-renewal window in days before expiry.
valuenumberMonetary value associated with the NDA.
currencystringCurrency code for the value.
linked_license_idsjsonIDs of licenses linked to this NDA.
document_refstringStorage reference to the NDA document.
notesstringFree-form notes about the NDA.
tagsjsonTags for categorizing the NDA.

Case

A legal case (litigation, regulatory, contract, IP).

REST path/api/v1/legal/cases
Operations
listgetcreateupdatedelete
SDK
// list — returns only your records; add filters/search:
await client.legal.cases.list()

// create:
await client.legal.cases.create({
  id: "rec_01HXEXAMPLE",
  tenant_id: "example tenant_id",
  created_at: "2026-01-01T00:00:00Z",
  updated_at: "2026-01-01T00:00:00Z",
  title: "example title",
  app_id: "example app_id",
})
FieldTypeDescription
id*uuidServer-assigned ULID with type prefix (e.g. per_…).
tenant_id*stringTenant scope — auto-stamped from the caller's JWT.
app_idstringApp scope. Stamped ONLY when the caller's JWT was minted for a specific Application (integration API keys). Absent for human-user sessions. Filters reads when present.
created_at*date-timeServer stamp.
updated_at*date-timeServer stamp; updated on every patch.
created_byuuidPerson id from the caller's JWT (sub).
updated_byuuidPerson id from the last writer's JWT (sub).
sourcestringProvenance tag — defaults to 'edm'.
source_typeenumWhere the write originated. Defaults to 'api'.frontendbackendserversystemapi
is_deletedbooleanSoft-delete flag. Excluded from default list queries.
deleted_atdate-timeStamped when soft-deleted; null otherwise.
deleted_byuuidPerson id who soft-deleted; null otherwise.
schema_versionnumberDocument schema version. Bumped on incompatible writes.
title*stringCase title.
typeenumCase type.litigationregulatorycontractipother
statusenumCase lifecycle status.openpendingclosedescalated
assigned_tostringUser ID of the assignee.
notesstringFree-form case notes.
priorityenumCase priority.lowmediumhighcritical
related_entity_idstringID of a related entity.
related_entity_typestringType of the related entity.

IP

An intellectual property asset (patent, trademark, copyright).

REST path/api/v1/legal/ip
Operations
listgetcreateupdatedelete
SDK
// list — returns only your records; add filters/search:
await client.legal.ip.list()

// create:
await client.legal.ip.create({
  id: "rec_01HXEXAMPLE",
  tenant_id: "example tenant_id",
  created_at: "2026-01-01T00:00:00Z",
  updated_at: "2026-01-01T00:00:00Z",
  title: "example title",
  app_id: "example app_id",
})
FieldTypeDescription
id*uuidServer-assigned ULID with type prefix (e.g. per_…).
tenant_id*stringTenant scope — auto-stamped from the caller's JWT.
app_idstringApp scope. Stamped ONLY when the caller's JWT was minted for a specific Application (integration API keys). Absent for human-user sessions. Filters reads when present.
created_at*date-timeServer stamp.
updated_at*date-timeServer stamp; updated on every patch.
created_byuuidPerson id from the caller's JWT (sub).
updated_byuuidPerson id from the last writer's JWT (sub).
sourcestringProvenance tag — defaults to 'edm'.
source_typeenumWhere the write originated. Defaults to 'api'.frontendbackendserversystemapi
is_deletedbooleanSoft-delete flag. Excluded from default list queries.
deleted_atdate-timeStamped when soft-deleted; null otherwise.
deleted_byuuidPerson id who soft-deleted; null otherwise.
schema_versionnumberDocument schema version. Bumped on incompatible writes.
title*stringIP asset title.
typeenumIP type.patenttrademarkcopyrighttrade_secretother
statusenumIP lifecycle status.pendingregisteredexpiredabandoned
registration_numberstringRegistration or application number.
filed_atdate-timeISO 8601 date the IP was filed.
granted_atdate-timeISO 8601 date the IP was granted.
jurisdictionstringJurisdiction of registration.
owner_idstringUser ID of the IP owner.

Compliance

A legal compliance assessment against a framework.

REST path/api/v1/legal/compliance
Operations
listgetcreateupdatedelete
SDK
// list — returns only your records; add filters/search:
await client.legal.compliance.list()

// create:
await client.legal.compliance.create({
  id: "rec_01HXEXAMPLE",
  tenant_id: "example tenant_id",
  created_at: "2026-01-01T00:00:00Z",
  updated_at: "2026-01-01T00:00:00Z",
  title: "example title",
  app_id: "example app_id",
})
FieldTypeDescription
id*uuidServer-assigned ULID with type prefix (e.g. per_…).
tenant_id*stringTenant scope — auto-stamped from the caller's JWT.
app_idstringApp scope. Stamped ONLY when the caller's JWT was minted for a specific Application (integration API keys). Absent for human-user sessions. Filters reads when present.
created_at*date-timeServer stamp.
updated_at*date-timeServer stamp; updated on every patch.
created_byuuidPerson id from the caller's JWT (sub).
updated_byuuidPerson id from the last writer's JWT (sub).
sourcestringProvenance tag — defaults to 'edm'.
source_typeenumWhere the write originated. Defaults to 'api'.frontendbackendserversystemapi
is_deletedbooleanSoft-delete flag. Excluded from default list queries.
deleted_atdate-timeStamped when soft-deleted; null otherwise.
deleted_byuuidPerson id who soft-deleted; null otherwise.
schema_versionnumberDocument schema version. Bumped on incompatible writes.
title*stringCompliance assessment title.
frameworkenumCompliance framework.gdprhipaasoxpci_dssiso_27001fedrampother
statusenumCompliance status.compliantnon_compliantin_progressnot_assessed
assessed_atdate-timeISO 8601 date the assessment was performed.
assessor_idstringUser ID of the assessor.
findingsstringAssessment findings.
remediation_planstringPlan to remediate findings.
next_review_datedate-timeISO 8601 date of the next review.
control_idstringIdentifier of the compliance control (e.g. CC6.1).
descriptionstringDescription of the control.
categorystringControl category (e.g. Access Control).
ownerstringUser ID of the control owner.
evidencejsonCollected evidence supporting the control.
last_assessed_atdate-timeISO 8601 date the control was last assessed.
next_review_atdate-timeISO 8601 date of the next control review.
linked_asset_idsjsonIDs of assets linked to this control.

Review

A legal review of a contract, NDA, policy, or compliance item.

REST path/api/v1/legal/reviews
Operations
listgetcreateupdatedelete
SDK
// list — returns only your records; add filters/search:
await client.legal.reviews.list()

// create:
await client.legal.reviews.create({
  id: "rec_01HXEXAMPLE",
  tenant_id: "example tenant_id",
  created_at: "2026-01-01T00:00:00Z",
  updated_at: "2026-01-01T00:00:00Z",
  type: "contract",
  target_id: "example target_id",
})
FieldTypeDescription
id*uuidServer-assigned ULID with type prefix (e.g. per_…).
tenant_id*stringTenant scope — auto-stamped from the caller's JWT.
app_idstringApp scope. Stamped ONLY when the caller's JWT was minted for a specific Application (integration API keys). Absent for human-user sessions. Filters reads when present.
created_at*date-timeServer stamp.
updated_at*date-timeServer stamp; updated on every patch.
created_byuuidPerson id from the caller's JWT (sub).
updated_byuuidPerson id from the last writer's JWT (sub).
sourcestringProvenance tag — defaults to 'edm'.
source_typeenumWhere the write originated. Defaults to 'api'.frontendbackendserversystemapi
is_deletedbooleanSoft-delete flag. Excluded from default list queries.
deleted_atdate-timeStamped when soft-deleted; null otherwise.
deleted_byuuidPerson id who soft-deleted; null otherwise.
schema_versionnumberDocument schema version. Bumped on incompatible writes.
type*enumType of item under review.contractndapolicycomplianceother
target_id*stringID of the item being reviewed.
reviewer_id*stringUser ID of the reviewer.
statusenumReview status.pendingapprovedrejectedchanges_requested
commentsstringReviewer comments.
reviewed_atdate-timeISO 8601 date the review was completed.
risk_levelenumAssessed risk level.lowmediumhigh