This page assumes the shared rules in API Conventions — authentication, the two error shapes, batching and identity resolution. It only covers what is specific to progress.
The level ladder is configured by your company: how many levels, their names, what each one requires, and how each one looks. This API returns whatever is configured — it knows no specific ladder.
How It Works
- You get an API Key with the
progress:readscope - Your backend asks for one or many collaborators (by CPF or email)
- SalesOS answers with the ladder once at the top, then each person’s state
Authentication
Endpoint Reference
progress_status.
Request Schema
Ranking universe:
tenant (everyone in the company) or org_unit (the person’s own unit). Absent = tenant.Example
Fields
The ladder (top level)
Per collaborator
How far to the next level
Each requirement innext_level.requirements carries the rule and the person’s progress. That is what lets you write “20 sales, 10 to go” without doing the math on your side:
- The number is the same one SalesOS uses to promote the person: your screen never disagrees with the level.
- A level can have more than one requirement. The person moves up when all of them are
met: true. - Requirements are configured per company. Build the screen from
typeandevent_types, and never hardcode “sales” in your client. - A requirement type the API does not measure yet comes with the rule only, without
current. Treat it as “not measured”, not as zero. level.requirementscarries the same measure for the current level. Someone at the top has nonext_level, and that is where the total keeps showing.- The level is the person’s current rung on the ladder, the same one the app shows, and does not depend on
period. The counts are always all-time.periodonly changes XP and ranking. - The level is re-evaluated when the person’s next activity arrives. So, for a brief moment,
next_levelmay showmet: trueon everything before the person moves up. - A requirement configured in a way that cannot be measured also comes with the rule only, without
current.
Level appearance
The level’s visual identity — its color, and anything else your company configures — comes back inappearance.
appearance.image_url is the level badge, with the full address of the environment that answered (https://api.play2sell.com/storage/... in production, https://api-staging.play2sell.com/storage/... in staging). Use the URL as is.
Periods
XP is stored in four periods, and the screen usually shows one of them. Because “200 XP” on a design does not say which, this API returns all four plus the one you asked for.Ranking
A position only means something alongside its universe, soscope, period and total always travel with it.
Day streak
streak tells how many consecutive days the person has been scoring — the ”🔥 10 days” on a home screen. It is the same number as the app’s Consistency card: both reads come from the same rule.
A day counts when the person ends it with a positive points balance. Any credited point counts (mission, quiz, extra points). A reversed point undoes the day; a day with only penalties does not count. The day is in the company’s time zone (timezone, at the top of the response): a point at 9 PM on Sunday in Brasília counts for Sunday, even though it is already Monday in UTC.
Here zero is a measurement: someone who never scored has
current: 0 and longest: 0. A person not found (found: false) has no streak.Self mode (SSO user token)
With the token of a user who signed in through SSO, sendAuthorization: Bearer <jwt> and omit collaborators. The answer covers only the token’s own user.
X-Tenant-Id with the company’s ID; without it, the token’s default company is used. Other self-mode errors: 400 SELF_MODE_USER_ONLY (the token is not a user’s) and 400 TENANT_REQUIRED (the account is not linked to any company).
Error Handling
See API Conventions for the two shapes and the status code table.400 — VALIDATION_ERROR
400 — VALIDATION_ERROR
Invalid body, batch over 500, CPF without 11 digits, an item with neither
cpf nor email, or an unknown period / ranking_scope.401 — authentication
401 — authentication
API key missing, unknown, revoked or expired, a timestamp outside the 30-second window (any second in the future included), or a signature that does not match. The body is
{ "error": "<message>", "code": "<code>" }, with code such as header_missing, api_key_not_found, key_revoked, key_expired, timestamp_too_old, timestamp_in_future or signature_invalid. In self mode, an invalid or expired user token answers { "error": { "code": "UNAUTHORIZED", … } }.403 — scope_insufficient
403 — scope_insufficient
The key is valid but lacks the
progress:read scope: { "error": "…", "code": "scope_insufficient", "missing_scopes": ["progress:read"] }. In self mode, FORBIDDEN means the account has no access to the company sent in X-Tenant-Id.429 — rate_limited
429 — rate_limited
The key reached its hourly limit:
{ "error": "…", "code": "rate_limited" }. Wait the seconds in the Retry-After header, then retry.Rate Limits
Next Steps
Missions API
The progress that earns the XP shown here
Campaigns API
Where the coins get spent

