Endpoint
Send all GraphQL requests asPOST requests to:
X-Auth-Token: your personal access token.Content-Type:application/json.
query string and a variables object.
Request format
The GraphQL examples in this documentation write the query over several lines in a shell variable,QUERY, so that it is easy to read. The tr command joins it into one line before sending. Your own values go in VARS.
export, $(...), <<'EOF', and single-quoted JSON. Run them in a bash or zsh terminal on macOS or Linux, or in Git Bash or WSL on Windows. Windows PowerShell and Command Prompt do not run as written.
Errors
A GraphQL response with anerrors array means the call failed, even when the HTTP status is 200. Read the message in errors; it names the argument or value at fault.

