--- title: destination full: true --- import { Root, API, APIInfo, APIExample, Responses, Response, ResponseTypes, ExampleResponse, TypeScriptResponse, Property, ObjectCollapsible, Requests, Request } from "fumadocs-ui/components/api"; ## destination-create ### Authorization "} required={true}> In: `header` ### Request Body Minimum length: `1` | Status code | Description | | ----------- | ----------- | | `200` | Successful response | | `default` | Error response | ```bash curl -X POST "http://localhost:3000/api/destination.create" \ -d '{ "name": "string", "accessKey": "string", "bucket": "string", "region": "string", "endpoint": "string", "secretAccessKey": "string" }' ``` ```js fetch("http://localhost:3000/api/destination.create", { method: "POST" }); ``` ```json { "message": "string", "code": "string", "issues": [ { "message": "string" } ] } ``` ```ts export interface Response { message: string; code: string; issues?: { message: string; }[]; } ``` ## destination-testConnection ### Authorization "} required={true}> In: `header` ### Request Body Minimum length: `1` | Status code | Description | | ----------- | ----------- | | `200` | Successful response | | `default` | Error response | ```bash curl -X POST "http://localhost:3000/api/destination.testConnection" \ -d '{ "name": "string", "accessKey": "string", "bucket": "string", "region": "string", "endpoint": "string", "secretAccessKey": "string" }' ``` ```js fetch("http://localhost:3000/api/destination.testConnection", { method: "POST" }); ``` ```json { "message": "string", "code": "string", "issues": [ { "message": "string" } ] } ``` ```ts export interface Response { message: string; code: string; issues?: { message: string; }[]; } ``` ## destination-one ### Authorization "} required={true}> In: `header` ### Query Parameters | Status code | Description | | ----------- | ----------- | | `200` | Successful response | | `default` | Error response | ```bash curl -X GET "http://localhost:3000/api/destination.one?destinationId=string" ``` ```js fetch("http://localhost:3000/api/destination.one?destinationId=string", { method: "GET" }); ``` ```json { "message": "string", "code": "string", "issues": [ { "message": "string" } ] } ``` ```ts export interface Response { message: string; code: string; issues?: { message: string; }[]; } ``` ## destination-all ### Authorization "} required={true}> In: `header` | Status code | Description | | ----------- | ----------- | | `200` | Successful response | | `default` | Error response | ```bash curl -X GET "http://localhost:3000/api/destination.all" ``` ```js fetch("http://localhost:3000/api/destination.all", { method: "GET" }); ``` ```json { "message": "string", "code": "string", "issues": [ { "message": "string" } ] } ``` ```ts export interface Response { message: string; code: string; issues?: { message: string; }[]; } ``` ## destination-remove ### Authorization "} required={true}> In: `header` ### Request Body | Status code | Description | | ----------- | ----------- | | `200` | Successful response | | `default` | Error response | ```bash curl -X POST "http://localhost:3000/api/destination.remove" \ -d '{ "destinationId": "string" }' ``` ```js fetch("http://localhost:3000/api/destination.remove", { method: "POST" }); ``` ```json { "message": "string", "code": "string", "issues": [ { "message": "string" } ] } ``` ```ts export interface Response { message: string; code: string; issues?: { message: string; }[]; } ``` ## destination-update ### Authorization "} required={true}> In: `header` ### Request Body Minimum length: `1` | Status code | Description | | ----------- | ----------- | | `200` | Successful response | | `default` | Error response | ```bash curl -X POST "http://localhost:3000/api/destination.update" \ -d '{ "name": "string", "accessKey": "string", "bucket": "string", "region": "string", "endpoint": "string", "secretAccessKey": "string", "destinationId": "string" }' ``` ```js fetch("http://localhost:3000/api/destination.update", { method: "POST" }); ``` ```json { "message": "string", "code": "string", "issues": [ { "message": "string" } ] } ``` ```ts export interface Response { message: string; code: string; issues?: { message: string; }[]; } ```