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: Retrieve your Company ID
Most API endpoints require acompanyid 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:
