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/40c5378a-12b7-4da9-abd0-840310297bf6/host/host-17?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

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM1OCIsImVtYWlsIjoiZW1haWwtMjQ5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDE2NjI2MTV9.AJ-JRuQU-T9IODhn-8nw6uEkUgAJ_Hg60oXj2IZ30Vg
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/routes/reserved/domain/40c5378a-12b7-4da9-abd0-840310297bf6/host/host-17?path=/apps/v1/path" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM1OCIsImVtYWlsIjoiZW1haWwtMjQ5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDE2NjI2MTV9.AJ-JRuQU-T9IODhn-8nw6uEkUgAJ_Hg60oXj2IZ30Vg" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

204 No Content

Headers

X-VCAP-Request-ID: 8a5bd15e-5532-4943-9039-8e6145493eff
X-Content-Type-Options: nosniff