Overview
The 9Squid API uses Bearer token authentication. Every request must include a valid API key in theAuthorization header. Requests made without a token — or with an invalid one — will be rejected with a 401 Unauthorized response.
Step 1 — Request an API Key
API keys are provisioned manually. To get one, send an email to: support@9squid.com Include the following in your request:
The team will provision your key and reply with your credentials. Keys are environment-specific — a development key will not work against the production base URL.
Step 2 — Pass the Key as a Bearer Token
Once you have your API key, include it in theAuthorization header of every request:
Example — cURL
Example — JavaScript (fetch)
Example — Python (requests)
Token Scopes
Your API key is tied to a specific role. Calling an endpoint outside your role returns403 Forbidden.
If you receive a
403 on an endpoint you expect to access, verify your role with support@9squid.com.
Authentication Errors
Security Best Practices
- Never expose your API key in client-side code (browser JavaScript, mobile apps). Always proxy requests through your backend.
- Store keys in environment variables or a secrets manager — not in source code or version control.
- If you suspect your key has been compromised, contact support@9squid.com immediately to have it rotated.