Skip to main content
The AgencyHandy API lets you automate lead creation, client management, order updates, and more from any external system or script. Every request is authenticated with an API key that you generate from your workspace settings. This guide walks you through obtaining your credentials and making your first API call.
You must be a SuperAdmin or Admin on your AgencyHandy workspace to generate an API key.

Base URL

All API requests are made to:
Replace {{URL}} with this base URL in all example requests throughout the API documentation.

Step 1: Generate an API key

1

Open Workspace Configuration

Navigate to your workspace settings at:
This opens the API Key tab inside Workspace Configuration.
2

Generate and copy your API key

Click Generate (or Regenerate if a key already exists). Copy the API key and store it securely — treat it like a password. AgencyHandy will not display it again after you leave the page.
Regenerating your API key immediately invalidates the previous key. Any existing integrations using the old key will stop working until you update them with the new key.

Step 2: Retrieve your Company ID

Most API endpoints require a companyid header that identifies which workspace the request targets. Use the following endpoint to fetch your Company ID.

Endpoint

Headers

Example request

cURL

Example response

1

Locate your Company ID

In the response, find the _id field inside the companies array. This is your Company ID.
2

Store the Company ID

Save the Company ID for use in all subsequent API requests. You will pass it as the companyid header:

Authentication summary

Every authenticated API request requires at minimum:
With your API key and Company ID in hand, you are ready to use the rest of the AgencyHandy API. Continue to one of the endpoint guides below.