> For the complete documentation index, see [llms.txt](https://dev.guardian.hedera.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://dev.guardian.hedera.com/guardian/standard-registry/policies/tools/tools-apis/retrieves-hedera-message-id.md).

# Retrieves Hedera Message ID

**`GET /api/v1/tools/{id}/export/message`**

Returns the Hedera message ID for the specified tool published onto IPFS.

**Authentication:** Bearer token required (`Authorization: Bearer <token>`)

**Permission:** `Permissions.TOOLS_TOOL_READ`

***

## Request

### Path Parameters

| Parameter | Type   | Required | Description                |
| --------- | ------ | -------- | -------------------------- |
| `id`      | string | Yes      | Tool ID (MongoDB ObjectId) |

***

## Response

### Success Response

**Status:** `200 OK`

```json
{
  "id": "63e3e5e8a01b3c001234abcd",
  "name": "My Tool",
  "messageId": "1700000000.000000001",
  "owner": "did:hedera:testnet:zHcDLGFNymFAJiMBKnpbHDgjvTn6yZnwkPPeFhtJBECH_0.0.4532001"
}
```

### Error Responses

| Status                      | Description                |
| --------------------------- | -------------------------- |
| `401 Unauthorized`          | Missing or invalid token   |
| `403 Forbidden`             | Insufficient permissions   |
| `422 Unprocessable Entity`  | `id` is missing or invalid |
| `500 Internal Server Error` | Unexpected server failure  |
