Security best practices
Protect API keys, uploads and application infrastructure.
Keep API keys server-side
Use your API key from a backend service whenever possible. Do not embed it in public JavaScript, mobile application bundles, public repositories, screenshots or client-visible URLs.
Use HTTPS
Send requests to the HTTPS API endpoint. Avoid logging complete multipart request bodies or credentials in application logs.
Validate files in your application
Keep client-side file selection restrictions for user experience, but rely on server-side MIME detection and size limits for security. Treat uploaded filenames and remote URLs as untrusted input.
Protect your infrastructure
- Store secrets in environment configuration, not source control.
- Restrict access to API keys and rotate them if they may have been exposed.
- Apply appropriate PHP and web-server request-size limits.
- Monitor rate-limit and upload errors for unusual activity.
The current portal documents the existing temporary browser-key flow. Per-user multiple keys, revocation and key-level permissions are not enabled in the supplied implementation.