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
typestringRequired
Must be exactly "email_verification".
attributes.tokenstringRequired
Email verification token
attributes.account_idstringRequired
Account ID
Examples
POST https://site-api.datocms.com/account/complete-email-verification HTTP/1.1Authorization: Bearer YOUR-API-TOKENAccept: application/jsonX-Api-Version: 3Content-Type: application/vnd.api+json
{ "data": { "type": "email_verification", "attributes": { "token": "", "account_id": "" } }}curl -g 'https://site-api.datocms.com/account/complete-email-verification' \ -X POST \ -H "Authorization: Bearer YOUR-API-TOKEN" \ -H "Accept: application/json" \ -H "X-Api-Version: 3" \ -H "Content-Type: application/vnd.api+json" \ --data-binary '{"data":{"type":"email_verification","attributes":{"token":"","account_id":""}}}'await fetch( "https://site-api.datocms.com/account/complete-email-verification", { method: "POST", headers: { Authorization: "Bearer YOUR-API-TOKEN", Accept: "application/json", "X-Api-Version": "3", "Content-Type": "application/vnd.api+json", }, body: JSON.stringify({ data: { type: "email_verification", attributes: { token: "", account_id: "" }, }, }), },);