Documentation
Two ways in: API keys for the REST API, sign-in for MCP.
Needle authenticates in two ways. The REST API takes an API key in the Authorization header. MCP apps sign in with OAuth in your browser and send their own token from then on. Missing or invalid credentials return 401.
Request header
CopyAuthorization: Bearer sk-ndl-…
Send this header on every request to /api/v1. See the API Reference.
Open API keys in the dashboard.
Create a key. It looks like sk-ndl-….
Copy it once. The full key is only shown then.
Each key is bound to one user and one workspace. The dashboard, API, and MCP all work in the workspace the key is bound to.
User
The key acts as the user who created it.
Workspace
Requests run in the workspace the key is bound to.
curl https://needle.app/api/v1/me \ -H "Authorization: Bearer sk-ndl-…" \ -H "Content-Type: application/json"
Search documentation, API reference, and MCP tools
We use cookies to enhance your experience on Needle and keep your data secure. Privacy Policy