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