OverviewIntroduction
Overview

Agencies Management API

Create, list, update, and delete agencies, and manage GoHighLevel location associations via the Agencies Management API.

Overview

Use the Agencies Management API to manage agency entities in Mythic Analytics. Agencies group multiple client tenants under a single management entity, enabling multi-tenant operations for resellers and white-label partners.

Base URL

All endpoints share the same base URL and version prefix.

https://api.mythic-analytics.com/api/v1

Response envelope

All endpoints return a JSON envelope.

successboolean
Required

Whether the request succeeded.

dataobject|array|null

Resource payload. Shape depends on the endpoint.

countinteger

Total number of matching resources. Present on list endpoints.

errorstring|null

Error message on failed requests.

Key concepts

ConceptDescription
AgencyA management entity that groups related client tenants
LocationA GoHighLevel location linked to an agency for CRM integration
Client countAutomatically tracked number of clients associated with each agency

Error handling

StatusMeaning
400Invalid JSON, missing required fields, or validation error
401Admin key missing or invalid
404Agency not found
409Conflict — duplicate agency name
500Internal server error

Check both the HTTP status code and the error field in the response body for programmatic error handling.