Skip to content

Person

A Person represents an individual within your application. People store core identity information and can own multiple sub-resources including addresses, contact methods, preferences, and roles. A person can be linked to one or more organizations.

Sample Object

{
  "id": "ppl_abc123def456",
  "first_name": "Jane",
  "last_name": "Doe",
  "avatar": "https://example.com/avatars/jane.jpg",
  "active": true,
  "system_owned": false,
  "primary_address_id": "adr_xyz789uvw012",
  "primary_contact_method_id": "cnt_mno345pqr678"
}

Fields

FieldTypeDescription
idstringUnique identifier for the person. Auto-generated on create.
first_namestringGiven name of the person. Minimum 2 characters.
last_namestringFamily name of the person. Minimum 2 characters.
avatarstringURL to the person’s avatar image. Optional.
activebooleanWhether the person is active. Inactive people are excluded from most operations.
system_ownedbooleanIndicates whether this record is owned by the system. System-owned people cannot be deleted.
primary_address_idnullable stringID of the primary address for this person. Set automatically when an address is marked as primary.
primary_contact_method_idnullable stringID of the primary contact method for this person. Set automatically when a contact method is marked as primary.

Actions

Creating a person

Creates a new person record with the provided identity information. The person is created in an active state by default.

obx app identity:people init
obx app identity:people push init

Onboarding a person

Creates a person together with addresses, contact methods, and preferences in a single request. The first address is automatically set as the primary address. The first contact method is automatically set as the primary contact method.

obx app identity:people init
obx app identity:people push init

Listing all people

Returns all people in the application. Each person object includes core identity fields but not sub-resources.

obx app identity:people list

Getting a person

Returns the full person object for the given ID. Sub-resources are not included. Use the full details action to include addresses, contact methods, and preferences.

obx app identity:people pull ppl_abc123def456

Getting a persons full details

Returns the person object with all associated addresses, contact methods, and preferences embedded.

obx app identity:people pull ppl_abc123def456 --full

Updating a person

Updates the core fields of a person. Only the provided fields are modified.

obx app identity:people push ppl_abc123def456

Deleting a person

Removes a person and all associated addresses, contact methods, and preferences.

obx app identity:people delete ppl_abc123def456