# REST API (/growseller/docs/developers)

Authentication, stores, request and response conventions of the GrowSeller REST API.

**What it's for:** running your GrowSeller account from your own program: the same stores, creators and campaigns as the dashboard, with the conventions every route shares. Dashboard menu: every menu; stores are **Connector**.

The REST API does what the dashboard does, for TikTok Shop and Shopee stores: stores, Discover Creator, My Creator and Store Creator lists, blocked creators, Target Collaboration, Messenger Broadcast (TikTok, email and WhatsApp), TikTok and WhatsApp chats, samples, Spark Ads Codes, performance and background jobs. Every endpoint is listed in the [API Reference](/growseller/docs/api-reference).

The API is for sellers with an active subscription, the trial included (its limits apply). When the subscription has ended, requests are refused with `403 PLAN_REQUIRED`.

## Base URL [#base-url]

```txt
https://seller.growpaces.com/api/v1
```

The OpenAPI document of the API is served at `/api/v1/openapi.json`.

## Authentication [#authentication]

Send a credential as a bearer token:

```bash
curl https://seller.growpaces.com/api/v1/workspace/shops \
  -H "Authorization: Bearer gsk_..."
```

Two kinds of credentials work:

| Credential | Made in | Lifetime |
| --- | --- | --- |
| API key (`gsk_…`) | Dashboard → **Developer** → **API Key**. The key is shown once; you can have 10. | Until you delete it. It reads and changes like you do in the dashboard. |
| OAuth access token (`gso_at_…`) | An app you allow through the OAuth sign-in (MCP clients do this). | One hour, renewed with its refresh token. The access ends when you sign out everywhere, when you disconnect the app in **Developer** → **Connected apps**, and at the latest 90 days after you allowed it. |

An OAuth grant carries the scopes you allowed: `read` only allows `GET` requests (anything else is refused with `403 SCOPE`), `write` allows changes too.

## The dashboard's routes [#the-dashboards-routes]

Each API route is the dashboard's own route with the same path: `/api/v1/creators` is the list Discover Creator shows. What you can reach is what you reach in the dashboard: your own stores and the stores shared with you. Actions only a store's owner may do (deleting it, sharing it) stay the owner's.

Most routes work in one store, named by `shop_id` (in the query or the body). List your stores with [`GET /workspace/shops`](/growseller/docs/api-reference/stores/get-workspace-shops).

Some things stay in the dashboard and answer `404 NOT_IN_API` with `details.dashboard_url`, the page where you do them: connecting a store or a connector (TikTok login, codes, security checks, Meta's signup), deleting a store or a connector, billing checkout and invoice PDFs, API keys and webhooks, file exports and downloads (creators, blocked creators, samples, Spark Ads Codes, performance, Shopee waybills), and large imports.

[`GET /workspace/shops`](/growseller/docs/api-reference/stores/get-workspace-shops) answers one list of every store you work, both platforms: `id` (the `shop_id` of every route), `platform` (`tiktok` or `shopee`), `name`, `country`, `is_owner`, `session_expired` (connect it again in the dashboard), `needs_reauth`, `captcha_required` and `plan_expired`.

## Requests and responses [#requests-and-responses]

- JSON bodies with `Content-Type: application/json`; every field and parameter name in `snake_case`, in requests and answers.
- Times in ISO 8601, UTC, ending in `Z`; ids are UUID strings, except TikTok's and Shopee's own ids (an invitation, a product, a video).
- Fixed values: statuses and kinds in capitals (`RUNNING`, `FAILED`, `MESSAGE_BROADCAST`, a target's `DRAFT` … `SKIP`), choices and filters in small letters (`gmv_desc`, `to_review`, `approve`). Matched in any case.
- Units: commission and rates in percent (`10` = 10%), money in the store's currency.
- Every answer has the same envelope:

```json
{ "success": true, "data": { "shops": [] }, "message": "OK", "timestamp": "2026-11-21T09:00:00Z" }
```

- Status codes: `200` read or changed, `201` made (a template, a group, a broadcast, a connect link), `202` started as a job, `4xx` refused (see [Errors](/growseller/docs/developers/errors): every error has `error_code` and `details.docs_url`).
- Lists are paged with `page` and `limit`: at most 100 rows a page and 5 pages for one search. Their data carries `page`, `limit` and `has_more`, and `total` where it is counted (`total_capped` true: more than 50,000). Narrow a list with its filters or its search; to act on many creators, send a `selection` (see [Creators](/growseller/docs/developers/creators)).
- Rate limit headers: `RateLimit-Policy` and `RateLimit` (IETF), `RateLimit-Limit`, `RateLimit-Remaining`, `RateLimit-Reset`, and `Retry-After` on a `429`; see [Rate limits](/growseller/docs/developers/rate-limits).

## Work that reaches TikTok or Shopee [#work-that-reaches-tiktok-or-shopee]

Sending invitations and broadcasts and syncing invitations or samples run as background jobs, as in the dashboard. A change made through the API on a store's samples (a review, a reminder, a rating, a Shopee shipment or cancellation) runs as a job too: the API answers `202` with the job (kind `API_ACTION`), and the worker runs it one at a time per store. Follow jobs with [`GET /jobs`](/growseller/docs/api-reference/jobs/get-jobs) or the [`job.completed`](/growseller/docs/developers/webhooks) webhook; an `API_ACTION` job keeps the route's answer in its result.

Calls that reach TikTok or Shopee live (performance, invitation orders, chats, sample actions) count against the store's limit of 20 a minute for API and MCP calls, see [Rate limits](/growseller/docs/developers/rate-limits). Shopee stores have their own routes, see [Shopee](/growseller/docs/developers/shopee).