You must be a SuperAdmin or Admin on your AgencyHandy workspace to generate an API key.
Base URL
All API requests are made to:{{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.
Step 2: Make your first call
Send your API key in thex-api-key header. The key belongs to one workspace, so the API reads the workspace from the key and you do not need to send a Company ID. This call returns the key’s workspace ID and the workspaces linked to it:
Endpoint
Headers
Example request
cURL
Example response
companyId is the workspace your API key belongs to. companies also lists any parent or sub-workspaces linked to it; an API key only works for its own workspace, so create a separate key in each workspace you want to automate.
Authentication summary
Every authenticated request needs only your API key:- Base URL: every path starts with
https://api.agencyhandy.com/api/v1. Callinghttps://api.agencyhandy.com/accounts/companieswithout/api/v1returns404 API not found. companyidheader (optional): older examples sendcompanyid: <YOUR_COMPANY_ID>. You can keep sending it, but it must be the key’s own workspace ID. A different ID is refused with403 PermissionError.Authorization: Bearer <YOUR_API_KEY>also works if your tool can only send a bearer token. Send the key in one header only, not both.401 Invalid API key (jwt malformed)means the value is not the full key: copy the whole key when you generate it (the API Key list only shows its last five characters).401 Invalid api tokenmeans the key was deleted.- Each call runs with the permissions of the member who created the key.
cURL

