Dashboard API > Site transfer request
Retrieve a transfer
Warning: Experimental API
Please note that the Dashboard API is an experimental, prerelease API. This API method is considered unstable, and should be avoided in production environments and automations. Changes may occur at any time without warning.
Returns
Returns a resource object of type site_transfer
Examples
import { buildClient } from "@datocms/dashboard-client";
async function run() { const client = buildClient({ apiToken: process.env.DATOCMS_API_TOKEN });
const siteTransferId = "124";
const siteTransfer = await client.siteTransfers.find(siteTransferId);
// Check the 'Returned output' tab for the result ☝️ console.log(siteTransfer);}
run();{ id: "124", source: { type: "account", email: "sarah@foobar.com" }, destination: { type: "account", email: "mark@foobar.com" }, site_name: "", extra_packets: { users: 1, locales: 1, item_types: 0, roles: 0, build_triggers: 0, access_tokens: 0, mux_encoding_seconds: 0, sandbox_environments: 0, items: 0, uploadable_bytes: 0, }, meta: { created_at: "2020-04-21T07:57:11.124Z" }, plan: { type: "site_plan", id: "124" },}