# Overview and authentication

The Developer API at api-dev.tringify.com: Developer API tokens, other ways to sign in, responses, errors and limits.

The Developer API is your developer organization's API at `https://api-dev.tringify.com/api/v1`. It acts for one organization, never for a store: use the [Store API](/store-api) for a store's data and the [Shopper API](/shopper-api) for headless storefronts. The Developer Portal, the Tringify CLI and the developer MCP use the same routes.

| Section | What it covers |
| --- | --- |
| [Support cases](/developer-api/support-cases) | Read and answer the support cases merchants open about your apps and themes, with saved replies, settings, webhooks and stats. |
| [App documents](/developer-api/app-documents) | Draft, preview, submit and withdraw an app's privacy policy, terms, documentation and API reference. |

## Developer API tokens

Your own systems, such as a help desk, sign in with a **Developer API token**. Create one in Developer Portal › **Settings** › **API tokens** ([Help Center](https://help.tringify.com/developer-support/developer-api-tokens)): give it a name, choose its scopes and when it expires (30, 90 or 365 days, or never; 90 days by default), and confirm with a verification code. The token starts with `tdv_` and is shown only once. It belongs to the organization, not to a person's sign-in. The organization owner and members with **Manage API tokens** can create and revoke tokens.

| Scope | Allows |
| --- | --- |
| `support:read` | Read support cases, attachments, saved replies, settings, webhooks, stats and limits. |
| `support:write` | Everything `support:read` allows, plus replying, notes, status changes, assignment, saved replies, settings and webhooks. |

A token never has more access than the member who created it. It stops working when it is revoked, when it expires, or when that member leaves the organization or loses **Manage API tokens** or the Support permission the token uses. An organization can have up to 25 active tokens, and every token created or revoked is recorded in its Activity. Keep tokens on your servers, never in code repositories, apps or browsers.

Send the token as a bearer token, without cookies:

```bash
curl "https://api-dev.tringify.com/api/v1/support/cases?status=needs_reply&limit=25" \
  -H "Authorization: Bearer $TRINGIFY_DEV_TOKEN"
```

## Other ways to sign in

The same routes also accept a Developer Portal session with `X-Organization-ID`, and the CLI’s and developer MCP’s organization connector tokens (scopes `organization:support:read` / `organization:support:write`).

A Developer Portal session sends `X-Organization-ID` to pick the organization it acts for; [App documents](/developer-api/app-documents) uses this sign-in.

### Connector tokens

A developer organization token (resource `https://api.tringify.com/mcp/developer`) is also accepted as `Authorization: Bearer` on these Developer API routes at `https://api-dev.tringify.com/api/v1`: `GET /org/themes`, `GET /org/themes/{listingId}`, `GET /org/themes/{listingId}/versions`, `POST /org/themes/upload`, `POST /org/themes/upload/finalize`, `POST /org/themes/upload/status`, `POST /org/themes/{listingId}/versions` and `POST /org/themes/{listingId}/versions/{versionId}/install`. Reads need `organization:themes:read`; the others need `organization:themes:write`. The [Support cases](/developer-api/support-cases) routes accept them with `organization:support:read` / `organization:support:write`; every other Developer API route rejects connector tokens. Store tokens are rejected. Send no cookies with a bearer request; `X-Organization-ID`, if sent, must be the connected organization. Send request bodies as JSON with `Content-Type: application/json`; a body in another format is refused with `PORTAL_GATEWAY_INVALID_REQUEST_BODY`.

Other Developer API endpoints with their own credentials are documented with their flow: the app OAuth token exchange ([App authorization](/apps/apps/authorization)) and trusted publishing from GitHub Actions ([Publish from GitHub Actions](/cli/publish-from-github-actions)).

## Responses

Every response is JSON: `{ "success": true, "data": … }`, or `{ "success": false, "error": { "code", "message", "field"?, "details"? } }`.

## Errors and limits

A refusal carries an HTTP status and `error.code`; `error.field` names the field to fix when one is wrong. Each section lists its own codes and limits: see [Support cases](/developer-api/support-cases#errors) for per-token rate limits (`429` with `Retry-After` and `X-RateLimit-*` headers) and [App documents](/developer-api/app-documents) for document limits. An expired or revoked token answers `401`.

