Create a user

POST {{baseUrl}}/users

Create a user. Please note that you must provide the user's email or the external id so MagicBell can uniquely identify the user.

The external id, if provided, must be unique to the user.

Request Body

{"user"=>{"id"=>"<string>", "external_id"=>"<string>", "email"=>"<string>", "first_name"=>"<string>", "last_name"=>"<string>", "custom_attributes"=>{"dolore14_"=>-776965, "ex_3e8"=>23122119.38966824, "tempor443"=>"adipisicing Lorem sed voluptate labore"}, "phone_numbers"=>["<string>", "<string>"]}}

HEADERS

KeyDatatypeRequiredDescription
X-MAGICBELL-API-KEYstring(Required) The (public) API key of your MagicBell project.
X-MAGICBELL-API-SECRETstring(Required) The API secret of your MagicBell project.
Content-Typestring
Acceptstring

RESPONSES

status: Created

{&quot;user&quot;:{&quot;id&quot;:&quot;\u003cstring\u003e&quot;,&quot;external_id&quot;:&quot;\u003cstring\u003e&quot;,&quot;email&quot;:&quot;\u003cstring\u003e&quot;,&quot;first_name&quot;:&quot;\u003cstring\u003e&quot;,&quot;last_name&quot;:&quot;\u003cstring\u003e&quot;,&quot;custom_attributes&quot;:{&quot;dolore14_&quot;:-776965,&quot;ex_3e8&quot;:23122119.38966824,&quot;tempor443&quot;:&quot;adipisicing Lorem sed voluptate labore&quot;},&quot;phone_numbers&quot;:[&quot;\u003cstring\u003e&quot;,&quot;\u003cstring\u003e&quot;]}}