---
title: "Get all regions"
method: GET
path: "/regions"
tags: ["region"]
---

# Get all regions

`GET /regions`

## Request

- Base URL: `https://staging.api-golang.boilerplate.hng.tech/api/v1`
- URL: `https://staging.api-golang.boilerplate.hng.tech/api/v1/regions`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/hngprojects/apis/kimiko-golang-swagger/docs/regions/get.ts> (a function with typed inputs; its response is checked against the schema)

Retrieves a list of all available regions.

## Response `200`

A list of regions

- RegionSchema[]
  - `name` string
  - `code` string

## Other responses

- `400`: Bad request error
- `401`: Authentication error

---

[API](https://skmtc.dev/hngprojects/apis/kimiko-golang-swagger.md) - [All operations](https://skmtc.dev/hngprojects/apis/kimiko-golang-swagger/llms.txt) - [OpenAPI document](https://skmtc.dev/hngprojects/apis/kimiko-golang-swagger/revisions/2d1d3ed96bb9?raw)
