Auth0 Home Blog Docs

Create job to export users



I have a question which relates to the “Create job to export users” and “Get a job” API.
POST /api/v2/jobs/users-exports
GET /api/v2/jobs/{id}

The “Create job to export users” request returns a jobId. I then use that jobId when I call the “Get a job” API. The response for the “Get a job” request contains a “location” field, which I can then use to get the link for the exported user CSV file. Sometimes when I try to use the “location” field to make a connection, I get a FileNotFound exception. I have a work around where I will re-request several times if I get that exception. But is there a better way or am I doing something wrong?