---
title: "Test new destination connection"
method: POST
path: "/test-destination"
tags: ["Destinations"]
---

# Test new destination connection

`POST /test-destination`

Test the connection for a new destination before creating it.

## Request body

- CreateDestinationRequest
  - `destination` union, required
    - object
      - `type` 'webhook_record', required
      - `webhook_record` WebhookRecordOptions, required
        - `request_template` HTTPRequestTemplate, required
          - `method` 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE', required — HTTP method for the request.
          - `uri` string, required — Request URI with template variables.
          - `headers` object — HTTP headers.
          - `body` string — Request body template.
        - `max_records_per_minute` integer — Rate limit for records per minute.
        - `max_concurrency` integer — Maximum concurrent request clients.
      - `name` string, required — Unique name for this destination.
      - `record_schema` unknown, required
    - object
      - `type` 'webhook_batch', required
      - `webhook_batch` WebhookBatchOptions, required
        - `request_template` HTTPRequestTemplate, required
          - `method` 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE', required — HTTP method for the request.
          - `uri` string, required — Request URI with template variables.
          - `headers` object — HTTP headers.
          - `body` string — Request body template.
        - `format` 'parquet' | 'csv' | 'json', required — Batch file format.
        - `max_size_per_batch` integer — Maximum records per batch.
        - `max_batches_per_minute` integer — Rate limit for batches per minute.
        - `max_concurrency` integer — Maximum concurrent request clients.
      - `name` string, required — Unique name for this destination.
      - `record_schema` unknown, required

## Response `200`

OK

- object
  - `status` 'success', required
  - `data` DestinationResponse, required — unresolved $ref
  - `message` string, required

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `404` — Not Found
- `500` — Internal Server Error

---

[API](https://skmtc.dev/prequel/apis/prequel-data-export.md) · [All operations](https://skmtc.dev/prequel/apis/prequel-data-export/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/prequel/prequel-data-export/revisions/09c662a871f8/schema)
