An end user is one of your customers, named by the Diffio-End-User header your server sends; Diffio keeps their projects apart.A request with the header reaches only that end user's projects; one without it acts for the whole account.
How it works
Your serverDiffio API
Your server → Diffio API: POST /projects, Diffio-End-User: customer-42
Diffio API → Your server: project, end_user: "customer-42"
Your server → Diffio API: GET /projects/{id}, Diffio-End-User: customer-7
Diffio API → Your server: 404 project_not_found, another customer's project
Your server → Diffio API: GET /usage, Diffio-End-User: customer-42
Diffio API → Your server: usage, that customer's generations only
Diffio API → Your server: webhook, data.end_user on every event
One API key, two customers. Without the header, a request sees every project on the account.
Limits
Limit
Value
Diffio-End-User
up to 128 characters; longer is 400 invalid_header
end_user in a body
refused (400 invalid_field); send the header
POST /webhooks/portal
account-wide; the header is refused (403 permission_denied)