List regions
GET
/v1/a/info/regions
const url = 'https://example.com/v1/a/info/regions';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/v1/a/info/regionsReturns every region a feature-flag rule may scope to, as a short code with its display name, ordered by code.
Rules:
- Every call returns the whole dataset.
- The route takes no credential.
- The list has no paging.
- The list has no filters.
Responses
Section titled “Responses”Permission
This operation needs no permission.
OK
Media typeapplication/json
object
items
required
Array<object>
object
code
required
Carries the region code, lowercase — the value stored in feature-flag rules.
string
name
required
string
Example
{ "items": [ { "code": "eea", "name": "European Economic Area" } ]}