Users-exports endpoint

I an trying to get all users via this call:

curl --request POST
–url ‘https://***-stage.auth0.com/api/v2/jobs/users-exports’
–header ‘authorization: Bearer <***ACCESS_TOKEN>’
–data ‘{“format”: “csv”, “fields”: [{“name”: “user_metadata”}, { “name”: “identities[0].connection”, “export_as”: “provider” }]}’

and I am getting this error:

{“statusCode”:400,“error”:“Bad Request”,“message”:“Bad HTTP authentication header format”,“errorCode”:“Bearer”}%

Is anything wrong with the curl command? (I’ve masked the url and access_token)
-Robert

Hi @jakubov,

I don’t see anything right off of the bat. It is something to do with the auth header as the error suggests. Can you try making the request in postman or from a node app or something?

Hope this helps!

Thanks,
Dan

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