Show examples in:
JavascriptHTTP
Endpoint info
Available examples
Dashboard API > Account

Complete email verification

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.

Completes the email verification flow using the token sent to the account's email address. Works with or without authentication.

Body parameters

tokenstringRequired

Email verification token

account_idstringRequired

Account ID

Examples

import { buildClient } from "@datocms/dashboard-client";
async function run() {
const client = buildClient({ apiToken: process.env.DATOCMS_API_TOKEN });
await client.account.completeEmailVerification({ token: "", account_id: "" });
}
run();