/LESSON 7

Step 5

Create account

Create a client account via Duda's API


In this lesson, we'll cover how to create a new client account using Duda API.


We’ll start by exploring the
Account Object, which defines the required and optional fields needed to set up an account. When creating client accounts, you can use an email address as the account name, or—if your system uses unique IDs—you can pass in one of those instead.


Keep in mind that this same API call is used to create both client and staff accounts. So, it’s crucial to set the account type correctly—use "Customer" for client accounts to ensure the proper role is assigned.


If your request is successful, the API will return a  204 status code  , indicating that the account was created.

API Endpoint

POST https://api.duda.co/api/accounts/create  


Creates a new client account.

Documentation:
Developer Reference – Create Account | Account Object