Zum Hauptinhalt springen
GET
/
crm
/
v3
/
objects
/
contacts
/
{contactId}
コンタクトを取得
curl --request GET \
  --url https://api.hubapi.com/crm/v3/objects/contacts/{contactId} \
  --header 'Authorization: Bearer <token>'
{
  "associations": "{\"companies\":{\"results\":[{\"id\":\"29846388244\",\"type\":\"contact_to_company\"},{\"id\":\"29846388244\",\"type\":\"contact_to_company_unlabeled\"}]}}",
  "createdAt": "2023-11-07T05:31:56Z",
  "archived": true,
  "archivedAt": "2023-11-07T05:31:56Z",
  "propertiesWithHistory": "{\"lastname\":[{\"value\":\"Scout\",\"sourceId\":\"userId:2931299\",\"timestamp\":\"2025-02-11T16:28:13.591Z\",\"sourceType\":\"CRM_UI\",\"updatedByUserId\":2931299},{\"value\":\"S.\",\"sourceId\":\"userId:2931299\",\"timestamp\":\"2025-02-11T15:45:00.400Z\",\"sourceType\":\"CRM_UI\",\"updatedByUserId\":2931299}]}",
  "id": "<string>",
  "objectWriteTraceId": "<string>",
  "properties": "{\"email\":\"mark.s@lumon.industries\",\"lastname\":\"S.\",\"firstname\":\"Mark\",\"createdate\":\"2025-02-11T15:45:00.400Z\",\"hs_object_id\":\"98630638716\",\"lastmodifieddate\":\"2025-02-11T15:52:10.273Z\"}",
  "updatedAt": "2023-11-07T05:31:56Z"
}
次のいずれかの製品またはそれ以上が必要です。
Marketing HubMarketing Hub -無料ツール
Sales HubSales Hub -無料ツール
Service HubService Hub -無料ツール
Content HubContent Hub -無料ツール
この API には、次のいずれかのスコープが必要です。
crm.objects.contacts.read

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Path Parameters

contactId
string
required

The ID of the contact to retrieve.

Query Parameters

properties
string[]

レスポンスで返されるプロパティーのカンマ区切りリスト。指定されたプロパティーがリクエストされたオブジェクトに存在しない場合は、無視されます。

propertiesWithHistory
string[]

以前の値の履歴と一緒に返されるプロパティーのカンマ区切りリスト。指定されたプロパティーがリクエストされたオブジェクトに存在しない場合は、無視されます。

associations
string[]

関連付けられているIDを取得するオブジェクトタイプのカンマ区切りリスト。指定された関連付けが存在しない場合は、無視されます。

archived
boolean
default:false

アーカイブ済みの結果のみを返すかどうか。

Response

successful operation

Represents a CRM object along with its properties, timestamps, and a set of associated object IDs grouped by association type.

createdAt
string<date-time>
required

The timestamp when the object was created, in ISO 8601 format.

id
string
required

The unique ID of the object.

properties
object
required

Key value pairs representing the properties of the object.

Example:

"{\"email\":\"mark.s@lumon.industries\",\"lastname\":\"S.\",\"firstname\":\"Mark\",\"createdate\":\"2025-02-11T15:45:00.400Z\",\"hs_object_id\":\"98630638716\",\"lastmodifieddate\":\"2025-02-11T15:52:10.273Z\"}"

updatedAt
string<date-time>
required

The timestamp when the object was last updated, in ISO 8601 format.

associations
object

A list defining relationships with other objects.

Example:

"{\"companies\":{\"results\":[{\"id\":\"29846388244\",\"type\":\"contact_to_company\"},{\"id\":\"29846388244\",\"type\":\"contact_to_company_unlabeled\"}]}}"

archived
boolean

Whether the object is archived.

archivedAt
string<date-time>

The timestamp when the object was archived, in ISO 8601 format.

propertiesWithHistory
object

Key-value pairs representing the properties of the object along with their history.

Example:

"{\"lastname\":[{\"value\":\"Scout\",\"sourceId\":\"userId:2931299\",\"timestamp\":\"2025-02-11T16:28:13.591Z\",\"sourceType\":\"CRM_UI\",\"updatedByUserId\":2931299},{\"value\":\"S.\",\"sourceId\":\"userId:2931299\",\"timestamp\":\"2025-02-11T15:45:00.400Z\",\"sourceType\":\"CRM_UI\",\"updatedByUserId\":2931299}]}"

objectWriteTraceId
string
I