MindGraphDocs

Authentication

Authenticate with the MindGraph API using API keys.

API Keys

Create an API key from the Dashboard and pass it as a Bearer token in the Authorization header.

curl -X GET https://api.mindgraph.cloud/stats \
  -H "Authorization: Bearer mg_your_api_key"

In the SDKs:

const graph = new MindGraph({
  baseUrl: "https://api.mindgraph.cloud",
  apiKey: "mg_...",
})
Warning:Keep your API keys secret. Never commit them to version control or expose them in client-side code. Use environment variables instead.

Organization Scoping

Each API key is scoped to an organization. When you authenticate with an API key, all graph operations operate on that organization's graph. An organization is automatically created for you when you sign up. You can also create additional organizations via the POST /v1/orgs endpoint.