Skip to content

Your Own Domain

The address you give a partner is the most permanent thing you give them. It ends up in their configuration, their deployment scripts and their change-control records, and getting it back later means asking every one of them to do work.

So it should be an address you own. Not ours.

By default an API is published on the gateway’s own host, which is fine for an evaluation and fine for internal consumers. For anything you hand to a partner, put it on a hostname you control — api.yourcompany.com, or whatever fits your estate.

When you do, the host is yours end to end:

On the gateway hostOn your own domain
Base URLalpha.gateway.apiway.net/{api}-v1https://api.yourcompany.com
Path prefixThe API’s prefixNone — your host is the root
OpenID discoveryOn the gateway hosthttps://api.yourcompany.com/.well-known/openid-configuration
Token endpointOn the gateway hostOn your domain

That last pair matters more than it looks. A partner’s OAuth client is configured with a discovery URL, so if that points at us, your identity surface is ours too. On your own domain the whole exchange — discovery, token, the calls themselves — happens at an address you own.

It is a field on the API, not a separate system:

Terminal window
curl -X PATCH https://core.api.apiway.net/v1/apis/{id} \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{ "customDomains": "api.yourcompany.com" }'

The hostname is carried into the deployment package and reaches the gateway on the next deployment, the same path every other change takes. Nothing about your contract, your subscriptions or your consumers’ credentials changes because the host did.

Moving a partner from one host to another is the one change this platform cannot make invisible. Everything else about going live is designed so your consumers never notice — the stand-in becomes your real service underneath a layer built not to care. The host is different, because the host is the thing they wrote down.

So the sequence that avoids the only unavoidable break:

  1. Decide the hostname before you invite anybody.
  2. Put it on the environment that will serve them in the end, not a development one.
  3. Hand out that URL and those credentials.
  4. Build and release underneath it as often as you like.

This is the part worth being blunt about, because it is usually where a platform quietly keeps you.

If your partners integrated against our hostname, that hostname is ours, and moving away means every partner re-points and re-credentials. That is a genuine cost and it is a genuine reason to hesitate.

If they integrated against yours, there is nothing to move. The domain is yours, the DNS is yours, and where it points is a decision you make. Combined with the fact that your contracts, history and subscriptions are readable at any time, what you would be leaving with is the whole thing, at the address your partners already hold.

We would rather you stayed because the platform is worth it.

See also: From Mock to Real · Environments · Exit and Continuous Audit