defmodule ToweropsWeb.HelpLive.Sections.GraphqlApi do @moduledoc false use ToweropsWeb, :html def render(assigns) do ~H"""
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.
<%= 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 } }\"}'") %>
Full reference: GraphQL API Documentation → — complete schema reference with query examples and variable usage.