PayPal
Get PayPal Access Token
Gets the access token the other PayPal tools need. The bot calls this first.
Unverified
What the model is told
Get an access token for PayPal. Call this once before any other PayPal tool, then pass the access_token value from the response to those tools. Never read the token aloud or share it with the customer. If a PayPal tool returns a 401, call this again to get a fresh token.
Request
POSThttps://api-m.paypal.com/v1/oauth2/token
Headers
Content-Typeapplication/x-www-form-urlencodedAuthorizationBasic YOUR_BASE64_PAYPAL_CLIENT_ID_AND_SECRET
Body
grant_type=client_credentialsParameters
None.
Engage payload
{
"source": "VOICE_AI",
"tool": {
"id": "ca7d8d0b-b5aa-469e-adbf-08fe772ba063",
"type": "HTTP_REQUEST",
"label": "Get PayPal Access Token",
"name": "get_paypal_access_token",
"customName": false,
"description": "Get an access token for PayPal. Call this once before any other PayPal tool, then pass the access_token value from the response to those tools. Never read the token aloud or share it with the customer. If a PayPal tool returns a 401, call this again to get a fresh token.",
"parameters": [],
"config": {
"endpoint": {
"method": "POST",
"url": "https://api-m.paypal.com/v1/oauth2/token"
},
"headers": [
{
"name": "Content-Type",
"value": "application/x-www-form-urlencoded"
},
{
"name": "Authorization",
"value": "Basic YOUR_BASE64_PAYPAL_CLIENT_ID_AND_SECRET"
}
],
"body": "grant_type=client_credentials",
"timeout": null
}
}
}IDs are regenerated on every copy.