stable · api · 0.1.0
Create a single-use Privacy Export
POST /api/v1/privacy-requests/{privacyRequestId}/export
Capability Domain: Security Audit Privacy
Authentication
platformSession — Requires recent authentication.
Scope: None
Parameters and request body
-
X-Correlation-ID— header, optionalX-Correlation-ID schema { "type": "string", "format": "uuid" } -
privacyRequestId— path, requiredprivacyRequestId schema { "type": "string", "format": "uuid" }
Responses and errors
| Status | Description |
|---|---|
201 | Single-use export is ready |
401 | Invalid or revoked Project Credential |
403 | Project Credential lacks the required scope |
422 | Request violates the public contract |
201 schema
{
"type": "object",
"required": [
"data"
],
"properties": {
"data": {
"type": "object",
"required": [
"id",
"download_path",
"expires_at"
],
"properties": {
"id": {
"type": "string",
"format": "uuid"
},
"download_path": {
"type": "string"
},
"expires_at": {
"type": "string",
"format": "date-time"
}
}
}
}
}
401 schema
{
"type": "object",
"required": [
"error"
],
"properties": {
"error": {
"type": "object",
"required": [
"code",
"message",
"retryable",
"correlation_id",
"details"
],
"properties": {
"code": {
"type": "string"
},
"message": {
"type": "string"
},
"retryable": {
"type": "boolean"
},
"correlation_id": {
"type": "string",
"format": "uuid"
},
"details": {
"type": "object"
}
}
}
}
}
403 schema
{
"type": "object",
"required": [
"error"
],
"properties": {
"error": {
"type": "object",
"required": [
"code",
"message",
"retryable",
"correlation_id",
"details"
],
"properties": {
"code": {
"type": "string"
},
"message": {
"type": "string"
},
"retryable": {
"type": "boolean"
},
"correlation_id": {
"type": "string",
"format": "uuid"
},
"details": {
"type": "object"
}
}
}
}
}
422 schema
{
"type": "object",
"required": [
"error"
],
"properties": {
"error": {
"type": "object",
"required": [
"code",
"message",
"retryable",
"correlation_id",
"details"
],
"properties": {
"code": {
"type": "string"
},
"message": {
"type": "string"
},
"retryable": {
"type": "boolean"
},
"correlation_id": {
"type": "string",
"format": "uuid"
},
"details": {
"type": "object"
}
}
}
}
}
201 example
{
"data": {
"id": "8c000000-0000-4000-8000-000000000001",
"download_path": "/api/v1/privacy-exports/{single-use-token}",
"expires_at": "2026-08-08T01:00:00Z"
}
}
Idempotency
The export action reuses the valid export for the same request and does not create duplicate archives.