---
title: "Add a new message"
method: POST
path: "/contact"
tags: ["contact"]
---

# Add a new message

`POST /contact`

## Request

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

Adds a new messages to the contact us list.

## Request body

- object
  - `name` string, required
  - `email` string, email, required
  - `subject` string, required
  - `message` string, required

## Response `201`

Contact added successfully

- SuccessResponseSchema2
  - `status` string
  - `status_code` integer: The HTTP status code. Usually 200 , 201, 204 etc
  - `message` string: A basic message describing a request was processed successfully. example: "Successfully"

## Other responses

- `400`: Bad Request
- `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)
