AgenciesCreate agency
Agencies

Create agency

Create a new agency. Agencies group multiple client tenants under a single management entity. Returns 409 Conflict if an agency with the same name already exists.

curl -X POST "https://api.mythic-analytics.com/api/v1/agencies" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -d '{
  "name": "Digital Growth Partners",
  "email": "admin@dgp-agency.com",
  "phone": "+1-212-555-0100",
  "website": "https://dgp-agency.com",
  "metadata": {}
}'
{
  "success": true,
  "data": {
    "id": "agc_7kH3nPqR",
    "name": "Digital Growth Partners",
    "email": "admin@dgp-agency.com",
    "phone": "+1-555-0123",
    "website": "example_string",
    "metadata": {},
    "client_count": 15,
    "created_at": "2024-02-10T14:00:00.000Z",
    "updated_at": "2024-06-01T09:15:00.000Z"
  }
}
POST
/agencies
POST
Security Scheme
Bearer Tokenstring
Required

Admin API key as bearer token. Format: Bearer YOUR_ADMIN_KEY

Admin API key as bearer token. Format: Bearer YOUR_ADMIN_KEY
Content-Typestring
Required

The media type of the request body

Options: application/json
namestring
Required

Agency display name.

emailstring

Primary contact email.

Format: email
phonestring

Contact phone number.

websitestring

Agency website URL.

Format: uri
metadataobject

Arbitrary JSON metadata.

Request Preview
Response

Response will appear here after sending the request

Authentication

header
Authorizationstring
Required

Bearer token. Admin API key as bearer token. Format: Bearer YOUR_ADMIN_KEY

Body

application/json
namestring
Required

Agency display name.

emailstring

Primary contact email.

phonestring

Contact phone number.

websitestring

Agency website URL.

metadataobject

Arbitrary JSON metadata.

Responses