defmodule ToweropsWeb.HelpLive.Sections.GraphqlApi do @moduledoc false use ToweropsWeb, :html def render(assigns) do ~H"""

GraphQL API

The GraphQL API lets you query exactly the data you need in a single request. The endpoint is POST /api/graphql and uses the same API token authentication as the REST API.

Why GraphQL?

Quick Example

<%= raw("curl -X POST https://app.towerops.net/api/graphql \\\n  -H \"Authorization: Bearer YOUR_TOKEN\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"query\": \"{ devices { id name ipAddress status } }\"}'") %>

Available Queries

Mutations

Full reference: GraphQL API Documentation → — complete schema reference with query examples and variable usage.

""" end end