Skip to main content
Get up and running with the HoopAI Platform API. By the end of this guide, you’ll have made your first API call and retrieved contacts from an account.

Prerequisites

For quick testing, use a Private Integration — it gives you a long-lived API key without the full OAuth flow. Go to Settings > Integrations > Private Integrations in your HoopAI account.

Make your first API call

1

Set your credentials

export HOOPAI_TOKEN='your-access-token'
export LOCATION_ID='your-location-id'
2

Fetch contacts

curl -X GET "https://services.leadconnectorhq.com/contacts/?locationId=$LOCATION_ID&limit=5" \
  -H "Authorization: Bearer $HOOPAI_TOKEN" \
  -H "Version: 2021-07-28"

Example response

{
  "contacts": [
    {
      "id": "abc123",
      "name": "Jane Smith",
      "email": "jane@example.com",
      "phone": "+15551234567",
      "tags": ["lead", "website-visitor"],
      "dateAdded": "2025-01-15T10:30:00.000Z"
    }
  ],
  "meta": {
    "total": 142,
    "currentPage": 1,
    "nextPage": 2
  }
}

What just happened?

  1. You sent a GET request to the Contacts API
  2. The Authorization header carried your OAuth bearer token
  3. The Version header (2021-07-28) tells the API which version to use
  4. The API returned contacts scoped to your locationId (account)

Try something more

Create a contact

curl -X POST "https://services.leadconnectorhq.com/contacts/" \
  -H "Authorization: Bearer $HOOPAI_TOKEN" \
  -H "Version: 2021-07-28" \
  -H "Content-Type: application/json" \
  -d '{
    "locationId": "YOUR_LOCATION_ID",
    "name": "Test Contact",
    "email": "test@example.com"
  }'

Send a message

curl -X POST "https://services.leadconnectorhq.com/conversations/messages" \
  -H "Authorization: Bearer $HOOPAI_TOKEN" \
  -H "Version: 2021-07-28" \
  -H "Content-Type: application/json" \
  -d '{
    "type": "SMS",
    "contactId": "CONTACT_ID",
    "message": "Hello from HoopAI!"
  }'

Next steps

Last modified on March 5, 2026