Skip to content
Skip to Content
Coder Docs

Get site-wide regions for workspace connections

GET
/api/v2/regions

Authorization

CoderSessionToken
headerCoder-Session-Token<token>

Response Body

OK

application/json
  1. response
regions?array<>

The samples read CODER_URL and CODER_SESSION_TOKEN: set up your environment.

curl -X GET \	"$CODER_URL/api/v2/regions" \	-H "Coder-Session-Token: $CODER_SESSION_TOKEN"
Example Response200
{  "regions": [    {      "display_name": "string",      "healthy": true,      "icon_url": "string",      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "name": "string",      "path_app_url": "string",      "wildcard_hostname": "string"    }  ]}