Skip to main content
POST
/
clients
Create Client
curl --request POST \
  --url https://api.example.com/clients \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "email": "<string>"
}
'
{
  "error": true,
  "msg": "request body is empty"
}
This endpoint creates a new client in the system. Clients are the entities that place sales orders.

Body

name
string
required
Client’s full name. Minimum 3 characters.
email
string
required
Client’s email address. Must be a valid email format.

Response

error
boolean
Indicates if there was an error
msg
string
Success or error message

Request Example

{
  "name": "Mark Zuckemberg",
  "email": "[email protected]"
}

Error Responses

{
  "error": true,
  "msg": "request body is empty"
}

Build docs developers (and LLMs) love