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
Key | Datatype | Required | Description |
---|---|---|---|
X-MAGICBELL-API-KEY | string | (Required) The (public) API key of your MagicBell project. | |
X-MAGICBELL-API-SECRET | string | (Required) The API secret of your MagicBell project. | |
Content-Type | string | ||
Accept | string |
RESPONSES
status: Created
{"user":{"id":"\u003cstring\u003e","external_id":"\u003cstring\u003e","email":"\u003cstring\u003e","first_name":"\u003cstring\u003e","last_name":"\u003cstring\u003e","custom_attributes":{"sed021":29167472.758029073},"phone_numbers":["\u003cstring\u003e","\u003cstring\u003e"]}}