Create a new data request
Used by the authenticated user to create a new data request from the organisation. The amount of data requests that can be simultaneously in progress is set by the organisation, and can be retrieved from the /settings
endpoint.
POST
/requests
curl \
-X POST http://api.example.com/requests \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '["LikeAction"]'
Request example
[
"LikeAction"
]
Request examples
[
"LikeAction"
]
Response examples (200)
{
"requestId": "string",
"createdAt": "2023-05-04T09:42:00+00:00",
"expectedCompletion": "2023-05-04T09:42:00+00:00",
"isCompleted": true,
"completedAt": "2023-05-04T09:42:00+00:00",
"dataRequested": [
"string"
]
}
Response examples (200)
{
"requestId": "string",
"createdAt": "2025-05-04T09:42:00Z",
"expectedCompletion": "2025-05-04T09:42:00Z",
"isCompleted": true,
"completedAt": "2025-05-04T09:42:00Z",
"dataRequested": [
"string"
]
}
Response examples (400)
Maximum amount of requests reached
{
"error": "MaximumAmountOfRequestsReached",
"message": "The maximum amount of requests has been reached."
}
{
"error": "InvalidDataTypes",
"message": "The data types that were specified do not match the available datatypes for this organisation."
}
Response examples (400)
Object-1
{
"error": "MaximumAmountOfRequestsReached",
"message": "The maximum amount of requests has been reached."
}
{
"error": "InvalidDataTypes",
"message": "The data types that were specified do not match the available datatypes for this organisation."
}
Response examples (401)
{
"error": "Unauthorized",
"message": "You are not authorized. Generate authentication tokens via OAuth to access this resource."
}
Response examples (401)
{
"error": "Unauthorized",
"message": "You are not authorized. Generate authentication tokens via OAuth to access this resource."
}