Skip to main content

Environments and base URLs

Every AgencyMax API is reached through the AgencyMax API gateway. The gateway enforces subscription keys, rate limits and quotas.

Environments​

EnvironmentGatewayPurpose
Testhttps://api-test.agencymax.example.comIntegration development and testing. Data may be reset.
Productionhttps://api.agencymax.example.comLive agency data.

Subscription keys and OAuth clients are issued per environment. A test key or token won't work in production.

tip

Build and test your integration against Test. Releases reach Test before Production, and the API Portal sends its requests to Test. See Developing against Test.

URL structure​

Tenant-scoped API URLs follow this pattern:

https://{gateway}/{api-path}/{tenantIdentifier}/{resource}
SegmentDescription
gatewayThe API gateway host for the environment.
api-pathThe API's path, such as agency-management. The API Portal shows the exact value.
tenantIdentifierYour agency's tenant identifier. See Tenants.
resourceThe resource path, such as agents/A1001.

For example, this URL retrieves agent A1001 for tenant acme:

https://api.agencymax.example.com/agency-management/acme/agents/A1001
note

A few operations are not tenant-scoped. They are shared platform resources, such as Business Insights report recipes, and don't include a tenant segment.

Transport​

  • HTTPS (TLS 1.2 or later) is required.
  • Request and response bodies are JSON (application/json). Error responses use application/problem+json.
  • Send Content-Type: application/json with every request that has a body.