Create Gdpr request

Create Gdpr request

POST https://api.ocamba.com/v1/hood/gdpr-requests
Creates a new Gdpr request

Rate limits:

  • Burst: 10/s
  • Steady: 150/m

Request schema

body

Response schemas

curl -X POST \
 "https://api.ocamba.com/v1/hood/gdpr-requests" \
  -H "Authorization: Bearer {TOKEN}" \
  -H "Content-Type: application/json" \
  -d '"--form\n'\''client_id=\"17371227395790007397\"'\''\n--form\nrequester_information=\"{\"full_name\":\"John Smith\",\"address\":\"151 Acacia Avenue\",\"phone_number\":\"+1241241\",\"email\":\"[email protected]\"}\"\n--form\ninformation_to_remove=\"I would like to remove all personally identifiable information about myself\"\n--form\nproof_of_address=proof_of_address.pdf\n--form\nproof_of_identity=proof_of_identity.pdf\n--form\nsubmission_reason=consent-withdrawal\n--form\nrequest_declaration=\"{\"signature\":\"John Smith\",\"data_holder_name\":\"John'\''s Data Emporium\",\"date\":\"2025-01-21\"}\""'
const url = 'https://api.ocamba.com/v1/hood/gdpr-requests';
const options = {
  method: 'POST',
  headers: {
    Authorization: "Bearer {TOKEN}",
    'Content-Type': "application/json"
  },
  body: JSON.stringify(
    "--form\n'client_id=\"17371227395790007397\"'\n--form\nrequester_information=\"{\"full_name\":\"John Smith\",\"address\":\"151 Acacia Avenue\",\"phone_number\":\"+1241241\",\"email\":\"[email protected]\"}\"\n--form\ninformation_to_remove=\"I would like to remove all personally identifiable information about myself\"\n--form\nproof_of_address=proof_of_address.pdf\n--form\nproof_of_identity=proof_of_identity.pdf\n--form\nsubmission_reason=consent-withdrawal\n--form\nrequest_declaration=\"{\"signature\":\"John Smith\",\"data_holder_name\":\"John's Data Emporium\",\"date\":\"2025-01-21\"}\""
  )
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
$ch = curl_init("https://api.ocamba.com/v1/hood/gdpr-requests");
curl_setopt($ch, CURLOPT_HTTPHEADER, [
  "Authorization: Bearer {TOKEN}",
  "Content-Type: application/json"
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode(
  "--form\n'client_id=\"17371227395790007397\"'\n--form\nrequester_information=\"[\"full_name\" =>\"John Smith\",\"address\" =>\"151 Acacia Avenue\",\"phone_number\" =>\"+1241241\",\"email\" =>\"[email protected]\"]\"\n--form\ninformation_to_remove=\"I would like to remove all personally identifiable information about myself\"\n--form\nproof_of_address=proof_of_address.pdf\n--form\nproof_of_identity=proof_of_identity.pdf\n--form\nsubmission_reason=consent-withdrawal\n--form\nrequest_declaration=\"[\"signature\" =>\"John Smith\",\"data_holder_name\" =>\"John's Data Emporium\",\"date\" =>\"2025-01-21\"]\""
));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);

Responses

201 Created

{
  "id": "1000313",
  "company_id": "6197120",
  "client_id": "17371227395790007397",
  "status": "pending",
  "submission_reason": "consent-withdrawal",
  "requester_information": {
    "full_name": "John Smith",
    "address": "151 Acacia Avenue",
    "phone_number": "+1241241",
    "email": "[email protected]"
  },
  "subject_information": {
    "full_name": "John Smith",
    "address": "151 Acacia Avenue",
    "phone_number": "+1241241",
    "email": "[email protected]"
  },
  "information_to_remove": "I would like to remove all personally identifiable information about myself",
  "request_declaration": {
    "signature": "John Smith",
    "data_holder_name": "John's Data Emporium",
    "date": "2025-01-21"
  },
  "proof_of_address": "https://dev-storage.ocamba.com/6197120/hood/gdpr-request/17371227395790007397/proof-of-address/proof_of_address.pdf",
  "proof_of_identity": "https://dev-storage.ocamba.com/6197120/hood/gdpr-request/17371227395790007397/proof-of-identity/proof_of_identity.pdf",
  "create_time": "2025-01-20 13:41:49",
  "update_time": "2025-01-20 14:00:44"
}

400 Bad Request

{
  "code": 400,
  "title": "Bad request.",
  "message": "The request is not valid.",
  "trace_id": "99a84211-f73d-4ff8-acdf-eb3e06bb9d62"
}

500 Internal Server Error

{
  "code": 500,
  "title": "Internal server error.",
  "trace_id": "99a84211-f73d-4ff8-acdf-eb3e06bb9d62"
}
Responses