---
title: "Get a contact by ID"
method: GET
path: "/contact/id/{id}"
tags: ["contact"]
---

# Get a contact by ID

`GET /contact/id/{id}`

## Request

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

Retrieves a specific contact by its ID.

## Path parameters

- `id` string, uuid, required

## Response `200`

Contact details

- ContactSchema
  - `id` string, uuid, required
  - `name` string, required
  - `email` string, email, required
  - `subject` string, required
  - `message` string, required

## Other responses

- `400`: Bad Request
- `401`: Authentication error
- `404`: Contact not found
- `422`: Unprocessable Entity
- `500`: Server 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)
