---
title: "retrieve a single blog post"
method: GET
path: "/blogs/{blogId}"
tags: ["blogs"]
---

# retrieve a single blog post

`GET /blogs/{blogId}`

## Request

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

## Path parameters

- `blogId` integer, required

## Response `200`

Successful response

- object
  - `status` string
  - `status_code` integer
  - `message` string
  - `data` object
    - `id` string, uuid
    - `title` string
    - `content` string
    - `image_url` string
    - `category` string
    - `author` string
    - `author_id` string, uuid
    - `created_at` string, date-time

## Other responses

- `400`: Bad request
- `404`: Not found
- `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)
