Security and privacy
The Partner API is the one SASHA integration where media leaves the Partner's servers. SASHA runs every embed and lookup job on its own servers, so it receives the media each job processes.
The Mobile SDK works the other way: images never leave the device, because all processing happens in the app.
What SASHA receives and keeps
| Media submitted with an embed or lookup, by URL or as an upload | Deleted when the job finishes. In practice it is gone within two days. |
| The protected image an embed job returns | Served at output_url until output_url_expires_at, one hour after the job completes. In practice it is deleted from storage within two days of the job completing. |
| The job each request creates | Readable through GetJob, ListJobs and WatchJob for 48 hours after it last changed status. SASHA keeps a record of each job, with no set deletion time, to measure usage and investigate failures. |
| The Signature an embed job registers | Kept, so that a later lookup can identify it. |
| The Record attached to a Signature | Removed from lookups and reads when its owner deletes it. SASHA also keeps an encrypted audit log of every Record change. |
The record of a job holds its status, timestamps, error, SignatureID, CreatorID, Guidance, callback URL, and the media type and size. It holds no pixels.
SASHA processes a Partner's media only to run the job the Partner submitted. It records technical measurements of each run, such as image dimensions and processing time, to operate and improve the service.
Data residency
SASHA processes and stores Partner API data in the European Union.
Credentials
SASHA issues each Partner a Client ID and a Client Secret, which together get an access token. A Partner that receives callbacks also gets a Callback Secret. Both secrets stay on the Partner's own servers: in an environment variable or a secret manager, never in a browser, a mobile app or a source repository.
An access token expires after one hour, so a leaked token stops working on its own. A leaked Client Secret or Callback Secret does not expire. A Partner replaces either one by asking support@sasha.eu for a new one.
Callback authenticity
SASHA signs each callback with one of the Partner's Callback Secrets and names it in the SASHA-Callback-Secret-ID header. An endpoint that checks the Callback Payload Signature rejects a forged job update from anyone who learns its URL.
Record deletion
The owner of a Signature deletes its Record through the API: with DELETE /signature/{signature_id}/record on REST, or on gRPC with UpdateSignatureRecord, naming record in update_mask and leaving it unset.
See also
- How SASHA works: what a Signature is, and what embed and lookup return
- Authentication: the client credentials flow and token lifetime
- Set up callback notifications: verify the Callback Payload Signature on each callback