Skip to content

API Overview

The Wintro Customer API lets you programmatically access your company’s referral data. Use it to build custom leaderboards, dashboards, reports, or integrations with your internal tools.

https://app.wintro.ai/api/v1

All requests must include a Bearer token in the Authorization header:

Terminal window
curl -H "Authorization: Bearer wintro_abc123..." \
https://app.wintro.ai/api/v1/leaderboard

Tokens are prefixed with wintro_ and can be created by a company admin under Settings > API Tokens. Each token is scoped to a specific company and set of permissions.

When creating a token, select which endpoints it can access:

ScopeEndpointDescription
leaderboard:read/api/v1/leaderboardEmployee leaderboard data

Need access to more data? Reach out to your Wintro contact and we’ll work with you to enable additional endpoints tailored to your needs.

All endpoints enforce a rate limit of 100 requests per 60 seconds per token.

When the limit is exceeded, the API returns a 429 status. Rate limit headers are included in every response:

HeaderDescription
X-RateLimit-LimitMaximum requests per window
X-RateLimit-RemainingRequests remaining in current window
X-RateLimit-ResetUnix timestamp when the window resets

All successful responses follow this structure:

{
"data": [ ... ],
"meta": {
"generatedAt": "2026-03-16T12:00:00.000Z",
"pagination": {
"page": 1,
"pageSize": 10,
"totalItems": 42,
"totalPages": 5
}
}
}

All errors follow a consistent structure:

{
"error": {
"code": "UNAUTHORIZED",
"message": "Missing or invalid Authorization header"
}
}
StatusCodeDescription
400BAD_REQUESTInvalid query parameters
401UNAUTHORIZEDMissing, invalid, or revoked token
403MISSING_SCOPEToken lacks the required scope for this endpoint
429RATE_LIMITEDToo many requests
500INTERNAL_ERRORUnexpected server error

Endpoints that return lists support cursor-free page-based pagination:

ParameterDefaultMaxDescription
page1-Page number (starts at 1)
pageSizevariesvariesItems per page (see endpoint docs)
  1. Go to Settings > API in the Wintro dashboard
  2. Click Create Token
  3. Enter a name and select the scopes you need
  4. Copy the token immediately — it is only shown once

To revoke a token, click Revoke next to it in the token list.