Home
Version 3
Routes API

Routes API

Check a Route exists

GET /v2/routes/reserved/domain/:domain_guid/host/:host?path=:path

Request

Route

GET /v2/routes/reserved/domain/4c31c927-f70a-45d2-8e5b-1c3e50164fa6/host/host-5?path=/apps/v1/path

Parameters

Name Description Valid Values Example Values
domain_guid The guid of a domain
host The host portion of the route
path The path of a route
  • /apps/v1/path
  • /apps/v2/path
path: /apps/v1/path

Body

Name Description Default Valid Values Example Values

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI3NSIsImVtYWlsIjoiZW1haWwtMTkyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzM5ODExMTN9.t1DEEl0i2cKEZ50_ASuuHzi4uR5GQWC3K8epMrvdl3w
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/routes/reserved/domain/4c31c927-f70a-45d2-8e5b-1c3e50164fa6/host/host-5?path=/apps/v1/path" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI3NSIsImVtYWlsIjoiZW1haWwtMTkyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzM5ODExMTN9.t1DEEl0i2cKEZ50_ASuuHzi4uR5GQWC3K8epMrvdl3w" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

204 No Content

Headers

X-VCAP-Request-ID: 92ba5d41-b5fb-4051-ba0e-7b55538d0213
X-Content-Type-Options: nosniff