QuickBooks
Get QuickBooks Access Token
Gets the access token the other QuickBooks tools need. The bot calls this first.
Unverified
What the model is told
Get an access token for QuickBooks Online. Call this once before any other QuickBooks tool, then pass the access_token value from the response to those tools. Never read the token aloud or share it with the customer. Tokens last one hour. If a QuickBooks tool returns a 401, call this again to get a fresh token.
Request
POSThttps://oauth.platform.intuit.com/oauth2/v1/tokens/bearer
Headers
Content-Typeapplication/x-www-form-urlencodedAcceptapplication/jsonAuthorizationBasic YOUR_BASE64_QUICKBOOKS_CLIENT_ID_AND_SECRET
Body
grant_type=refresh_token&refresh_token=YOUR_QUICKBOOKS_REFRESH_TOKENParameters
None.
Engage payload
{
"source": "VOICE_AI",
"tool": {
"id": "b64863d4-c6aa-4383-a830-91458a824df2",
"type": "HTTP_REQUEST",
"label": "Get QuickBooks Access Token",
"name": "get_quickbooks_access_token",
"customName": false,
"description": "Get an access token for QuickBooks Online. Call this once before any other QuickBooks tool, then pass the access_token value from the response to those tools. Never read the token aloud or share it with the customer. Tokens last one hour. If a QuickBooks tool returns a 401, call this again to get a fresh token.",
"parameters": [],
"config": {
"endpoint": {
"method": "POST",
"url": "https://oauth.platform.intuit.com/oauth2/v1/tokens/bearer"
},
"headers": [
{
"name": "Content-Type",
"value": "application/x-www-form-urlencoded"
},
{
"name": "Accept",
"value": "application/json"
},
{
"name": "Authorization",
"value": "Basic YOUR_BASE64_QUICKBOOKS_CLIENT_ID_AND_SECRET"
}
],
"body": "grant_type=refresh_token&refresh_token=YOUR_QUICKBOOKS_REFRESH_TOKEN",
"timeout": null
}
}
}IDs are regenerated on every copy.