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"=>{"sed021"=>29167472.758029073}, "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;sed021&quot;:29167472.758029073},&quot;phone_numbers&quot;:[&quot;\u003cstring\u003e&quot;,&quot;\u003cstring\u003e&quot;]}}