{
"input": {
"email": "user@example.com",
"roleId": "Q3VzdG9tUm9sZToyMDgzMQ==",
"firstName": "John",
"directCustomer": true
}
}
curl --location --request POST 'https://api.synup.com/api/v4/users/create' \
--header 'Authorization: API T9V35W3xxxxxxxxxxx' \
--header 'Content-Type: application/json' \
--data-raw '{
"input": {
"email": "user@example.com",
"roleId": "Q3VzdG9tUm9sZToyMDgzMQ==",
"firstName": "John",
"directCustomer": true
}
}'
{
"data": {
"addUser": {
"success": true,
"errors": [],
"user": {
"id": "VXNlcjoxNjUzNjA=",
"createdAt": "2025-02-03 10:25:44 UTC",
"directCustomer": true,
"email": "user@example.com",
"firstName": "John",
"lastName": null,
"inviteStatus": "INVITE_SENT",
"customRole": {
"id": "Q3VzdG9tUm9sZToyMDgzMQ==",
"name": "Admin"
},
"accountId": "QWNjb3VudDoxNjE1NA==",
"preferences": {
"locale": "en-US",
"dateFormat": null,
"timezone": null,
"columnOrder": null
}
}
}
}
}