---
title: "Fetch a job post by ID"
method: GET
path: "/jobs/{job_id}"
tags: ["Job Posts"]
---

# Fetch a job post by ID

`GET /jobs/{job_id}`

## Request

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

Fetches the details of a job post by its ID.

## Path parameters

- `job_id` string, required

## Response `200`

Job post fetched successfully

- JobPostResponse
  - `status` string
  - `status_code` integer
  - `message` string
  - `data` JobPost
    - `id` string
    - `title` string
    - `salary_range` string
    - `job_type` string
    - `location` string
    - `deadline` string, date-time
    - `job_mode` string
    - `experience_level` string
    - `how_to_apply` string
    - `benefits` string
    - `company_name` string
    - `description` string
    - `key_responsibilities` string
    - `qualifications` string
    - `created_at` string, date-time
    - `updated_at` string, date-time

## Other responses

- `400`: Invalid ID format
- `404`: Job not found
- `500`: Failed to fetch job post

## Changes

- **2024-08-08** `0e62b1539f9c`: 4 warning, 4 info
  - removed the optional property `data/experience` from the response with the `200` status
  - removed the optional property `data/job_benefits` from the response with the `200` status
  - removed the optional property `data/salary` from the response with the `200` status
  - removed the optional property `data/work_mode` from the response with the `200` status
  - …4 more
- **2024-08-07** `06cecc2ac126`: 4 warning, 4 info
  - removed the optional property `data/benefits` from the response with the `200` status
  - removed the optional property `data/experience_level` from the response with the `200` status
  - removed the optional property `data/job_mode` from the response with the `200` status
  - removed the optional property `data/salary_range` from the response with the `200` status
  - …4 more

[Operation history](https://skmtc.dev/hngprojects/apis/kimiko-golang-swagger/changes/jobs/:job_id/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)
