HAC API Development & Integration 2 — Questions and Answers
Question 1: Which HubSpot API endpoint is used to retrieve a list of all contacts?
- GET /crm/v3/objects/contacts (Correct answer)
- POST /crm/v3/objects/contacts
- GET /contacts/v1/lists/all/contacts/all
- PUT /crm/v3/objects/contacts
Correct answer: GET /crm/v3/objects/contacts
The CRM v3 API uses GET /crm/v3/objects/contacts to retrieve a paginated list of all contacts.
Question 2: What does the HubSpot API use to paginate large result sets in CRM v3 endpoints?
- offset and limit parameters
- Cursor-based pagination with an 'after' token (Correct answer)
- page and per_page parameters
- skip and take parameters
Correct answer: Cursor-based pagination with an 'after' token
HubSpot CRM v3 APIs use cursor-based pagination with an 'after' token returned in the paging object.
Question 3: What is the maximum number of records returned per page in a HubSpot CRM v3 API list call?
- 10
- 50
- 100 (Correct answer)
- 1000
Correct answer: 100
HubSpot CRM v3 API returns up to 100 records per page, controllable via the 'limit' parameter.
Question 4: Which HTTP method should be used to partially update an existing HubSpot CRM object?
- PUT
- POST
- PATCH (Correct answer)
- DELETE
Correct answer: PATCH
PATCH is used for partial updates to HubSpot CRM objects, modifying only the specified properties.
Question 5: In HubSpot's OAuth 2.0 flow, what is the purpose of the refresh token?
- It authenticates the initial API request
- It is used to obtain a new access token when the current one expires (Correct answer)
- It verifies the user's identity in HubSpot
- It resets the API rate limit counter
Correct answer: It is used to obtain a new access token when the current one expires
Refresh tokens allow apps to obtain new access tokens without requiring the user to re-authorize after the short-lived access token expires.
Question 6: Which HubSpot API scope is required to read and write contact records via the CRM v3 API?
- crm.objects.contacts.read and crm.objects.contacts.write (Correct answer)
- contacts.read and contacts.write
- crm.contacts.all
- hubspot.contacts.rw
Correct answer: crm.objects.contacts.read and crm.objects.contacts.write
CRM v3 scopes follow the pattern crm.objects.{object}.read and crm.objects.{object}.write for granular access control.
Question 7: What type of HubSpot API integration uses a private app token instead of OAuth?
- Public app integrations distributed via the marketplace
- Server-to-server integrations for a single portal (Correct answer)
- Integrations requiring user-level permissions
- Integrations needing multi-portal access
Correct answer: Server-to-server integrations for a single portal
Private apps use a static access token and are designed for server-to-server integrations within a single HubSpot portal.
Which HubSpot API endpoint is used to retrieve a list of all contacts?