Every request to the Navis Ops API and MCP server must include a valid bearer token. Navis Ops supports two authentication methods: API keys for straightforward integrations and OAuth 2.1 for clients that handle the authorization flow themselves. Both methods produce a token you pass in the sameDocumentation Index
Fetch the complete documentation index at: https://docs.navisops.com/llms.txt
Use this file to discover all available pages before exploring further.
Authorization header, so the rest of your integration code is identical regardless of which method you choose.
Choosing an authentication method
API Keys
Create a token in Settings and copy it once. Works with any HTTP client or AI assistant. Best when you control the environment and can store the token securely.
OAuth 2.1
Let your client handle the authorization flow automatically. Recommended for AI clients like Claude Desktop and Cursor that natively support MCP OAuth.
When to use each method
| API Keys | OAuth 2.1 | |
|---|---|---|
| Setup time | ~30 seconds | Automatic via client |
| Works with any HTTP client | Yes | Depends on client support |
| Token rotation | Manual | Automatic |
| Recommended for | Scripts, CI, manual integrations | Claude Desktop, Cursor, MCP-native clients |
| Revocation | Settings → Connected Apps → Revoke | Settings → Connected Apps → Disconnect |
Sending a request
Both methods use the sameAuthorization header format. Include your token as a bearer credential on every request:
nops_ prefixed API key with your OAuth bearer token.
Error responses
If your request fails authentication or authorization, Navis Ops returns one of two error codes:401 Unauthorized — token missing or invalid
401 Unauthorized — token missing or invalid
403 Forbidden — valid token, insufficient scope
403 Forbidden — valid token, insufficient scope
Your token is valid but does not have the scope required for the operation. Read-only tokens (To resolve this: create a new API key with Read + Write enabled, or disconnect and reconnect your OAuth client approving the
mcp:read) cannot call write tools.mcp:write scope.Next steps
Create an API key
Generate a token from Settings in under a minute.
Set up OAuth 2.1
Use OAuth for clients that support the MCP authorization flow.