Skip to content
gist.link ↗

API conventions

Every GistLink API follows the same conventions. Learn them once and every service reads the same way.

Each product exposes exactly one endpoint:

POST https://<service>.api.gist.link/graphql

Requests are JSON bodies with query and optional variables / operationName keys. There are no REST endpoints, no API versions in the URL, and no per-resource paths. Schemas evolve additively — fields are added, not repurposed.

Entity fields are snake_case (created_at, body_html, due_at); operations and type names are camelCase/PascalCase (createTicket, InvoiceConnection).

All timestamps are ISO-8601 strings with timezone offsets, e.g. "2026-09-10T12:00:00+00:00". Send the same format for date/time arguments.

Money is never a float. Monetary values are objects pairing integer minor units with an ISO 4217 currency code:

{ "amount": 129900, "currency": "USD" } // $1,299.00

Amount arguments likewise take integer minor units. Divide/multiply by the currency’s exponent (100 for USD/EUR, 0 for JPY, …) only at the display edge.

List fields are cursor-paginated connections taking first (page size) and after (opaque cursor) arguments and returning a connection type (typically edges { node { … } } plus page info — the exact shape is on each service’s types page). Iterate by passing the last page’s end cursor as after until there’s no next page. Many connections also take filter and sort arguments; see each operation’s reference page.

Your token carries your organization. Every query returns only your organization’s rows and every mutation writes into them. There is no cross-organization access; you never pass an organization id.

Most entities use UUID ID values (some services use integer ids for sub-resources — the reference pages show the exact type). Treat all ids as opaque strings.

Binary content never travels through GraphQL. File-bearing services (Drive, attachments in Support/Teams) use a three-step pattern:

  1. a mutation issues a presigned upload URL plus required headers,
  2. you PUT the bytes directly to object storage, and
  3. a completion mutation finalizes the node.

Downloads likewise return short-lived presigned URLs.

Mutations that trigger billing or external side effects (e.g. usage recording, payment capture) accept or require an idempotency key — retries with the same key replay the stored result instead of double-charging. Each operation’s reference page documents its idempotency argument when present.

Some mutations enqueue work (sending email, processing payouts, webhooks) and return immediately with a QUEUED/PENDING status. Poll the corresponding query for the terminal state rather than assuming synchronous completion.