Encoding
Batch Encode
Changed onEncode multiple data items in a single request. All items share one continuationId for efficient batch processing.
Request body: A JSON array of encode items (not an object with an items property).
SDK Usage:
const result = await client.encodeBatch({
items: [
{ data: 'Alice Smith, alice@email.com', sourceContainer: 'users' },
{ data: 'Bob Jones, 555-123-4567', sourceContainer: 'users' }
]
});
post/api/scanner/encode/batch
Request
- Base URLhttps://api.privacypal.ai
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
[
{
"metadata": {
"rowId": "1001",
"source": "crm_system"
}
}
]Response
Batch encoded successfully
Example response
{
"results": [
{
"transformations": [
{
"components": [
{
"original": "John",
"twin": "Maria",
"type": "FIRST_NAME"
}
]
}
]
}
]
}Changes
- breaking
the response's body type changed from no type to
objectfor status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status
- breaking
- info
endpoint added
- info