Levain LabsLevain Labs
ApiPrivacy

Export Request

Compile the stored data covered by a privacy request.

Compile the stored data covered by a privacy request.

Built for customers/data_request: returns the customer's stored contact fields and their order/checkout summaries, compiled at call time — pass the result on to the requesting customer. After an erasure completes, the same call returns empty sections.

GET
/api/v1/privacy/requests/{request_id}/export

Authorization

HTTPBearer
AuthorizationBearer <token>

In: header

Path Parameters

request_id*Request Id
Formatuuid

Header Parameters

X-API-Key?string|null

Response Body

application/json

application/json

curl -X GET "https://api.levainlabs.com/api/v1/privacy/requests/497f6eca-6276-4993-bfeb-53cbbbba6f08/export"
{
  "request_id": "266ea41d-adf5-480b-af50-15b940c2b846",
  "generated_at": "2019-08-24T14:15:22Z",
  "platform": "string",
  "external_account_id": "string",
  "subject_id": "string",
  "contact": [
    {}
  ],
  "orders": [
    {}
  ],
  "checkouts": [
    {}
  ]
}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string",
      "input": null,
      "ctx": {}
    }
  ]
}