Skip to content
Coritan Docs

Client API: External Servers

Put a server you host yourself behind the game proxy: connection, tests and branding.

View as Markdown

Put a server you host yourself behind the game proxy: connection, tests and branding.

Base URL: https://api.coritan.com/api/v1. Paths below are complete.

To try these requests in the browser, open the interactive Client API reference.

Method Path Summary
GET /api/v1/client/external-servers List external servers
GET /api/v1/client/external-servers/regions Regions a new or existing external server can be served from
GET /api/v1/client/external-servers/{service_id} Get external server
PATCH /api/v1/client/external-servers/{service_id} Change where players are forwarded, how, and through which region
GET /api/v1/client/external-servers/{service_id}/custom-domain Get custom domain
POST /api/v1/client/external-servers/{service_id}/custom-domain Link custom domain
PATCH /api/v1/client/external-servers/{service_id}/custom-domain Show the vanity hostname, or the hosted one, in the public server list
DELETE /api/v1/client/external-servers/{service_id}/custom-domain Unlink custom domain
POST /api/v1/client/external-servers/{service_id}/custom-domain/verify Check the CNAME now rather than waiting for the next maintenance pass
POST /api/v1/client/external-servers/{service_id}/test Status-ping the backend now and record the answer

GET /api/v1/client/external-servers

Authentication: an access token, sent as Authorization: Bearer <token>.

Status Meaning
200 Success.

Regions a new or existing external server can be served from

Section titled Regions a new or existing external server can be served from

GET /api/v1/client/external-servers/regions

Regions a new or existing external server can be served from.

Authentication: an access token, sent as Authorization: Bearer <token>.

Status Meaning
200 Success.

GET /api/v1/client/external-servers/{service_id}

Authentication: an access token, sent as Authorization: Bearer <token>.

Name In Type Required
service_id path integer yes
Status Meaning
200 Success.
422 The request is not valid. detail lists each problem.

Change where players are forwarded, how, and through which region

Section titled Change where players are forwarded, how, and through which region

PATCH /api/v1/client/external-servers/{service_id}

Change where players are forwarded, how, and through which region.

Authentication: an access token, sent as Authorization: Bearer <token>.

Name In Type Required
service_id path integer yes

application/json (required)

Field Type Required
upstream_host string or null no
upstream_port integer or null no
proxy_protocol boolean or null no
real_ip boolean or null no
mode string or null no
bedrock_bridge boolean or null no
location_id integer or null no
display_name string or null no
Status Meaning
200 Success.
422 The request is not valid. detail lists each problem.

GET /api/v1/client/external-servers/{service_id}/custom-domain

Authentication: an access token, sent as Authorization: Bearer <token>.

Name In Type Required
service_id path integer yes
Status Meaning
200 Success.
422 The request is not valid. detail lists each problem.

POST /api/v1/client/external-servers/{service_id}/custom-domain

Authentication: an access token, sent as Authorization: Bearer <token>.

Name In Type Required
service_id path integer yes

application/json (required)

Field Type Required
domain string yes
subdomain string no
include_in_list boolean no
Status Meaning
200 Success.
422 The request is not valid. detail lists each problem.

Show the vanity hostname, or the hosted one, in the public server list

Section titled Show the vanity hostname, or the hosted one, in the public server list

PATCH /api/v1/client/external-servers/{service_id}/custom-domain

Show the vanity hostname, or the hosted one, in the public server list. This is the same switch the org portal has, for platform-direct customers.

Authentication: an access token, sent as Authorization: Bearer <token>.

Name In Type Required
service_id path integer yes

application/json (required)

Field Type Required
include_in_list boolean yes
Status Meaning
200 Success.
422 The request is not valid. detail lists each problem.

DELETE /api/v1/client/external-servers/{service_id}/custom-domain

Authentication: an access token, sent as Authorization: Bearer <token>.

Name In Type Required
service_id path integer yes
Status Meaning
200 Success.
422 The request is not valid. detail lists each problem.

Check the CNAME now rather than waiting for the next maintenance pass

Section titled Check the CNAME now rather than waiting for the next maintenance pass

POST /api/v1/client/external-servers/{service_id}/custom-domain/verify

Check the CNAME now rather than waiting for the next maintenance pass.

Authentication: an access token, sent as Authorization: Bearer <token>.

Name In Type Required
service_id path integer yes
Status Meaning
200 Success.
422 The request is not valid. detail lists each problem.

Status-ping the backend now and record the answer

Section titled Status-ping the backend now and record the answer

POST /api/v1/client/external-servers/{service_id}/test

Status-ping the backend now and record the answer.

Authentication: an access token, sent as Authorization: Bearer <token>.

Name In Type Required
service_id path integer yes
Status Meaning
200 Success.
422 The request is not valid. detail lists each problem.