Create Data Request

POST https://amplitude.com/api/2/dsar/requests

Create a request for user data.

Body Parameters

NameDescription
userIdRequired if amplitudeID is not set. The User Id of the user to request data for.
amplitudeIdRequired if userID is not set. Integer. The Amplitude ID of the user to request data for.
startDateRequired. Date. The start date for the data request.
endDateRequired. Date. The end date for the data request.

Response

When successful, the call returns a requestID, which is used to poll the job status.

Request Body

{"userId"=>12345, "startDate"=>"2020-04-24", "endDate"=>"2022-02-20"}

HEADERS

KeyDatatypeRequiredDescription
Acceptstring
Authorizationnull
Content-Typestring