# List regions

> The regions a resource can live in. Routes acting on a regional resource take one as the `region` parameter.

Source: https://docs.stacksync.com/api-reference/workspaces/regions/list_regions

`GET https://api.stacksync.com/v1/regions`

- Operation: `list_regions`
- Resource: Regions
- Access: read-only

## Authentication

- `Authorization: Bearer <key>`: A workspace API key (workspace_…, created by a workspace owner under Workspace settings > Stacksync API) acts with editor rights on that workspace only; a user API key (user_…, created under Profile > Stacksync API) acts as that user in every workspace they belong to. POST, PUT and PATCH requests must send Content-Type: application/json. Every authentication failure answers 403.

## Returns

### 200 OK

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `data` | array of object (Region) | Yes |  |
| `data[].region` | string (besg \| usnv) | Yes |  |
| `data[].location` | string | Yes |  |

## Example request

```bash
curl -X GET "https://api.stacksync.com/v1/regions" \
  -H "Authorization: Bearer $STACKSYNC_API_KEY"
```

## Example response (200)

```json
{
  "data": [
    {
      "region": "besg",
      "location": "<location>"
    }
  ]
}
```

## Errors

| Status | Meaning | Body |
| --- | --- | --- |
| 400 | Bad Request | `{ "error": string, "msg": string, "field": string \| null }` |
| 403 | Forbidden | `{ "error": string, "msg": string, "field": string \| null }` |

## Related

- [API Reference overview](https://docs.stacksync.com/api-reference): base URLs, regions, pagination, idempotency and errors
- [Authentication](https://docs.stacksync.com/api-reference/authentication): API keys and the 403 answers
- OpenAPI document: https://docs.stacksync.com/openapi.json