Overview
What the Workspace API is for, how a call looks, and where to go next.
After this page you will be able to explain what the Workspace API offers, make a first call with your API key and find the guide for each next task.
Prerequisites: an API key of your workspace with the reviews:read permission (ask your Nortly workspace admin), and Node.js 20 or later for the example at the end.
What the Workspace API is for
The Workspace API lets your own backend read the data of your Nortly workspace. Today that is the reviews of the apps in the workspace: you can list and filter them, count them, and fetch one by id. The API is read-only, and it only ever returns data of the workspace your API key belongs to.
The host is https://api.nortly.app (Production Workspace API). Your server calls it directly; the API key never goes into a browser or a mobile app.
How a call looks
Every route lives under a date-named version in the path, and every call carries your API key as a bearer token:
GET https://api.nortly.app/api/2026-07/reviews?limit=5
Authorization: Bearer <your API key>Every answer uses the same JSON envelope. A success carries the payload in data:
{
"success": true,
"data": [ { "id": "4815162342:1200345", "rating": 5, "status": "published" } ],
"message": "Reviews retrieved",
"meta": { "timestamp": "2026-07-14T09:30:12.481Z", "pagination": { "limit": 5, "nextCursor": null } }
}A failure has success: false, a message, a machine-readable code and, for some errors, an errors list. Branch on code and on the HTTP status, not on message. See Errors for all codes.
To check that your key works, run this one-liner on your server (the key comes from an environment variable):
curl -s -H "Authorization: Bearer $NORTLY_API_KEY" "https://api.nortly.app/api/2026-07/reviews?limit=5"We recommend that your client ignores fields it does not know: new fields can appear in the current version.
Resources available today
| Resource | Routes | Guide |
|---|---|---|
| Reviews | GET /api/2026-07/reviews, GET /api/2026-07/reviews/count, GET /api/2026-07/reviews/{id} | Reviews |
There is also an operational check, GET https://api.nortly.app/, which answers the plain text workspace-api ok without authentication. It is for uptime monitors only. The full list of routes, parameters and responses is in the API reference.
Next steps
- Authentication: the API key, permissions and the
401and403answers. - Reviews: filters, sorting, fields and common queries.
- Pagination: read all pages of a list.
- Errors: the codes and what to do for each.
- Versioning: date-named versions and how changes are introduced.
Example
A complete program that makes the first call: it reads the configuration from environment variables, lists the five newest published reviews and handles the error cases. Save it as first-call.ts and run it with NORTLY_API_KEY=<your key> npx tsx first-call.ts.
const BASE_URL = "https://api.nortly.app";
const API_KEY = process.env.NORTLY_API_KEY;
if (!API_KEY) {
throw new Error("Set NORTLY_API_KEY to an API key with the reviews:read permission");
}
type Review = {
id: string;
appId: string;
customerId: string | null;
rating: number;
text: string;
status: "published" | "deleted";
createdAt: string;
updatedAt: string;
};
type ListResponse = {
success: true;
data: Review[];
message: string;
meta: { timestamp: string; pagination: { limit: number; nextCursor: string | null } };
};
type ErrorResponse = { success: false; message: string; code: string; errors?: string[] };
async function listLatestReviews(limit: number): Promise<Review[]> {
const response = await fetch(`${BASE_URL}/api/2026-07/reviews?limit=${limit}`, {
headers: { Authorization: `Bearer ${API_KEY}` },
});
// A 401 can come without a JSON body: rely on the status code.
if (response.status === 401) {
throw new Error("401: the API key is missing or invalid");
}
if (!response.ok) {
const error = (await response.json()) as ErrorResponse;
throw new Error(`${response.status} ${error.code}: ${error.message} ${(error.errors ?? []).join("; ")}`);
}
const body = (await response.json()) as ListResponse;
return body.data;
}
const reviews = await listLatestReviews(5);
for (const review of reviews) {
console.log(`${review.createdAt} ${review.rating}/5 ${review.id} ${review.text || "(no text)"}`);
}
console.log(`${reviews.length} review(s) read`);Expected output (values depend on your workspace):
2026-06-12 5/5 4815162342:1200345 Great app, setup took two minutes.
2026-06-10 2/5 4815162342:1200311 (no text)
2 review(s) readUpdated 6 days ago