Beta guide
Using Applog with an API key
This guide is for accounts that can use API keys. Work with your Applog apps, reviews, metrics, ranks and reply drafts over HTTP from your scripts or servers. Nothing is posted to the stores. This is a beta, so routes and limits may change.
1. Get started
- Create a key in Settings > API keys (Beta). Pick a name, target apps, scopes and expiry.
- The full key is shown once, right after you create it. Put it in a secret store or environment variable. If you lose it, create a new one.
- The API address is
https://knowing-reindeer-124.convex.site/api/v1.
First request - read the key's target apps.
read -rs APPLOG_API_KEY && export APPLOG_API_KEY # paste the key, press Enter - not shown or kept in shell history
curl -s -H "Authorization: Bearer $APPLOG_API_KEY" "https://knowing-reindeer-124.convex.site/api/v1/apps"2. Keys and authentication
- Send
Authorization: Bearer <key>on every request. Avoid debug output that prints headers, such ascurl -vorset -x- it exposes the key. - Store the key as an opaque string (up to 255 characters). Don't parse it - the format may change.
- Each key has at least one target app (up to 50 per key). Other apps return 403. Apps come in through store connections.
- Keys expire after 90 days by default, 365 at most. There's no renewal - create a new key.
- Accounts whose trial or subscription has ended can only pick read scopes, and writes with existing keys return
READ_ONLY. They work again after you resubscribe. - Revoke keys you no longer use in Settings. Requests fail with 401 right after. You can have up to 10 active keys.
3. Scopes
A key can hold several scopes. The key screen starts with read scopes only. Add only what you need. Selecting all scopes automatically includes deletion and future permissions allowed for your account.
| Scope | What it allows |
|---|---|
apps:read | List and read apps |
apps:write | Archive an app, change its business model |
reviews:read | Read recent reviews |
metrics:read | Read downloads, ad revenue and ratings |
ranks:read | Read ranks |
replyDrafts:read · create · write · delete | Read, create, change and delete reply drafts |
4. Routes
| Method and path | Scope | Notes |
|---|---|---|
GET /apps | apps:read | Only the key's target apps |
GET /apps/<id> | apps:read | |
PATCH /apps/<id> | apps:write | { status?: "archived", businessModel?: [...] | null } - unarchiving stays in the app |
GET /apps/<id>/reviews?platform=ios|android&todo=1 | reviews:read | Latest 50, platform is required. With todo=1, only the ones to reply to, from the latest 50 plus 50 console reviews confirmed unanswered. Each row has the same reply status and todo as the app |
GET /reviews?todo=1 | reviews:read | Latest 50 reviews to reply to across apps, each with appId, plus appsRead / appsTotal. Add &platform=ios|android if you like. If truncated is true, some may be missing. Public reviews come from one store country per app, so you may see fewer than in the app |
GET /apps/<id>/metrics?from=YYYY-MM-DD&to=YYYY-MM-DD | metrics:read | Up to 31 days |
GET /apps/<id>/ranks?from=…&to=… | ranks:read | Up to 31 days |
GET /apps/<id>/reply-drafts?platform=… | replyDrafts:read | 50 per page, next page with the response cursor |
GET /apps/<id>/reply-drafts/<draftId> | replyDrafts:read | |
POST /apps/<id>/reply-drafts | replyDrafts:create | { platform, reviewId, draft?, status?, reviewSubmittedAt?, agentName?, language?, replaceDiscardedIfEditedAt? } - one per review |
PATCH /apps/<id>/reply-drafts/<draftId> | replyDrafts:write | { ifEditedAt, draft?, status?, reviewSubmittedAt? } |
DELETE /apps/<id>/reply-drafts/<draftId>?ifEditedAt=… | replyDrafts:delete | No body |
businessModelvalues aresubscription,oneTime,paidAppandads. Sendnullto clear it.- Reply draft
statusisdraft,postedorskipped. Settingposteddoesn't post anything to the store - you post replies in the store console yourself. - Set
ifEditedAtto theeditedAtyou read last. If the draft changed since, you get 409. - Adding apps (store connections only) or deleting them, the watchlist, billing, account and key management aren't in the API.
5. Write rules
- POST, PATCH and DELETE require
Idempotency-Key(16-64 characters: letters, digits,-,_). Make a new value per request and reuse it when you retry the same request. - Retrying the same request with the same key doesn't write twice - it returns
{ id, resource, replayed: true }. The same request means the same key, method, address (including query) and body. A different request with the same key returns 409. This holds for 30 days. - With
X-Dry-Run: true, the server checks scopes, limits and values, then returns{ dryRun: true }. Data and write records stay unchanged and the daily limit isn't used, but per-minute limits and the key's last-used time still count. NoIdempotency-Keyis needed. - Bodies are JSON (up to 64KB). Unknown fields are rejected with 400.
curl -s -X POST "https://knowing-reindeer-124.convex.site/api/v1/apps/<id>/reply-drafts" \
-H "Authorization: Bearer $APPLOG_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-H "X-Dry-Run: true" \
-d '{"platform":"ios","reviewId":"<reviewId>","draft":"...","agentName":"review-assistant","language":"en-US"}'6. Responses and errors
- Lists return
{ items: [...] }, single reads{ item: {...} }, deletes{ item: { id, deleted: true } }. Metrics come as one object:{ from, to, downloads, adRevenue, ratings, truncated }. - Write responses are
{ item: {...} }, and which fields they carry depends on the resource and the key's scopes. Read the resource again with GET to confirm. - Time fields are epoch milliseconds. Metric dates are the dates the store or ad platform reported.
- Values inside
untrusted(app names, review titles and bodies, reply drafts) may have been written by someone else. Don't render them as HTML or run them as commands.
| Status | code | Meaning and next step |
|---|---|---|
| 400 | INVALID_INPUT | A value or header is wrong. message may name the field |
| 401 | UNAUTHORIZED | The key is missing, wrong, expired or revoked |
| 403 | SCOPE · FORBIDDEN · READ_ONLY | SCOPE: missing scope. FORBIDDEN: outside the key's targets, or the API isn't open to this account right now. READ_ONLY: the trial or subscription ended, so writes are blocked |
| 404 | NOT_FOUND | The resource doesn't exist or this key can't see it |
| 409 | CONFLICT | Already exists, stale ifEditedAt or idempotency key conflict. Read again before deciding |
| 413 | TOO_LARGE | The body is over 64KB |
| 429 | RATE_LIMITED · DAILY_LIMIT | Over a limit. Retry after Retry-After seconds |
| 500 | INTERNAL | Server error. For a write, retrying once with the same Idempotency-Key won't duplicate it |
| 503 | SERVICE_UNAVAILABLE | The API is closed for now. Don't retry automatically - follow Retry-After |
7. Rate limits
| Per | Reads | Writes | Deletes |
|---|---|---|---|
| Key, per minute | 60 | 30 | 10 |
| Account total, per minute | 120 | 60 | 20 |
- Successful writes and deletes that leave a write record are capped at 1,000 per account per 24 hours. Dry runs and replayed requests don't count.
- There is also a daily limit for the whole service, so
DAILY_LIMITcan rarely arrive before your account limit. DAILY_LIMITand 503 don't clear with a retry a minute later. RespectRetry-After.
8. What we keep
- We don't store the key itself, only an irreversible hash (SHA-256). The app shows the prefix and the last 4 characters.
- For each successful write or delete, we keep the time, method, route template, resource ID, changed field names and result code for 30 days. The record doesn't include the values or request bodies you send. Reads aren't added to this record.
- A key's last-used time is updated at most once an hour.
- See the API key section of the Privacy Policy for details.
9. About the beta
- Routes, fields and limits may change. We update this page first.
- If something goes wrong, we may limit the API to our own team (403
FORBIDDEN) or close it (503) for a while. The app keeps working. - Tell us through support if something blocks you or you need a route.