---
title: "Validate Message for Target"
method: POST
path: "/streaming/v2/targets/{id}/validate-message"
tags: ["target"]
---

# Validate Message for Target

`POST /streaming/v2/targets/{id}/validate-message`

Sends a message template to the specified target and returns whether the message is valid.

## Path parameters

- `id` string, uuid, required

## Request body

- ValidateTarget
  - `protocol` string, required — The protocol used by the target (e.g., http, https, webhook).
  - `type` string, required — The target type.
  - `template` union, required
    - string, uuid — An ID representing a specific template.
    - 'UNIFIED_V1' | 'UNIFIED_V1_RAW' | 'ALL_DATA' | 'INPUT_EMAIL' | 'OUTPUT_EMAIL' | 'TX_EMAIL' — Available predefined templates that can be used for event formatting

## Response `200`

Target Validated

- ValidateTargetResult
  - `status` 'success' | 'failed', required
  - `error_status_code` integer
  - `error_response_message` string
  - `duration` string, required

## Other responses

- `default` — Unexpected error

---

[API](https://skmtc.dev/blockdaemon/apis/staking-api.md) · [All operations](https://skmtc.dev/blockdaemon/apis/staking-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/blockdaemon/staking-api/revisions/f94e296a08a3/schema)
