Error 400 when bulk importing users with curl

When trying to bulk import users using curl

curl --request POST \
  --url '' \
  --header 'authorization: Bearer <token>' \
  --header 'content-type: multipart/form-data; boundary=---011000010111000001101001' \
  --form users=@bulk_insert_users.json \
  --form connection_id=<connection_id>\
  --form external_id=<id>

It fails with (no idea why)
{"statusCode":400,"error":"Bad Request","message":"Invalid multipart payload format"}

My json file is like this

[ { "email": "<email>", "email_verified": false } ]

Any help is really appreciated

Hi @ignacio1,

Welcome to the Community!

Can you try the user import extension or through the management API docs and see if it works?!/Jobs/post_users_imports


1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.