跳转到内容
EN

List properties

Code Mode: praxis.crm.properties.list

HTTP: GET /crm/v1/properties/{objectType}

Inspect the property definitions available for an object type before writing or filtering records. Obtain objectType from schemas.list; reuse each immutable name in record properties and filters. archived defaults to false.

签名

praxis.crm.properties.list(args:{path:{objectType:string};query?:{archived?:boolean;/** e.g. "highly_sensitive" */ dataSensitivity?:"highly_sensitive"|"non_sensitive"|"sensitive";locale?:string;properties?:string}}):Promise<{/** An array of Property objects, each representing a specific property associated with the object type. */ results: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;/** Represents a formula that is used to compute a calculated property. */ calculationFormula?:string;/** The timestamp when the property was created, in ISO 8601 format. e.g. "2026-10-29T12:00:00Z" */ createdAt?:string;/** The internal user ID of the user who created the property in CRM. */ createdUserId?:string;/** The name of the currency property associated with this property, if applicable. */ currencyPropertyName?:string;/** The sensitivity level of the data. e.g. "highly_sensitive" */ dataSensitivity?:"highly_sensitive"|"non_sensitive"|"sensitive";/** Indicates how date values should be displayed, with options such as 'absolute', 'absolute_with_relative', 'time_since', or '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;/** Properties are shown in order, starting with the lowest positive integer value. 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;/** Whether or not the property will be hidden from the CRM UI. 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?:{/** Specifies whether the property can be archived. */ archivable:boolean;/** Indicates whether the property's definition is read-only and cannot be modified. */ readOnlyDefinition:boolean;/** Indicates whether the property's options are read-only and cannot be modified. */ readOnlyOptions?:boolean;/** Indicates whether the property's value is read-only and cannot be modified. */ readOnlyValue:boolean};/** The internal property name, which must be used when referencing the property via the API. */ name:string;/** A hint for displaying number properties. 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 indicating the sensitivity of the data contained in the property. */ sensitiveDataCategories?:Array<string>;/** Whether or not the property will display the currency symbol set in the account settings. */ showCurrencySymbol?:boolean;/** A hint for displaying text properties. 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;/** The timestamp when the property was last updated, in ISO 8601 format. e.g. "2026-10-29T12:00:00Z" */ updatedAt?:string;/** The internal user ID of the user who updated the property in CRM. */ updatedUserId?:string}>}>;

参数

名称位置类型必填说明
objectTypepathstring是Object type name from schemas.list, such as contacts, companies, deals or a custom p_<name>.
archivedqueryboolean否Whether to return only results that have been archived.
dataSensitivityquery“highly_sensitive” | “non_sensitive” | “sensitive”否Filter properties based on data sensitivity level. Valid values are ‘non_sensitive’, ‘sensitive’, and ‘highly_sensitive’. Defaults to ‘non_sensitive’.
localequerystring否Specify the locale to retrieve properties in a particular language or regional format.
propertiesquerystring否A comma-separated list of property names to include in the response.

响应

状态码内容类型说明
200application/jsonList properties succeeded; inspect the returned resource or result collection.
400application/jsonVALIDATION_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.
401application/jsonThe bearer credential is missing or invalid; provide a valid platform API key before retrying.
404application/jsonOBJECT_NOT_FOUND means an object type, record or definition is unavailable in your organization; select an accessible identifier from its list operation.