Hypermode protects your project’s endpoint with an API key. In your project
dashboard, navigate to Settings → API Keys to find and manage your API
tokens.From your app, you can call the API by passing the API token in the
Authorization header. Here’s an example using the fetch API in JavaScript:
Copy
Ask AI
const endpoint = "" // your API endpointconst key = "" // your API key// your graphql queryconst query = `query { ...}`const response = await fetch(endpoint, { method: "POST", headers: { "Content-Type": "application/json", Authorization: key, }, body: JSON.stringify({ query: query, }),})const data = await response.json()
Additional authorization methods are under development. If your app requires a
different protocol, reach out at
help@hypermode.com.