Overview
If your application serves many end users through one API organization, send thePerplexity-Safety-Identifier header with each request. Use a stable ID that your application assigns to the end user who triggered the request.
Without this header, Perplexity and its model providers can attribute a request only to your API organization. If one of your end users violates the Perplexity API Terms of Service or a model provider’s terms, we may have to restrict your whole organization. With the header, we can block just that end user, and the rest of your traffic continues to work.
Send the header
- Use an opaque ID, such as your internal user ID. Never send personal information.
- 1 to 64 printable ASCII characters, with no spaces or commas. Invalid values are ignored.
cURL
extra_headers (Python) or the headers request option (TypeScript).