---
title: "Track keywords for an app (bulk, idempotent)"
method: POST
path: "/api/v1/apps/{id}/keywords"
tags: ["Write"]
---

# Track keywords for an app (bulk, idempotent)

`POST /api/v1/apps/{id}/keywords`

## Request

- Base URL: `https://api.trysonar.app`
- URL: `https://api.trysonar.app/api/v1/apps/{id}/keywords`
- Auth: HTTP bearer

Requires an Indie or Agency plan and a write-scope API key. Re-posting the same terms reports them as already_tracked.

## Path parameters

- `id` string, required

## Request body

- object
  - `keywords` string[], required
  - `country` string: Optional — defaults to the linked product's country

## Response `201`

Per-keyword outcomes: { added, already_tracked, failed, results }

- object
  - `data` object, required: Result payload — full field reference at https://trysonar.app/docs/api

## Other responses

- `400`: Missing or invalid request parameters
- `401`: Missing or invalid API key
- `403`: Plan or scope insufficient (workspace endpoints need an Indie or Agency plan; writes also need a write-scope key)
- `404`: Resource not found or not tracked by your organization
- `429`: Rate limited — see `error.reason`: daily_limit (Indie 1,000, Agency 5,000, trial 150 requests/day, resets 00:00 UTC; see `reset_at`), anonymous_daily_limit / batch_too_large (keyless free tier), store_rate_limited or concurrency_limit (transient, honor `retry_after_seconds`)
- `500`: Unexpected server error

---

[API](https://skmtc.dev/trysonar/apis/sonar-api.md) · [All operations](https://skmtc.dev/trysonar/apis/sonar-api/llms.txt) · [OpenAPI document](https://skmtc.dev/trysonar/apis/sonar-api/revisions/bf1d31dadd5f?raw)
