---
# System prepended metadata

title: Replies API Documentation

---

# Replies API Documentation

All endpoints require a Bearer token in the `Authorization` header.

**Base URL:** `{{baseUrl}}`

**Authentication Header:**
```
Authorization: Bearer {{token}}
```

---

## Endpoints

### 1. Create a Reply

Posts a reply to an existing comment.

**Method:** `POST`
**Endpoint:** `/reply`

**Request Body** (`application/json`)
```json
{
  "comment_id": "842141c809380660cd8941b43704a319",
  "message": "Your reply text here"
}
```

**Body Parameters**

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `comment_id` | `string` | ✅ | The unique ID of the comment being replied to |
| `message` | `string` | ✅ | The reply text |

**Example Request**
```http
POST {{baseUrl}}/reply
Authorization: Bearer {{token}}
Content-Type: application/json

{
  "comment_id": "842141c809380660cd8941b43704a319",
  "message": "Your reply text here"
}
```

---

### 2. Get All Replies in a Comment

Returns all replies associated with a specific comment.

**Method:** `GET`
**Endpoint:** `/get-replyes-in-comments/:comment_id`

**Path Parameters**

| Parameter | Description |
|-----------|-------------|
| `comment_id` | The unique ID of the comment |

**Example Request**
```http
GET {{baseUrl}}/get-replyes-in-comments/aed0bf4b2e00daf3551c9c43e61930e5
Authorization: Bearer {{token}}
```

---

### 3. Get Single Reply

Returns a single reply by its ID.

**Method:** `GET`
**Endpoint:** `/reply/:reply_id`

**Path Parameters**

| Parameter | Description |
|-----------|-------------|
| `reply_id` | The unique ID of the reply |

**Example Request**
```http
GET {{baseUrl}}/reply/dcc75eb448705a2568b6097dec1cb77f
Authorization: Bearer {{token}}
```

---

### 4. Delete a Reply

Deletes a reply by its ID.

**Method:** `DELETE`
**Endpoint:** `/reply`

**Request Body** (`application/json`)
```json
{
  "reply_id": "231d18352b651cdf3a008d34e21aa74c"
}
```

**Body Parameters**

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `reply_id` | `string` | ✅ | The unique ID of the reply to delete |

**Example Request**
```http
DELETE {{baseUrl}}/reply
Authorization: Bearer {{token}}
Content-Type: application/json

{
  "reply_id": "231d18352b651cdf3a008d34e21aa74c"
}
```

---

## Summary Table

| # | Endpoint Name | Method | URL | Auth |
|---|--------------|--------|-----|------|
| 1 | Create a Reply | `POST` | `/reply` | ✅ |
| 2 | Get All Replies in a Comment | `GET` | `/get-replyes-in-comments/:comment_id` | ✅ |
| 3 | Get Single Reply | `GET` | `/reply/:reply_id` | ✅ |
| 4 | Delete a Reply | `DELETE` | `/reply` | ✅ |