# Delete an agent message and everything after it

```http
POST https://hiresweep.com/api/openapi/agent/messages/truncate
x-api-key: YOUR_API_KEY
```

## Request body

```json
{
  "type": "object",
  "properties": {
    "threadId": {
      "type": "string"
    },
    "messageId": {
      "type": "string",
      "minLength": 1
    }
  },
  "required": [
    "threadId",
    "messageId"
  ]
}
```

## Responses

- `200`: OK
