Skip to content
中文

Retrieve record

Code Mode: praxis.crm.objects.retrieve

HTTP: GET /crm/v1/objects/{objectType}/{objectId}

Read one record by id from objects.list, objects.search or objects.create. Select property names with properties and associated object types with associations; use idProperty only when objectId is a value of that unique property. Use archived=true to inspect an archived record.

Signature

praxis.crm.objects.retrieve(args:{path:{objectId:string;objectType:string};query?:{archived?:boolean;associations?:Array<string>;idProperty?:string;properties?:Array<string>;propertiesWithHistory?:Array<string>}}):Promise<{/** 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}>;

Parameters

NameInTypeRequiredDescription
objectIdpathstringyesRecord id from objects.list, objects.search or objects.create for this objectType.
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.
associationsqueryArray<string>noA comma separated list of object types to retrieve associated IDs for. If any of the specified associations do not exist, they will be ignored.
idPropertyquerystringnoThe name of a property whose values are unique for this object
propertiesqueryArray<string>noA 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.
propertiesWithHistoryqueryArray<string>noA 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.

Responses

StatusContent typesDescription
200application/jsonRetrieve record 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.