Create a new account
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.
Body parameters
"foo@bar.com"
Password
First name
"Mark"
Last name
"Smith"
Company name
"Dundler Mifflin"
Cloudflare Turnstile token proving the sign up was not automated. Obtained from the Turnstile widget rendered next to the sign up form, and valid for 300 seconds and a single verification. Required for browser-based sign ups.
"0.6IlxLLPqSAjOaTUvKDnCDQ.rB6UBUW4dGZWZOmHnFVKa5b4qNVvKgOxvGDNJ4qFqR8"
Whether the user opts-in to signup to DatoCMS newletter
Role description that best describes you
"lead_developer"
CTO / Technical Director
Lead Developer / Engineering Manager
Frontend Developer
Digital Marketing
Project Manager
Digital Designer (Web, Visual, Motion, UI, UX)
Content Manager / Writer / Translator
Context in which you perform your role
"company"
I work at an agency
I work in-house at a company
I am a freelancer
I am a student
Returns
Returns a resource object of type session
Examples
import { buildClient } from "@datocms/dashboard-client";
async function run() { const client = buildClient({ apiToken: process.env.DATOCMS_API_TOKEN });
const account = await client.account.create({ email: "foo@bar.com", password: "", });
// Check the 'Returned output' tab for the result ☝️ console.log(account);}
run();{ id: "eyJCJhbGci.eyJhaWwuY29tIn0.32wQOMci", account: { type: "account", id: "312" },}