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/64f05e1e-22ac-4cc8-9286-655dffb0296d/host/host-2?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.eyJ1c2VyX2lkIjoidWFhLWlkLTIzNSIsImVtYWlsIjoiZW1haWwtMTM5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDU1NTc5NDZ9.rhXAZe2Hli5NP4he3T9EbV4lw3swD_xYpwtSdgQN2iE
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/routes/reserved/domain/64f05e1e-22ac-4cc8-9286-655dffb0296d/host/host-2?path=/apps/v1/path" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIzNSIsImVtYWlsIjoiZW1haWwtMTM5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDU1NTc5NDZ9.rhXAZe2Hli5NP4he3T9EbV4lw3swD_xYpwtSdgQN2iE" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

204 No Content

Headers

X-VCAP-Request-ID: f37d5ffb-9af8-4e90-84c6-08ada4cf910e
X-Content-Type-Options: nosniff