POST
/
action
/
get_hubspot_owners
Get HubSpot Owners
curl --request POST \
  --url https://api-lr.agent.ai/v1/action/get_hubspot_owners \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "hubspot_portal": "12345678"
}'
{
  "status": 200,
  "response": [
    {
      "id": "12345",
      "email": "[email protected]",
      "firstName": "Sarah",
      "lastName": "Jones",
      "createdAt": "2022-05-10T09:30:22.123Z",
      "updatedAt": "2024-01-18T14:22:45.789Z",
      "teams": [
        "Sales",
        "Marketing"
      ],
      "userRole": "Super Admin"
    },
    {
      "id": "67890",
      "email": "[email protected]",
      "firstName": "Mike",
      "lastName": "Smith",
      "createdAt": "2022-07-15T10:45:33.456Z",
      "updatedAt": "2023-12-05T16:18:21.345Z",
      "teams": [
        "Sales"
      ],
      "userRole": "Standard"
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer token from your account (https://agent.ai/user/integrations#api)

Body

application/json
hubspot_portal
string
required

HubSpot portal ID to retrieve owners from

Example:

"12345678"

Response

200 - application/json

Retrieved HubSpot owners data

status
integer

HTTP status code of the action response

response
object

Response data from the action