---
title: "Star or unstar a message"
method: PATCH
path: "/v1/messages/{id}/star"
tags: ["messages"]
---

# Star or unstar a message

`PATCH /v1/messages/{id}/star`

## Request

- Base URL: `https://api.replylayer.ai`
- URL: `https://api.replylayer.ai/v1/messages/{id}/star`
- Auth: HTTP bearer

## Path parameters

- `id` string, required

## Request body

- object
  - `starred` boolean, required

## Response `200`

Success

- object
  - `message_id` string, required
  - `starred` boolean, required

## Other responses

- `400`: Validation error (code: VALIDATION_ERROR)
- `401`: Missing or invalid API key
- `403`: Forbidden
- `404`: Not found
- `429`: Rate limited (code: RATE_LIMITED)
- `500`: Internal error (code: INTERNAL_ERROR)

---

[API](https://skmtc.dev/replylayer/apis/replylayer-api.md) · [All operations](https://skmtc.dev/replylayer/apis/replylayer-api/llms.txt) · [OpenAPI document](https://skmtc.dev/replylayer/apis/replylayer-api/revisions/2cae6fbd127e?raw)
