HubSpot uses owners to assign CRM objects to specific people. These endpoints are used to get a list of available owners for an account.
GET
request to /crm/v3/owners
. The response will return each user’s name, email, ID values, create/update dates, and if applicable, team information. Two ID values are returned, which are used for different purposes:
id
: the ID of the owner. This value should be used when retrieving information about a specific owner, and when assigning an owner to a record or activity.userId
: the ID of the user. This value can be used to specify users in the settings API, but will result in an error if it is used to assign ownership.archived
parameter with the value true
. For archived users, there is still an id
value, but the userId
value will be null
. The user ID is instead stored in the userIdIncludingInactive
field.
For example:
GET
request to /crm/v3/owners/{ownerId}
. You should use the id
value to specify the owner for which you want more details.
updatedAt
value in the response changes based on updates to the Owner object itself. It will not be updated for changes to the User object. For example, changing a user’s permissions will not update the updatedAt
value.