List object schemas
Code Mode: praxis.crm.schemas.list
HTTP: GET /crm/v1/schemas
Discover available object schemas, display labels, property definitions and association definitions. Reuse the object type identifier or name in record, property and pipeline operations. archived defaults to false; the include parameters control the definition and audit details returned.
Signature
praxis.crm.schemas.list(args?:{query?:{archived?:boolean;includeAssociationDefinitions?:boolean;includeAuditMetadata?:boolean;includePropertyDefinitions?:boolean}}):Promise<{/** An array of object schemas, each represented by an ObjectSchema. */ results:Array<{/** A boolean indicating whether the object schema allows sensitive properties. */ allowsSensitiveProperties:boolean;/** A boolean indicating whether the object schema is archived. */ archived:boolean;/** Associations defined for a given object type. */ associations:Array<{/** When the association was defined. e.g. "2026-10-29T12:00:00Z" */ createdAt?:string;/** ID of the primary object type to link from. */ fromObjectTypeId:string;/** A unique ID for this association. */ id:string;/** A unique name for this association. */ name?:string;/** ID of the target object type ID to link to. */ toObjectTypeId:string;/** When the association was last updated. e.g. "2026-10-29T12:00:00Z" */ updatedAt?:string}>;/** When the object schema was created. e.g. "2026-10-29T12:00:00Z" */ createdAt?:string;/** An integer representing the ID of the user who created the object schema. e.g. 0 */ createdByUserId?:number;/** A string providing a description of the object schema. */ description?:string;/** An assigned unique ID for the object, including portal ID and object name. */ fullyQualifiedName:string;/** A unique ID for this schema's object type. */ id:string;/** Singular and plural display names for the object type in record lists and pages. */ labels:{/** The word for multiple objects. */ plural?:string;/** The word for one object. */ singular?:string};/** A unique name for the schema's object type. */ name:string;/** A string representing the type ID of the object. */ objectTypeId:string;/** The name of the primary property for this object. */ primaryDisplayProperty?:string;/** Properties defined for this object type. */ properties:Array<{/** Whether or not the property is archived. */ archived?:boolean;/** When the property was archived. e.g. "2026-10-29T12:00:00Z" */ archivedAt?:string;/** For default properties, true indicates that the property is calculated by a CRM process. */ calculated?:boolean;/** The formula used to calculate the value of this property, if it is a calculated property. */ calculationFormula?:string;/** When the property was created e.g. "2026-10-29T12:00:00Z" */ createdAt?:string;/** The internal ID of the user who created the property in CRM. */ createdUserId?:string;/** The name of the property that defines the currency for this property, if applicable. */ currencyPropertyName?:string;/** The sensitivity level of the data stored in this property, such as 'sensitive' or 'highly_sensitive'. e.g. "highly_sensitive" */ dataSensitivity?:"highly_sensitive"|"non_sensitive"|"sensitive";/** Controls how date properties are displayed in the CRM UI, with options such as 'absolute', 'absolute_with_relative', 'time_since', and 'time_until'. e.g. "absolute" */ dateDisplayHint?:"absolute"|"absolute_with_relative"|"time_since"|"time_until";/** A description of the property that will be shown as help text in CRM. */ description:string;/** The order that this property should be displayed in the CRM UI relative to other properties for this object type. e.g. 0 */ displayOrder?:number;/** For default properties, true indicates that the options are stored externally to the property settings. */ externalOptions?:boolean;/** Controls how the property appears in CRM. */ fieldType:string;/** Whether or not the property can be used in a CRM form. */ formField?:boolean;/** The name of the property group the property belongs to. */ groupName:string;/** Whether or not the property's value must be unique. */ hasUniqueValue?:boolean;/** Hidden options won't be shown in CRM. e.g. false */ hidden?:boolean;/** This will be true for default object properties built into CRM. */ hubspotDefined?:boolean;/** A human-readable property label that will be shown in CRM. */ label:string;/** Restrictions on archiving and editing this property definition, options or record values. */ modificationMetadata?:{/** Indicates whether the property can be archived. */ archivable:boolean;/** Indicates whether the property's definition is read-only. */ readOnlyDefinition:boolean;/** Indicates whether the property's options are read-only. */ readOnlyOptions?:boolean;/** Indicates whether the property's value is read-only. */ readOnlyValue:boolean};/** The internal property name, which must be used when referencing the property via the API. */ name:string;/** A hint for how number values should be displayed, with options like 'formatted' or 'currency'. e.g. "currency" */ numberDisplayHint?:"currency"|"duration"|"formatted"|"percentage"|"probability"|"unformatted";/** A list of valid options for the property. */ options:Array<{/** A description of the option. */ description?:string;/** Options are displayed in order starting with the lowest positive integer value. e.g. 0 */ displayOrder?:number;/** Hidden options will not be displayed in CRM. */ hidden:boolean;/** A human-readable option label that will be shown in CRM. */ label:string;/** The internal value of the option, which must be used when setting the property value through the API. */ value:string}>;/** If this property is related to other object(s), they'll be listed here. */ referencedObjectType?:string;/** An array of categories that describe the types of sensitive data contained in this property. */ sensitiveDataCategories?:Array<string>;/** Whether the property will display the currency symbol set in the account settings. */ showCurrencySymbol?:boolean;/** A hint for how text values should be displayed, with options like 'email' or 'phone_number'. e.g. "domain_name" */ textDisplayHint?:"domain_name"|"email"|"ip_address"|"multi_line"|"phone_number"|"physical_address"|"postal_code"|"unformatted_single_line";/** The property data type. */ type:string;/** When the object type was last updated. e.g. "2026-10-29T12:00:00Z" */ updatedAt?:string;/** The internal user ID of the user who updated the property in CRM. */ updatedUserId?:string}>;/** The names of properties that should be **required** when creating an object of this type. */ requiredProperties:Array<string>;/** Names of properties that will be indexed for this object type in by CRM's product search. */ searchableProperties:Array<string>;/** The names of secondary properties for this object. */ secondaryDisplayProperties:Array<string>;/** When the object schema was last updated. e.g. "2026-10-29T12:00:00Z" */ updatedAt?:string;/** An integer representing the ID of the user who last updated the object schema. e.g. 0 */ updatedByUserId?:number}>}>;Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| archived | query | boolean | no | Whether to return only results that have been archived. |
| includeAssociationDefinitions | query | boolean | no | Whether to include association definitions in the response. Defaults to true. |
| includeAuditMetadata | query | boolean | no | Whether to include audit metadata in the response. Defaults to true. |
| includePropertyDefinitions | query | boolean | no | Whether to include property definitions in the response. Defaults to true. |
Responses
| Status | Content types | Description |
|---|---|---|
| 200 | application/json | List object schemas succeeded; inspect the returned resource or result collection. |
| 400 | application/json | VALIDATION_ERROR rejects invalid properties or stage rules; supply errors[0].context.properties when requirements are missing, or choose an allowed stage. BAD_REQUEST rejects malformed input; correct the request before retrying. |
| 401 | application/json | The bearer credential is missing or invalid; provide a valid platform API key before retrying. |
| 404 | application/json | OBJECT_NOT_FOUND means an object type, record or definition is unavailable in your organization; select an accessible identifier from its list operation. |