List records
Code Mode: praxis.crm.objects.list
HTTP: GET /crm/v1/objects/{objectType}
Browse records of one object type and obtain ids for retrieval or edits. Discover objectType with schemas.list; select properties by internal names from properties.list. Omit after for the first page, then copy paging.next.after until no next page is returned. archived defaults to false; use objects.search for property filters.
签名
praxis.crm.objects.list(args:{path:{objectType:string};query?:{after?:string;archived?:boolean;associations?:Array<string>;/** e.g. 0 */ limit?:number;properties?:Array<string>;propertiesWithHistory?:Array<string>}}):Promise<{/** Pagination links and opaque continuation cursors; absence of next marks the final page. */ paging?:{/** Continuation cursor for the following page; omit further calls when this member is absent. */ next?:{/** A paging cursor token for retrieving subsequent pages. */ after:string;/** A URL that can be used to retrieve the next page results. */ link?:string}};/** Resources returned by this request; batch callers must also inspect per-input errors. */ results:Array<{/** Whether the object is archived. */ archived:boolean;/** The timestamp when the object was archived, in ISO 8601 format. e.g. "2026-10-29T12:00:00Z" */ archivedAt?:string;/** A list defining relationships with other objects. */ associations?:{[key:string]:{/** Pagination links and opaque continuation cursors; absence of next marks the final page. */ paging?:{/** Continuation cursor for the following page; omit further calls when this member is absent. */ next?:{/** A paging cursor token for retrieving subsequent pages. */ after:string;/** A URL that can be used to retrieve the next page results. */ link?:string};/** Continuation cursor and link for the preceding page, when available. */ prev?:{/** A paging cursor token for retrieving previous pages. */ before:string;/** A URL that can be used to retrieve the previous pages' results. */ link?:string}};/** Resources returned by this request; batch callers must also inspect per-input errors. */ results:Array<{/** Associated destination record identifier; retrieve it using the destination object type. */ id:string;/** The type of association. e.g. "deal_to_contact" */ type:string}>}};/** The timestamp when the object was created, in ISO 8601 format. e.g. "2026-10-29T12:00:00Z" */ createdAt:string;/** The unique ID of the object. */ id:string;/** An identifier used for tracing the creation or update request of the object. */ objectWriteTraceId?:string;/** Key value pairs representing the properties of the object. */ properties:{[key:string]:string|null};/** Key-value pairs representing the properties of the object along with their history. */ propertiesWithHistory?:{[key:string]:Array<{/** Identifier of the source that recorded this property value. */ sourceId?:string;/** A human-readable label. */ sourceLabel?:string;/** Source category that produced this historic property value. */ sourceType:string;/** The timestamp when the property was updated, in ISO 8601 format. e.g. "2026-10-29T12:00:00Z" */ timestamp:string;/** The ID of the user who last updated the property. e.g. 0 */ updatedByUserId?:number;/** Property value recorded at timestamp, represented as a string. */ value:string}>};/** The timestamp when the object was last updated, in ISO 8601 format. e.g. "2026-10-29T12:00:00Z" */ updatedAt:string;/** Direct URL for this object in CRM */ url?:string}>}>;参数
| 名称 | 位置 | 类型 | 必填 | 说明 |
|---|---|---|---|---|
| objectType | path | string | 是 | Object type name from schemas.list, such as contacts, companies, deals or a custom p_<name>. |
| after | query | string | 否 | The paging cursor token of the last successfully read resource will be returned as the `paging.next.after` JSON property of a paged response containing more results. |
| archived | query | boolean | 否 | Whether to return only results that have been archived. |
| associations | query | Array<string> | 否 | A comma separated list of object types to retrieve associated IDs for. If any of the specified associations do not exist, they will be ignored. |
| limit | query | number | 否 | The maximum number of results to display per page. |
| properties | query | Array<string> | 否 | A comma separated list of the properties to be returned in the response. If any of the specified properties are not present on the requested object(s), they will be ignored. |
| propertiesWithHistory | query | Array<string> | 否 | A comma separated list of the properties to be returned along with their history of previous values. If any of the specified properties are not present on the requested object(s), they will be ignored. Usage of this parameter will reduce the maximum number of objects that can be read by a single request. |
响应
| 状态码 | 内容类型 | 说明 |
|---|---|---|
| 200 | application/json | List records 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. |