Skip to content
中文

Batch read records

Code Mode: praxis.crm.objects.batch.read

HTTP: POST /crm/v1/objects/{objectType}/batch/read

Read a set of known record ids in one call; use objects.search to discover ids first. Supply inputs with ids plus requested properties; set idProperty only when the inputs use unique-property values rather than record ids.

Signature

praxis.crm.objects.batch.read(args:{path:{objectType:string};query?:{archived?:boolean};body:{/** When using a custom unique value property to retrieve records, the name of the property. */ idProperty?:string;/** Records to process in this batch, each using the identifiers and properties described by its item schema. */ inputs:Array<{/** The unique ID of the object. e.g. "430001" */ id:string}>;/** Internal property names to include in each returned record; obtain them from properties.list. */ properties:Array<string>;/** Internal property names whose previous values should be returned with each record; use an empty array when no history is needed. */ propertiesWithHistory:Array<string>}}):Promise<{/** The timestamp when the batch processing was completed, in ISO 8601 format. e.g. "2026-10-29T12:00:00Z" */ completedAt:string;/** Per-input failures; correct the rejected inputs before submitting them again. */ errors?:Array<{/** The main category of the error. */ category:string;/** Additional context-specific information related to the error. */ context:{[key:string]:Array<string>};/** The detailed error objects. */ errors:Array<{/** The status code associated with the error detail */ code?:string;/** The context for the error. e.g. "{\"missingScopes\": [\"scope1\", \"scope2\"]}" */ context?:{[key:string]:Array<string>};/** The name of the field or parameter in which the error was found. */ in?:string;/** A human readable message describing the error along with remediation steps where appropriate */ message:string;/** A specific category that contains more specific detail about the error */ subCategory?:string}>;/** A unique ID for the error instance. */ id?:string;/** URLs linking to documentation or resources associated with the error. */ links:{[key:string]:string};/** A human-readable string describing the error and possible remediation steps. */ message:string;/** The HTTP status code associated with the error. */ status:string;/** A more specific error category within each main category. */ subCategory?:Record<string,unknown>}>;/** An object containing relevant links related to the batch request. */ links?:{[key:string]:string};/** The total number of errors that occurred during the batch operation. e.g. 0 */ numErrors?:number;/** The timestamp when the batch request was initially made, in ISO 8601 format. e.g. "2026-10-29T12:00:00Z" */ requestedAt?: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;/** 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 write request for 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 the portal */ url?:string}>;/** The timestamp when the batch processing began, in ISO 8601 format. e.g. "2026-10-29T12:00:00Z" */ startedAt:string;/** The status of the batch processing request. e.g. "CANCELED" */ status:"CANCELED"|"COMPLETE"|"PENDING"|"PROCESSING"}>;

Parameters

NameInTypeRequiredDescription
objectTypepathstringyesObject type name from schemas.list, such as contacts, companies, deals or a custom p_<name>.
archivedquerybooleannoWhether to return only results that have been archived.

Request body

RequiredContent typesDescription
yesapplication/jsonValues for batch read records; use internal property names and resource ids from the corresponding list operations.

Responses

StatusContent typesDescription
200application/jsonBatch read records 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.