---
title: "Get user region"
method: GET
path: "/users/{userId}/regions"
tags: ["user"]
---

# Get user region

`GET /users/{userId}/regions`

## Request

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

Retrieves the region information for a specific user.

## Path parameters

- `userId` string, uuid, required

## Response `200`

User region retrieved successfully

- UserRegionResponseSchema
  - `status` string
  - `status_code` integer
  - `message` string
  - `data` object
    - `id` string, uuid
    - `userId` string, uuid
    - `region_id` string, uuid
    - `timezone_id` string, uuid
    - `language_id` string, uuid
    - `created_at` string, date-time
    - `updated_at` string, date-time

## Other responses

- `400`: Bad request
- `401`: Unauthorized
- `404`: Not found
- `500`: Server error

## Changes

- **2024-08-08** `0e62b1539f9c`: 1 warning, 1 info
  - removed the optional property `data/userId` from the response with the `200` status
  - added the optional property `data/user_id` to the response with the `200` status
- **2024-08-08** `f1df6cef9614`: 1 warning, 1 info
  - removed the optional property `data/userId` from the response with the `200` status
  - added the optional property `data/user_id` to the response with the `200` status
- **2024-08-07** `06cecc2ac126`: 1 warning, 1 info
  - removed the optional property `data/userId` from the response with the `200` status
  - added the optional property `data/user_id` to the response with the `200` status

[Operation history](https://skmtc.dev/hngprojects/apis/kimiko-golang-swagger/changes/users/:userId/regions/get.md)

---

[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)
