StayCharted Review Queue API
Answers the model was unsure of, for a person to confirm.
Operations 3
POST
/api/v1/customers/{customerId}/models/{modelId}/review/retrain
Retrain with the confirmed answers
#
Answers the model was unsure of, for a person to confirm.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/staycharted-com:staycharted-com-review-queue-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: StayCharted AI Model Trainer Partner Review Queue API
version: 1.0.0
description: 'For **solution partners**: software companies that build StayCharted AI
Model Trainer (AMT) into their own product under a Solution Partner
Agreement. One partner key reaches every customer the partner manages,
and nothing else.
**What a partner can do by key**
- Add customers. Each is its own StayCharted account with its own data
area and one workspace on the plan you choose. **You pay first:** the
card on your partner account is charged before the customer exists,
and a declined card creates nothing.
- Build, train, test and publish each customer''s models, send it rows to
classify one at a time or as a batch fill, and work its Review Queue
from inside your product.
- Change a customer''s plan, add a workspace, hand the customer over so it
deals with StayCharted directly, or cancel it.
**Two kinds of customer.** `access: api` (the default) is a customer
that uses AMT only through your product: no login, and your key does
everything. `access: login` is a **resold** customer whose own people
sign in to AMT: your key manages its plan and workspaces, and never its
models or data (`partner.customer_signs_in`).
**The key.** `Authorization: Bearer amt_partner_…`. StayCharted issues
it; your account Owner receives a one-time link and sees it once. Up to
two keys at a time, so you can replace one without downtime; either can
be limited to IP addresses and revoked at once from your Partner page.
Keep it in a secrets manager, on your servers only.
**Limits.** 600 calls a minute per key, and 30 new customers a minute
per partner, then `429` with `Retry-After`. Each customer also keeps its
own plan''s allowances and rate limit, exactly as a direct customer has.
**Errors.** JSON with a stable `code`. Branch on `code`, never on the
`error` text, which is written for people and may be reworded. A
customer, model or job that is not yours answers `404`, the same as one
that does not exist.
**Changes.** Additive changes (a new field, a new endpoint) can come at
any time, so ignore fields you do not know. A breaking change to a
documented endpoint or field comes with 60 days'' notice, as the
Solution Partner Agreement says.
**Activity.** Everything done by key appears in the customer''s Activity
as "via (Partner API: )", and every prediction
records it.
Questions: partners@staycharted.com.'
contact:
name: StayCharted partner team
email: partners@staycharted.com
url: https://staycharted.com/partners
termsOfService: https://staycharted.com/legal/terms
servers:
- url: https://amt.staycharted.com
description: Production
security:
- partnerKey: []
tags:
- name: Review Queue
description: Answers the model was unsure of, for a person to confirm.
paths:
/api/v1/customers/{customerId}/models/{modelId}/review:
parameters:
- $ref: '#/components/parameters/customerId'
- $ref: '#/components/parameters/modelId'
get:
tags:
- Review Queue
operationId: listReview
summary: Answers waiting for a person
description: 'Answers below the model''s review cutoff, from every channel (API,
fills), with the same question grouped once. Least confident first.'
parameters:
- name: state
in: query
schema:
type: string
enum:
- pending
- reviewed
- skipped
- unsure
- expired
default: pending
- name: offset
in: query
schema:
type: integer
minimum: 0
default: 0
- name: limit
in: query
schema:
type: integer
minimum: 1
default: 25
responses:
'200':
description: A page of the queue.
content:
application/json:
schema:
$ref: '#/components/schemas/ReviewPage'
'402':
$ref: '#/components/responses/PlanRefused'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/ModelNotFound'
'429':
$ref: '#/components/responses/RateLimited'
/api/v1/customers/{customerId}/models/{modelId}/review/answer:
parameters:
- $ref: '#/components/parameters/customerId'
- $ref: '#/components/parameters/modelId'
post:
tags:
- Review Queue
operationId: answerReview
summary: Answer one
description: 'The right category in `label` (pass the model''s `predictedLabel` too,
so a correction is recorded as one), or `action: skip` or
`action: unsure`. A confirmed answer is used the next time the model
is retrained.'
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- groupKey
properties:
groupKey:
type: string
description: From the queue's `items`.
label:
type: string
predictedLabel:
type: string
action:
type: string
enum:
- skip
- unsure
example:
groupKey: 7d1c0a2e9b
label: Billing
predictedLabel: Account access
responses:
'200':
description: How many rows the answer covered, and the queue's counts.
content:
application/json:
schema:
type: object
properties:
changed:
type: integer
counts:
type: object
additionalProperties: true
'400':
description: No group, or no category.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
example:
error: Choose the right category, or skip it.
code: review.label_required
'409':
description: Someone answered it already.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
example:
error: That answer was already given, or is already in a training run. Reload to see where it is.
code: review.already_answered
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/ModelNotFound'
'429':
$ref: '#/components/responses/RateLimited'
/api/v1/customers/{customerId}/models/{modelId}/review/retrain:
parameters:
- $ref: '#/components/parameters/customerId'
- $ref: '#/components/parameters/modelId'
post:
tags:
- Review Queue
operationId: retrainFromReview
summary: Retrain with the confirmed answers
description: 'Adds the confirmed answers to the training data and starts a new
version (`202`), on the same engine. Publishing it is a separate
call, after you have read its report.'
responses:
'200':
description: Nothing to train on after all; the answers were settled.
content:
application/json:
schema:
type: object
additionalProperties: true
'202':
description: Training started.
content:
application/json:
schema:
type: object
additionalProperties: true
properties:
jobId:
type: string
format: uuid
status:
type: string
'400':
description: No confirmed answers yet, or the model was never trained.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
example:
error: No reviewed answers are waiting to be trained on.
code: review.nothing_ready
'402':
$ref: '#/components/responses/PlanRefused'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/ModelNotFound'
'429':
$ref: '#/components/responses/RateLimited'
components:
schemas:
Error:
type: object
required:
- error
- code
properties:
error:
type: string
description: For a person to read. May be reworded; do not match on it.
code:
type: string
description: Stable. Branch on this.
reasons:
type: array
items:
type: object
additionalProperties: true
description: Present when the refusal has several causes.
ReviewPage:
type: object
properties:
open:
type:
- boolean
- 'null'
description: Whether the customer's plan has the Review Queue.
cutoff:
type:
- number
- 'null'
description: Answers below this confidence come here.
counts:
type: object
additionalProperties: true
total:
type: integer
categories:
type: array
items:
type: string
items:
type: array
items:
type: object
properties:
groupKey:
type: string
description: Pass back to answer it.
itemId:
type: string
size:
type: integer
description: How many times this same question was asked.
confidence:
type:
- number
- 'null'
predictedLabel:
type:
- string
- 'null'
reviewedLabel:
type:
- string
- 'null'
sources:
type: array
items:
type: string
description: The channels it came from.
text:
type:
- string
- 'null'
inputText:
type:
- string
- 'null'
imageHash:
type:
- string
- 'null'
firstAt:
type: string
format: date-time
alternatives:
type:
- array
- 'null'
items:
type: object
additionalProperties: true
description: The model's next candidates.
PlanError:
type: object
description: An Error caused by the customer's plan, with the limit that refused it.
required:
- error
- code
properties:
error:
type: string
code:
type: string
entitlement:
type:
- string
- 'null'
description: Which plan limit refused this.
limit:
type:
- integer
- 'null'
used:
type:
- integer
- 'null'
resetsAt:
type:
- string
- 'null'
format: date-time
description: When a monthly allowance refills; null when waiting will not help.
RateLimitError:
type: object
required:
- error
- code
properties:
error:
type: string
code:
type: string
retryAfter:
type: integer
description: Seconds to wait.
retryAfterSeconds:
type: integer
description: The same, on a customer's own prediction limit.
responses:
ModelNotFound:
description: No such customer of yours, or no such model of that customer.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
example:
error: No such model for this customer.
code: partner.model_not_found
Unauthorized:
description: No partner key, or not a valid one. One answer for every kind of bad key; an address that keeps sending bad keys is told to wait (`429 partner.too_many_refusals`).
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
examples:
missing:
value:
error: 'Send your partner key as: Authorization: Bearer amt_partner_….'
code: partner.key_missing
invalid:
value:
error: That partner key is not valid.
code: partner.key_invalid
RateLimited:
description: Too many calls. Wait `Retry-After` seconds.
headers:
Retry-After:
description: Seconds to wait.
schema:
type: integer
content:
application/json:
schema:
$ref: '#/components/schemas/RateLimitError'
examples:
key:
value:
error: A partner key may make 600 calls a minute. Slow down and retry.
code: partner.rate_limited
retryAfter: 12
refusals:
value:
error: Too many requests with a missing or invalid partner key from this address. Wait a minute.
code: partner.too_many_refusals
retryAfter: 60
PlanRefused:
description: The customer's plan does not allow this, or a monthly allowance is spent (`resetsAt` says when it refills).
content:
application/json:
schema:
$ref: '#/components/schemas/PlanError'
example:
error: This needs 40 predictions and 12 remain this billing period.
code: plan.prediction_limit
entitlement: predictionsPerMonth
limit: 10000
used: 9988
resetsAt: '2026-11-26T00:00:00.000Z'
Forbidden:
description: The partner is suspended, the call came from an address the key does not allow, or the customer is resold and signs in itself.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
examples:
suspended:
value:
error: This partner’s access is suspended. Contact partners@staycharted.com.
code: partner.suspended
address:
value:
error: This key is not allowed from this address.
code: partner.address_not_allowed
signs_in:
value:
error: This customer’s own people sign in and use its models, so a partner key reaches its plan and workspaces only.
code: partner.customer_signs_in
parameters:
modelId:
name: modelId
in: path
required: true
schema:
type: string
format: uuid
customerId:
name: customerId
in: path
required: true
description: The customer's id, from `GET /api/v1/customers`.
schema:
type: string
format: uuid
securitySchemes:
partnerKey:
type: http
scheme: bearer
description: '`Authorization: Bearer amt_partner_…`. Issued by StayCharted; up to two live at once.'