Create a import

POST {{baseUrl}}/imports

Enqueues an import - currently only supported for users. Amongst other things, the users import allows associating slack channels (if you have already setup the oauth apps).

Request Body

{"import"=>{"users"=>[{"external_id"=>"<string>", "email"=>"<string>", "first_name"=>"<string>", "last_name"=>"<string>", "custom_attributes"=>{"reprehenderitf0"=>-35491693.10163158, "Excepteur_75d"=>43276636, "aliquip_8"=>76449337.61843646}, "phone_numbers"=>["<string>", "<string>"], "channels"=>{"ea_"=>12730389.223284483, "in0f"=>-74096260.07846098, "ut_325"=>38158960, "consectetur9"=>45037185.038398474}}, {"external_id"=>"<string>", "email"=>"<string>", "first_name"=>"<string>", "last_name"=>"<string>", "custom_attributes"=>{"mollit__"=>28637558.630791068, "elit9"=>false}, "phone_numbers"=>["<string>", "<string>"], "channels"=>{"tempor20"=>-48833928, "voluptate_1"=>false}}]}}

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;import&quot;:{&quot;id&quot;:&quot;\u003cstring\u003e&quot;,&quot;status&quot;:&quot;processing&quot;,&quot;summary&quot;:{&quot;total&quot;:&quot;\u003cinteger\u003e&quot;,&quot;failures&quot;:&quot;\u003cinteger\u003e&quot;},&quot;errors&quot;:[{&quot;email&quot;:&quot;\u003cstring\u003e&quot;,&quot;external_id&quot;:&quot;\u003cstring\u003e&quot;,&quot;message&quot;:&quot;\u003cstring\u003e&quot;},{&quot;email&quot;:&quot;\u003cstring\u003e&quot;,&quot;external_id&quot;:&quot;\u003cstring\u003e&quot;,&quot;message&quot;:&quot;\u003cstring\u003e&quot;}],&quot;failures&quot;:{}}}