HaloPSA

Get HaloPSA Access Token

Gets the access token the other HaloPSA tools need. The bot calls this first.

Unverified

What the model is told

Get an access token for HaloPSA. Call this once before any other HaloPSA 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 about an hour, so if a HaloPSA tool returns a 401, call this again to get a fresh token.

Request

POSThttps://YOUR_INSTANCE.halopsa.com/auth/token?tenant=YOUR_HALO_TENANT

Headers

  • Content-Typeapplication/x-www-form-urlencoded

Body

grant_type=client_credentials&client_id=YOUR_HALO_CLIENT_ID&client_secret=YOUR_HALO_CLIENT_SECRET&scope=all

Parameters

None.

Engage payload

{
  "source": "VOICE_AI",
  "tool": {
    "id": "1f897954-826a-4cab-a836-ec3193ebff7d",
    "type": "HTTP_REQUEST",
    "label": "Get HaloPSA Access Token",
    "name": "get_halopsa_access_token",
    "customName": false,
    "description": "Get an access token for HaloPSA. Call this once before any other HaloPSA 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 about an hour, so if a HaloPSA tool returns a 401, call this again to get a fresh token.",
    "parameters": [],
    "config": {
      "endpoint": {
        "method": "POST",
        "url": "https://YOUR_INSTANCE.halopsa.com/auth/token?tenant=YOUR_HALO_TENANT"
      },
      "headers": [
        {
          "name": "Content-Type",
          "value": "application/x-www-form-urlencoded"
        }
      ],
      "body": "grant_type=client_credentials&client_id=YOUR_HALO_CLIENT_ID&client_secret=YOUR_HALO_CLIENT_SECRET&scope=all",
      "timeout": null
    }
  }
}

IDs are regenerated on every copy.