Skip to content

Create a user import upload URL.

POST
/api/admin/jobs/users/import/upload-url
Code sample: Shell / cURL
curl --request POST \
--url https://auth.example.com/api/admin/jobs/users/import/upload-url \
--header 'Authorization: Bearer <token>'

Creates a short-lived Admin API upload target for a CSV import artifact and returns the upload id, R2 key, HTTP method, and expiration timestamp. The upload itself is completed with PUT.

User import upload URL response.

Media type application/json
object
upload_url
required
string
upload_method
required
string
Allowed values: PUT
file_key
required
string
r2_key
required
string
expires_at
required
string format: date-time
upload_id
required
string
key
additional properties
Example
{
"upload_method": "PUT"
}

Error response.

Media type application/json
object
error
string
message
string
error_description
string
key
additional properties
Example generated
{
"error": "example",
"message": "example",
"error_description": "example"
}

Error response.

Media type application/json
object
error
string
message
string
error_description
string
key
additional properties
Example generated
{
"error": "example",
"message": "example",
"error_description": "example"
}

Error response.

Media type application/json
object
error
string
message
string
error_description
string
key
additional properties
Example generated
{
"error": "example",
"message": "example",
"error_description": "example"
}

Error response.

Media type application/json
object
error
string
message
string
error_description
string
key
additional properties
Example generated
{
"error": "example",
"message": "example",
"error_description": "example"
}