ProSchedule data for your AI assistants and programs
AI assistants — ChatGPT and Claude — connect to ProSchedule themselves through the MCP server, and the employee gives consent in ProSchedule. The same operations are open to other programs through the public API: the structure and the stores, aggregated sales, hours and productivity, and the state of the schedules.
https://api.proschedule.com/mcphttps://api.proschedule.com/api/public/v1Authorization: Bearer psk_…MCP or REST#
For AI assistants: ChatGPT, Claude and your own agents. An employee connects an assistant through OAuth; an agent on a server may come with an API key.
For BI, exports, server-to-server integrations and your own scripts. A call is an HTTPS request with an API key in a header; the answer is JSON.
| Task | Use | Sign in with |
|---|---|---|
| Questions about the figures in ChatGPT or Claude | MCP | OAuth: the employee signs in to ProSchedule and consents |
| Your own agent on a server | MCP or REST | An API key in the Authorization header |
| Power BI reports, an export to a warehouse, an integration with your system | REST | A service key: explicit scopes and reach, independent of any employee |
| Your own script or spreadsheet that works as you | REST | A personal key: your role and your stores |
It reads, and writes in one place only, sales planning: a draft plan from your model's figures, a turn of the ProSchedule planner and, with a personal key, a reviewed plan written into the forecast. Data about individual employees — the time sheet by person, absences, the names in the week schedule, the breakdowns by employee, position and role, the actions of the development plans — only where the company's administrator switched “People data” on (it has a consent of its own) and the key or connection carries timesheets:read or team:read; otherwise the answer is DATA_CATEGORY_DISABLED. Labour cost only where the company's administrator opened it and the key or connection carries labor_cost:read. The sales planning dataset and the sales plans only where the company's administrator switched “Sales planning” on (it has a consent of its own) and the key or connection carries sales_plans:read. API keys are free; MCP tool calls through assistants' connections spend the company's AI credits — see “Cost”. A company administrator switches access on.
Loading data into ProSchedule (employees, sales, shifts) is a separate integration API with keys of its own; this page does not describe it.
Connecting assistants MCP#
Five steps, no code and no keys: you add the address in the assistant, sign in to ProSchedule and give consent.
-
An administrator prepares the company
Everything in the access conditions, and the assistants are switched on in “Allowed applications”. The role permission “Can connect AI assistants and API keys” is needed to connect an assistant too.
-
The employee copies the address
“Profile” → “My AI connections” → “Connection address”:
https://api.proschedule.com/mcp. -
Adds the server in the assistant
In the assistant's settings, add a custom MCP connector with this address and OAuth sign-in. Assistants rename their menus often; in ChatGPT workspaces adding connectors may be up to the workspace administrator.
-
Signs in and consents
The assistant opens ProSchedule in the browser: sign in and check the consent screen — the application's name, where the result returns to and what it will be able to read. Untick what it does not need and press “Allow”.
-
Asks
For example: “Revenue and worked hours by store for last month”. The connection is listed in “My AI connections”, and for administrators in “Employees' connections”.
Tested clients#
| Client | Identifies itself with | State |
|---|---|---|
| ChatGPT | A client document on chatgpt.com, signed with private_key_jwt | Tested in November 2026: sign-in, consent, tool calls |
| Claude (claude.ai connector) | A client document on claude.ai, a public client with PKCE | Tested in November 2026: sign-in, consent, calls of all five tools |
Not tested: Claude Code with its own sign-in, Microsoft Copilot Studio, MCP Inspector and other clients that register themselves, and a refresh by a real client. A client that supports OAuth 2.1 with PKCE and one of the two ways to identify itself will probably connect, but we do not promise it.
Disconnecting#
“Disconnect” in “My AI connections” (or, for an administrator, in “Employees' connections”) takes effect at once: the assistant's next call gets a 401. Removing the connector in the assistant itself may not revoke access in ProSchedule (in our tests the clients did not revoke it) — disconnect here too.
https://api.proschedule.com/mcp- Revenue and worked hours by store for last month.
- Which stores have not approved next week's schedule yet?
- At which hours of the day do the Tashkent stores sell the most checks?
REST quickstart#
-
The company is ready for access
An administrator opens Admin → “API and AI connections” and switches “External API access” on: the first time, “Consent to share data with external services” opens under the switch, and “Accept and switch on” turns access on. For employees to issue personal keys and connect AI assistants, their role needs the permission “Can connect AI assistants and API keys” (on the “Roles” tab; it is off for every role, administrators included).
-
Issue a key
A service key: on the same tab, “Service keys” → “Create key”: a name, “Scopes”, “Reach”, “Expires” and, if needed, “Allowed IP addresses”. A personal key: “Profile” → “My API keys” → “Create key”.
The key is shown once: ProSchedule keeps only its hash. Copy it at once and put it in the
PROSCHEDULE_API_KEYenvironment variable or your secret store. -
Make the first call
Call GET
/api/public/v1/me— it works with any scope and tells who the key acts as and what it can see. The key travels in a header only:Authorization: Bearer psk_…orX-API-Key: psk_…. -
Read the answer
The answer is an envelope,
{ data, meta }.data.credentialis the kind of key, its scopes and its expiry;data.subjectthe employee and the role (for a personal key);data.reachthe reach:full— the whole company,nodes— structure nodes and everything below them.data.todayanddata.businessDaysay which date periods count from and at which hour the business day starts.meta.requestIdis the id of the call: quote it when you report a problem. -
Next
The stores — GET
/api/public/v1/stores, the metrics catalogue — GET/api/public/v1/metrics/catalog, the figures themselves — POST/api/public/v1/metrics/query. For an assistant, connect the MCP server.
/api/public/v1/mecurl "https://api.proschedule.com/api/public/v1/me" \
-H "Authorization: Bearer $PROSCHEDULE_API_KEY"const response = await fetch("https://api.proschedule.com/api/public/v1/me", {
headers: {
Authorization: `Bearer ${process.env.PROSCHEDULE_API_KEY}`,
},
});
if (!response.ok) throw new Error((await response.json()).code);
const { data, meta } = await response.json();import os
import requests
response = requests.get(
"https://api.proschedule.com/api/public/v1/me",
headers={"Authorization": f"Bearer {os.environ['PROSCHEDULE_API_KEY']}"},
timeout=30,
)
response.raise_for_status()
body = response.json()
print(body["data"]){
"data": {
"company": {
"name": null,
"locale": "ru",
"firstDayOfWeek": "monday",
"currency": null,
"timeZone": null
},
"today": {
"date": "2026-11-12",
"basis": "utc"
},
"businessDay": {
"startsAt": "06:00"
},
"credential": {
"kind": "personal_key",
"name": "Power BI reports",
"keyId": "1a2b3c4d5e6f7a8b",
"scopes": [
"org:read",
"analytics:read"
],
"expiresAt": "2027-02-10T09:30:00.000Z"
},
"subject": {
"kind": "person",
"name": "Aziz Karimov",
"role": {
"id": "2",
"name": "Regional manager"
},
"isAdministrator": false
},
"reach": {
"kind": "nodes",
"roots": [
{
"id": "n_tashkent",
"name": "Ташкент",
"isStore": false
}
]
},
"access": {
"peopleData": false,
"laborCost": false
}
},
"meta": {
"requestId": "5f0c2b9e-7c1d-4a57-9d43-2f6f5a1f0b3c",
"generatedAt": "2026-11-12T09:30:00.000Z"
}
}MCP server#
The MCP server gives AI assistants the same operations as REST, as tools. The assistant picks the tool itself and gets the answer in the same { data, meta, page } envelope.
| Address | https://api.proschedule.com/mcp |
| Transport | Streamable HTTP, POST only; no session — every request stands on its own. Clients of the 2026-07-28 revision get JSON, clients of the 2025 revisions one SSE event. |
| Sign-in | OAuth 2.1 (how ChatGPT and Claude connect) or an API key in Authorization |
| Tools | get_context, search_directory, list_metrics, query_metrics, get_schedule_status, get_store_week_schedule, get_action_plan_summary, get_labor_report, get_managers_report, get_timesheet_approval_status, get_timesheet, get_absences, list_action_items, get_sales_planning_dataset, list_sales_plans, get_sales_plan, create_sales_plan_draft, start_ai_sales_plan, estimate_required_hours — read only |
| Server name | proschedule |
An assistant acts as the employee who connected it: with their role and their stores. The tool list depends on the granted scopes; a client may keep it for 300 seconds.
Sign-in: OAuth and keys#
OAuth#
A client finds the authorization server itself: a call to /mcp without sign-in gets a 401 whose WWW-Authenticate names the resource metadata:
WWW-Authenticate: Bearer resource_metadata="https://api.proschedule.com/.well-known/oauth-protected-resource/mcp", scope="org:read analytics:read labor_cost:read schedules:read timesheets:read team:read team_development:read sales_plans:read sales_plans:write"
- Metadata:
/.well-known/oauth-protected-resource/mcp(the resource) and/.well-known/oauth-authorization-server(the authorization server). - Flow: authorization code with PKCE (
S256required). The return address ishttps, orhttpon this computer (loopback); private schemes such ascursor://are refused. - How a client identifies itself: with a client metadata document at its own address (ChatGPT and Claude do so) or by dynamic registration at
/oauth/register— at most 10 registrations an hour from one address. A self-registered application is unverified: it can connect only after an administrator switches on “Unverified applications”. - Scopes:
org:read,analytics:read,labor_cost:read,schedules:read,timesheets:read,team:read,team_development:read. On the consent screen the employee may untick any of them. - Lifetimes: an access token lives 60 minutes; a refresh token 30 days from its last use and is replaced at every refresh (presenting an old one ends the connection); consent holds for 180 days, then it is asked again.
- How many connections: up to 10 active per employee. Two consents to one application are two connections.
- A token is issued for
/mcponly: on REST the token of a live connection getsINVALID_CREDENTIAL.
Sign-in errors#
The authorization server answers with the standard OAuth errors of RFC 6749: in the error parameter of the return address, or in a JSON body. These are the ones a client meets in practice:
error | Where | What happened |
|---|---|---|
access_denied | Return address | The employee pressed “Deny”, or cannot connect an assistant: external access is off, the consent is not accepted, the application is not allowed, the role lacks the permission, or there are already 10 active connections. |
invalid_target | Return address | The request names a resource other than https://api.proschedule.com/mcp. |
invalid_redirect_uri | Registration, 400 | The return address is neither https nor http on this computer. A sign-in request with such an address ends on ProSchedule's error page and never returns to the client. |
invalid_grant | /oauth/token, 400 | The code was already used or has expired; a refresh token was presented a second time (the connection then ends); the connection was disconnected in ProSchedule. |
temporarily_unavailable | Registration, 429 or 503 | More than 10 registrations an hour from one address (429), or the client registry is full (503). Retry after Retry-After seconds. |
invalid_request | Return address; 403 | A sign-in request without code_challenge: PKCE with S256 is required. With HTTP 403 — the request came to a host name this server does not serve. |
API key#
Your own agent on a server may call /mcp with an API key in Authorization: Bearer psk_…. It sees the tools of its scopes and the data of its reach, and shares its limits with the REST calls of the same key. Calls with a key spend no AI credits.
Tools#
A tool is the REST operation of the same name: the tool's name is the operationId, its arguments are the parameters or the body, its result is the answer. Below are the descriptions the assistant receives and the argument schemas.
get_contextCompany context and the caller's access#
Who the credential acts as and what it can see: the company's language and first day of the week, today's date, the credential's scopes and expiry, the caller's role, the reach in the structure (the whole company, or the listed root nodes and everything below them) and the data categories the company has opened. Call it first: every other operation answers inside this reach. The company's name, currency and time zone are not known to the system and are always null; today is the UTC date, and a business day starts at 06:00 (sales before that hour belong to the previous day).
Questions to ask the assistant
- What can you see in ProSchedule on my behalf?
- Which scopes does this connection have?
Arguments
The tool takes no arguments.
Result
structuredContent is the same { data, meta, page } envelope that is answered by GET/api/public/v1/me.
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "get_context",
"arguments": {}
}
}{
"jsonrpc": "2.0",
"id": 1,
"result": {
"content": [
{
"type": "text",
"text": "…"
}
],
"structuredContent": {
"data": {
"company": {
"name": null,
"locale": "ru",
"firstDayOfWeek": "monday",
"currency": null,
"timeZone": null
},
"today": {
"date": "2026-11-12",
"basis": "utc"
},
"businessDay": {
"startsAt": "06:00"
},
"credential": {
"kind": "personal_key",
"name": "Power BI reports",
"keyId": "1a2b3c4d5e6f7a8b",
"scopes": [
"org:read",
"analytics:read"
],
"expiresAt": "2027-02-10T09:30:00.000Z"
},
"subject": {
"kind": "person",
"name": "Aziz Karimov",
"role": {
"id": "2",
"name": "Regional manager"
},
"isAdministrator": false
},
"reach": {
"kind": "nodes",
"roots": [
{
"id": "n_tashkent",
"name": "Ташкент",
"isStore": false
}
]
},
"access": {
"peopleData": false,
"laborCost": false
}
},
"meta": {
"requestId": "5f0c2b9e-7c1d-4a57-9d43-2f6f5a1f0b3c",
"generatedAt": "2026-11-12T09:30:00.000Z"
}
}
}
}search_directoryFind stores, structure nodes and reference values by name#
Turns a name into an id. Searches the names of stores, structure nodes (a node is a group of the structure, such as a region or a city; a store is its own type), positions, roles, store concepts and order channels, and returns the closest matches with a score from 0 to 1, best first. Use the ids in the filters of the other operations. Stores and nodes are searched inside the credential's reach only; context is the name of the parent node within that reach, or null. The match is fuzzy: it ignores case and word endings and tolerates small typos; a name with no close match returns an empty list. types narrows the search (a comma list, default all); limit is 1 to 50, default 10.
Questions to ask the assistant
- Find the Chilanzar store.
- Which sales channels does the company have?
Arguments
-
qstringrequiredThe name to look for, or a part of it. -
typesarray<any>What to search, as a comma list. Default: every type. -
limitintegerThe most results to return.
Result
structuredContent is the same { data, meta, page } envelope that is answered by GET/api/public/v1/directory/search.
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "search_directory",
"arguments": {
"q": "чиланзар",
"types": [
"store"
]
}
}
}{
"jsonrpc": "2.0",
"id": 1,
"result": {
"content": [
{
"type": "text",
"text": "…"
}
],
"structuredContent": {
"data": {
"results": [
{
"type": "store",
"id": "n_184",
"name": "Evos Чиланзар",
"context": "Ташкент",
"score": 0.9
}
]
},
"meta": {
"requestId": "5f0c2b9e-7c1d-4a57-9d43-2f6f5a1f0b3c",
"generatedAt": "2026-11-12T09:30:00.000Z"
}
}
}
}list_metricsList the metrics a query can ask for#
The catalogue of the metrics query: every measure with its value format, whether its values add up (additive), whether a higher value is better, and the dimensions and filters it takes; every dimension and filter; the preset periods and the comparisons; and the limits of one query. Call it before the first query, and build queries from these ids only. It lists what this credential may use: the cuts by position and role appear only for a company that has opened people data to the API, to a credential with team:read — and so do the cut and the filter by employee. Labels come in English or Russian (lang, default en); descriptions are in English. filters[].directoryType is the types value of the directory search that finds the ids for that filter; null for employeeIds — people are in no directory, and their ids come from the answers that name them.
Questions to ask the assistant
- Which sales measures can I ask for?
- How can worked hours be broken down?
Arguments
-
langanyThe language of the labels.
Result
structuredContent is the same { data, meta, page } envelope that is answered by GET/api/public/v1/metrics/catalog.
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "list_metrics",
"arguments": {
"lang": "en"
}
}
}{
"jsonrpc": "2.0",
"id": 1,
"result": {
"content": [
{
"type": "text",
"text": "…"
}
],
"structuredContent": {
"data": {
"measures": [
{
"id": "sales.revenue",
"label": "Revenue",
"description": "Sales revenue (the sum of sales) from the sales history.",
"format": "money",
"additive": true,
"higherIsBetter": true,
"dimensions": [
"time.day",
"time.week",
"time.month",
"time.quarter",
"store",
"node",
"weekday",
"hour",
"order_channel",
"store_concept"
],
"filters": [
"nodeIds",
"storeIds",
"storeConceptIds",
"orderChannelIds"
]
}
],
"dimensions": [
{
"id": "store",
"label": "Store",
"description": "The store the figure belongs to.",
"kind": "category"
}
],
"filters": [
{
"key": "storeIds",
"label": "Stores",
"description": "Ids of stores (GET /stores).",
"directoryType": "store"
}
],
"periods": [
"last_7d",
"last_30d",
"last_90d",
"last_3_months",
"last_12_months",
"this_month",
"prev_month",
"this_year"
],
"comparisons": [
"previous_period",
"same_period_last_year"
],
"limits": {
"maxMeasures": 6,
"maxDimensions": 3,
"defaultRows": 50,
"maxRows": 200,
"maxCustomPeriodDays": 1830,
"maxShiftBreakdownDays": 92,
"maxHourBreakdownDays": 92,
"maxFilterValues": 50
}
},
"meta": {
"requestId": "5f0c2b9e-7c1d-4a57-9d43-2f6f5a1f0b3c",
"generatedAt": "2026-11-12T09:30:00.000Z"
}
}
}
}query_metricsQuery metrics#
Computes measures over a period, broken down by up to 3 dimensions, inside the credential's reach — the figures the dashboards show. Take the ids of measures, dimensions and filters from the metrics catalogue, and the ids of stores, nodes and reference values from the directory. period is a preset ({ "preset": "prev_month" }) or the caller's own dates ({ "from", "to" }, both included, at most 1830 days); presets are counted from today (the caller's local date; default the UTC date). compareWith adds the same measures for the previous period or the same period a year earlier. The answer is a table: columns says what each cell of a row is — a dimension cell is { id, label }, a measure or comparison cell is a number or null. Rows are ordered by sort (default: the first measure, largest first) and cut at limit (default 50, at most 200); meta.truncated is true when there were more rows than that. A time bucket is always the first dimension, and such a query is a calendar: its rows go by the bucket, earliest first (inside one bucket by the first measure, largest first), it takes no sort, and a cut at limit leaves out the latest rows — for a whole series ask for a limit of at least the number of buckets, or split the period. A bucket too fine for the period (more than 400 buckets) is replaced by the next one that fits — columns names the one used. With a time bucket and another dimension together the comparison cells are null. Without dimensions the answer is one row of totals. Money has no currency: the system does not know it. A filter that a measure does not take is ignored for that measure and listed in meta.ignoredFilters. A store or node id that does not exist or lies outside the reach answers 404. The cuts by person — employee, position and role, as dimensions or as filters (employeeIds, positionIds, roleIds), at most 92 days as dimensions — answer 403 DATA_CATEGORY_DISABLED until the company opens people data, and 403 INSUFFICIENT_SCOPE to a credential without team:read.
Questions to ask the assistant
- Revenue and worked hours by store for last month.
- Compare SPMH by week this month with the same period last year.
- At which hours of the day do the Tashkent stores sell the most checks?
Arguments
-
measuresarray<any>requiredWhat to compute: ids of measures from the metrics catalogue. -
dimensionsarray<any>What to break the figures down by: ids of dimensions from the metrics catalogue. Default: none, one row of totals. -
periodobject | objectrequiredA preset, counted fromtoday, or the caller's own dates, both included.Variants
Variant 1-
presetanyrequired
Variant 2-
fromstring · daterequired -
tostring · daterequired
-
-
compareWithany | nullAdds each measure once more, for the previous period or for the same period a year earlier. -
filtersobjectKeeps the figures of the listed ids; the metrics catalogue says what each filter takes.Fields
-
nodeIdsarray<string> -
storeIdsarray<string> -
storeConceptIdsarray<string> -
orderChannelIdsarray<string> -
positionIdsarray<string> -
roleIdsarray<string> -
employeeIdsarray<string>
-
-
sortobject | nullThe order of the rows: by a requested measure or by the label of the first dimension. Not taken with a time bucket.Fields
-
byanyrequired -
directionanyrequired
-
-
limitintegerThe most rows to return. -
nodeLevelinteger | nullWith the dimensionnode: thelevel(GET /structure/nodes) of the nodes to group by. Default: each store's parent. -
todaystring · dateThe caller's local date, which a preset is counted from. Default: the UTC date.
Result
structuredContent is the same { data, meta, page } envelope that is answered by POST/api/public/v1/metrics/query.
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "query_metrics",
"arguments": {
"measures": [
"sales.revenue",
"fact.hours"
],
"dimensions": [
"store"
],
"period": {
"preset": "prev_month"
},
"limit": 3
}
}
}{
"jsonrpc": "2.0",
"id": 1,
"result": {
"content": [
{
"type": "text",
"text": "…"
}
],
"structuredContent": {
"data": {
"columns": [
{
"key": "store",
"role": "dimension",
"label": "Store",
"format": null
},
{
"key": "sales.revenue",
"role": "measure",
"label": "Revenue",
"format": "money"
},
{
"key": "fact.hours",
"role": "measure",
"label": "Worked hours",
"format": "hours"
}
],
"rows": [
[
{
"id": "n_184",
"label": "Evos Чиланзар"
},
412500000,
3120.5
]
]
},
"meta": {
"requestId": "5f0c2b9e-7c1d-4a57-9d43-2f6f5a1f0b3c",
"generatedAt": "2026-11-12T09:30:00.000Z"
}
}
}
}get_schedule_statusSchedule status by store#
Which stores have their schedule ready. Give exactly one of weekStart — a date, any day of the week: it reads the crew schedules of the company's week that contains it, and period says which week that is — and month (YYYY-MM): it reads the managers' schedules of that month. Each store of the credential's reach is listed with its status: not_created (no schedule yet), draft, submitted (waiting for approval) or approved. summary counts the stores in each status over the whole reach — or below nodeId, when given — whatever the page and whatever statuses keeps. statuses keeps the stores in the listed statuses (a comma list). Stores are ordered by name, 50 per page (limit up to 200; pass page.nextCursor as cursor for the next page). A nodeId that does not exist or lies outside the reach answers 404 NODE_NOT_FOUND.
Questions to ask the assistant
- Which stores have not approved next week's schedule yet?
- Show the monthly schedule status for the Tashkent region.
Arguments
-
weekStartstring · dateA date, any day of the week: reads the crew schedules of the company's week that contains it. Give this ormonth, not both. -
monthstringA month (YYYY-MM): reads the managers' schedules of that month. Give this orweekStart, not both. -
nodeIdstringKeeps the stores below this structure node. -
statusesarray<any>Keeps the stores in these statuses, as a comma list. Default: every status. -
limitintegerThe size of a page. -
cursorstringpage.nextCursorof the page before; leave it out for the first page. A cursor belongs to its list and to the other parameters it was made with.
Result
structuredContent is the same { data, meta, page } envelope that is answered by GET/api/public/v1/schedules/status.
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "get_schedule_status",
"arguments": {
"weekStart": "2026-11-11",
"statuses": [
"draft",
"not_created"
]
}
}
}{
"jsonrpc": "2.0",
"id": 1,
"result": {
"content": [
{
"type": "text",
"text": "…"
}
],
"structuredContent": {
"data": {
"kind": "crew_week",
"period": {
"weekStart": "2026-11-09",
"weekEnd": "2026-11-15",
"weekNumber": 46,
"year": 2026
},
"summary": {
"notCreated": 2,
"draft": 5,
"submitted": 3,
"approved": 31
},
"items": [
{
"storeId": "n_184",
"storeName": "Evos Чиланзар",
"status": "draft"
}
]
},
"meta": {
"requestId": "5f0c2b9e-7c1d-4a57-9d43-2f6f5a1f0b3c",
"generatedAt": "2026-11-12T09:30:00.000Z"
},
"page": {
"limit": 50,
"hasMore": false,
"nextCursor": null
}
}
}
}get_store_week_scheduleA store's crew schedule for a week, with its warnings#
One store's crew schedule of a week, as the schedule editor shows it. weekStart is any date of the week; period says which week that is. status is not_created (then summary is null and the lists are empty), draft, submitted or approved; readyToApprove says whether the schedule meets the company's accuracy goal, and statusHistory when its status changed. summary is the week: hours.scheduled and hours.recommended are the scheduled hours and the hours the deployment recommends for the forecast, hours.training the training shifts' hours — each the sum of the days — and hours.net the week's hours with each shift's lunch break taken off, the total the week card shows. accuracy (0 to 1) is how well the schedule matches the recommendation, averaged over the open days. Each of days gives the opening hours (open, null when the store is closed), its hours, accuracy, how much of the recommendation the busiest hours get (peakHoursCoverage), the forecast, the sales and transactions per scheduled hour, the number of shifts, and by position the person-hours the recommendation asks for, those missing (shortHours) and those above it (excessHours), half hour by half hour. alerts are the editor's warnings by day, kind and position, with the number of people each concerns: absent (scheduled on a day of absence), day_blocked (a weekday they may not work), night_restricted, over_weekly_hours, overlaps_other_position, and in the certificates mode position_not_certified, training_without_trainer, certificate_expired. positions names the positions the answer mentions. With day (a date of that week), shifts lists that day's shifts: position, periods (times on the clock; endsNextDay past midnight), clock hours, whether it is a training shift and its warnings; without it shifts is null. The people are named only where the company opened «People data» and the credential carries team:read (peopleData says whether they are): then each shift has its employee (id and name), each warning the employees it concerns, and people lists who has shifts this week with their role, number of shifts and clock hours in this store; otherwise nobody is named and the call is not refused. laborCost — the cost of the scheduled and of the recommended hours and their share of the forecast sales — is in summary and in each day only when the credential carries labor_cost:read and the company opened labour cost; laborCost at the top says whether it is. A store that does not exist or lies outside the reach answers 404 STORE_NOT_FOUND.
Questions to ask the assistant
- Show the Chilanzar schedule for next week: where are people short?
- What warnings does this store's schedule have on Friday?
Arguments
-
storeIdstringrequiredThe store (search_directoryfinds its id by name). -
weekStartstring · daterequiredA date, any day of the week: reads the store's crew schedule of the company's week that contains it;periodof the answer says which week that is. -
daystring · dateA day of that week: addsshifts, that day's shifts (with who works them only where people data reach the caller). Default: no shifts.
Result
structuredContent is the same { data, meta, page } envelope that is answered by GET/api/public/v1/schedules/week.
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "get_store_week_schedule",
"arguments": {
"storeId": "n_184",
"weekStart": "2026-11-16",
"day": "2026-11-20"
}
}
}{
"jsonrpc": "2.0",
"id": 1,
"result": {
"content": [
{
"type": "text",
"text": "…"
}
],
"structuredContent": {
"data": {
"storeId": "n_184",
"storeName": "Evos Чиланзар",
"period": {
"weekStart": "2026-11-16",
"weekEnd": "2026-11-22",
"weekNumber": 47,
"year": 2026
},
"status": "submitted",
"readyToApprove": true,
"statusHistory": [
{
"status": "submitted",
"at": "2026-11-13T15:04:11.000Z"
}
],
"laborCost": false,
"peopleData": true,
"summary": {
"hours": {
"scheduled": 612,
"recommended": 598.5,
"training": 24,
"net": 571
},
"accuracy": 0.9312,
"forecast": {
"sales": 412500000,
"transactions": 9840
},
"shifts": 104,
"alerts": 2
},
"days": [
{
"date": "2026-11-20",
"weekday": "friday",
"open": {
"start": "10:00",
"end": "02:00",
"startsNextDay": false,
"endsNextDay": true
},
"hours": {
"scheduled": 96,
"recommended": 93.5,
"training": 4
},
"accuracy": 0.9205,
"peakHoursCoverage": 0.97,
"forecast": {
"sales": 71200000,
"transactions": 1690
},
"productivity": {
"salesPerHour": 774000,
"transactionsPerHour": 18.37
},
"shifts": 16,
"positions": [
{
"positionId": "pos_cashier",
"recommendedHours": 28,
"shortHours": 2.5,
"excessHours": 0.5
}
]
}
],
"alerts": [
{
"date": "2026-11-20",
"code": "over_weekly_hours",
"positionId": null,
"people": 1,
"employees": [
{
"id": "e_2207",
"name": "Dilnoza Karimova"
}
]
}
],
"positions": [
{
"positionId": "pos_cashier",
"name": "Касса"
}
],
"shifts": [
{
"positionId": "pos_cashier",
"periods": [
{
"start": "17:00",
"end": "02:00",
"startsNextDay": false,
"endsNextDay": true
}
],
"hours": 9,
"training": false,
"alerts": [
"over_weekly_hours"
],
"employee": {
"id": "e_2207",
"name": "Dilnoza Karimova"
}
}
],
"people": [
{
"employeeId": "e_2207",
"name": "Dilnoza Karimova",
"role": {
"id": "3",
"name": "Crew"
},
"shifts": 6,
"hours": 51
}
]
},
"meta": {
"requestId": "5f0c2b9e-7c1d-4a57-9d43-2f6f5a1f0b3c",
"generatedAt": "2026-11-12T09:30:00.000Z"
}
}
}
}get_action_plan_summaryAction plans by store, as counters#
The action plans of the team development section, as counters by store: how many actions each store has on its plan for a month, and how many of them are planned, in progress, done, cancelled and overdue. It names no person and returns no text of an action — numbers only. month (YYYY-MM) is the month of the plans; left out, it is the current month, and month of the answer says which. A month's plan holds every action planned in that month or earlier and not closed before it, so an unfinished action is on the plan of every later month too: carriedOver counts the actions planned in an earlier month. The statuses are today's, also on the plan of a past month: doneInMonth and cancelledInMonth were closed in that very month, closedLater in a later one, planned and inProgress are still open. planned + inProgress + doneInMonth + cancelledInMonth + closedLater = total. overdue is part of planned + inProgress: the open actions whose deadline is before asOf, today by UTC. An action is on the plan of the store its person works in now; the actions of people who have left are not counted. Every store of the credential's reach is listed, with zeros when it has no actions. summary adds up the whole reach — or what is below nodeId, when given — whatever the page: stores of them, storesWithActions with at least one action on the plan. Stores are ordered by name, 50 per page (limit up to 200; pass page.nextCursor as cursor for the next page). A nodeId that does not exist or lies outside the reach answers 404 NODE_NOT_FOUND.
Questions to ask the assistant
- Summarize the action plans for November: how many are done and how many are overdue.
- Which stores have the most overdue actions?
Arguments
-
monthstringThe month of the plans (YYYY-MM). Default: the current month —monthof the answer says which. -
nodeIdstringKeeps the stores below this structure node. -
limitintegerThe size of a page. -
cursorstringpage.nextCursorof the page before; leave it out for the first page. A cursor belongs to its list and to the other parameters it was made with.
Result
structuredContent is the same { data, meta, page } envelope that is answered by GET/api/public/v1/team-development/action-plans/summary.
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "get_action_plan_summary",
"arguments": {
"month": "2026-11"
}
}
}{
"jsonrpc": "2.0",
"id": 1,
"result": {
"content": [
{
"type": "text",
"text": "…"
}
],
"structuredContent": {
"data": {
"month": "2026-11",
"asOf": "2026-11-18",
"summary": {
"stores": 34,
"storesWithActions": 29,
"total": 212,
"planned": 48,
"inProgress": 61,
"doneInMonth": 97,
"cancelledInMonth": 6,
"closedLater": 0,
"overdue": 31,
"carriedOver": 74
},
"items": [
{
"storeId": "n_184",
"storeName": "Evos Чиланзар",
"total": 9,
"planned": 2,
"inProgress": 3,
"doneInMonth": 4,
"cancelledInMonth": 0,
"closedLater": 0,
"overdue": 2,
"carriedOver": 3
}
]
},
"meta": {
"requestId": "5f0c2b9e-7c1d-4a57-9d43-2f6f5a1f0b3c",
"generatedAt": "2026-11-12T09:30:00.000Z"
},
"page": {
"limit": 50,
"hasMore": false,
"nextCursor": null
}
}
}
}get_labor_reportLabour report: hours, sales, productivity and COL#
The labour report of the crew dashboard for a period: for a structure node and each of its direct children, the hours, sales and productivity on three bases — forecast (what the sales forecast calls for), deployment (what the schedules plan) and fact (what was worked) — the same figures the dashboard shows for the same period. from and to (YYYY-MM-DD) are both included, at most 62 days apart. summary is the node itself — nodeId, or the whole company (kind: company, no id) for a credential that sees all of it — and items are its direct children, nodes and stores. Without nodeId, a credential that sees only part of the company gets no summary and its top reach nodes as items. A nodeId that does not exist or lies outside the reach answers 404 NODE_NOT_FOUND. hours are all crew hours, nohHours the non-operational hours among them, trainingHours the training hours of the schedules. sales.forecast is the sales forecast of the period, sales.fact the sales. spmh is sales per man-hour, tplh transactions per labour hour, iplh items per labour hour, all over productive hours. accuracy (0 to 1) is how closely the schedules' staffing follows, slot by slot, what the sales forecast calls for, averaged over the open days. hoursCapacity is the hours the stores' teams can work in the period by their weekly hour limits, null when unknown. laborCost — COL as a fraction of sales (col) and the cost in money of the company's currency (amount), for the crew and for the managers — is in the answer only when the credential carries labor_cost:read and the company opened labour cost; laborCost at the top says whether it is. deployment COL divides by the forecast sales, deploymentVsFactSales by the fact sales. factShifts picks whether the fact counts approved shifts only (default) or the pending edits too. The report is computed for the whole company and kept for 60 seconds: computedAt says when it was computed. Heavy: allow several seconds for an answer.
Questions to ask the assistant
- Labour report for last week by the Tashkent stores: planned and actual hours, SPMH, accuracy.
- Where is COL above the forecast this week?
Arguments
-
fromstring · daterequiredThe first day of the period (YYYY-MM-DD), included. -
tostring · daterequiredThe last day of the period (YYYY-MM-DD), included. At most 62 days fromfrom. -
nodeIdstringThe structure node to report on, with its direct children asitems. Default: the company for a credential that sees all of it; otherwise the top nodes of the credential's reach. -
factShiftsanyWhich fact shifts the fact figures count:approved(default, as the dashboard shows them) orwith_pending— the pending edits too.
Result
structuredContent is the same { data, meta, page } envelope that is answered by GET/api/public/v1/reports/labor.
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "get_labor_report",
"arguments": {
"from": "2026-11-02",
"to": "2026-11-08"
}
}
}{
"jsonrpc": "2.0",
"id": 1,
"result": {
"content": [
{
"type": "text",
"text": "…"
}
],
"structuredContent": {
"data": {
"from": "2026-11-02",
"to": "2026-11-08",
"factShifts": "approved",
"computedAt": "2026-11-09T07:12:41.000Z",
"laborCost": true,
"summary": {
"nodeId": "n_12",
"name": "Ташкент",
"kind": "node",
"sales": {
"forecast": 1840000000,
"fact": 1912500000
},
"transactions": {
"forecast": 41200,
"fact": 42870
},
"hours": {
"forecast": 9640,
"deployment": 9812,
"fact": 9705
},
"nohHours": {
"forecast": 410,
"deployment": 422,
"fact": 431
},
"trainingHours": 186,
"hoursCapacity": 11200,
"spmh": {
"forecast": 199500,
"deployment": 196100,
"fact": 205300
},
"tplh": {
"forecast": 4.47,
"deployment": 4.39,
"fact": 4.6
},
"iplh": {
"forecast": 11.9,
"deployment": 11.7,
"fact": 12.2
},
"accuracy": 0.94,
"laborCost": {
"crew": {
"col": {
"forecast": 0.118,
"deployment": 0.121,
"deploymentVsFactSales": 0.116,
"fact": 0.117
},
"amount": {
"forecast": 217120000,
"deployment": 222640000,
"fact": 223760000
}
},
"managers": {
"col": {
"forecast": 0.031,
"deployment": 0.031,
"deploymentVsFactSales": 0.03,
"fact": 0.03
},
"amount": {
"forecast": 57040000,
"deployment": 57040000,
"fact": 57380000
}
}
}
},
"items": []
},
"meta": {
"requestId": "5f0c2b9e-7c1d-4a57-9d43-2f6f5a1f0b3c",
"generatedAt": "2026-11-12T09:30:00.000Z"
}
}
}
}get_managers_reportManagers report: hours against the norm, sales and COL#
The managers dashboard for a month: for a structure node and each of its direct children, the managers' hours — scheduled in the month's managers' schedules, the norm of the norm calendar for the same people and fact worked — the same figures the dashboard shows. month (YYYY-MM) defaults to the current month by UTC; month of the answer says which. overNormHours and underNormHours add up, manager by manager, how far each one's scheduled hours are above or below their own norm (so they do not cancel out between people); overHoursYearToDate is the overtime of the year so far. sales.plan is the month's sales plan, sales.fact the sales. accuracy (0 to 1) is how well the managers' schedules cover the days, averaged over the days that could be judged. summary is the node itself — nodeId, or the whole company (kind: company, no id) for a credential that sees all of it — and items are its direct children, nodes and stores. Without nodeId, a credential that sees only part of the company gets no summary and its top reach nodes as items. A nodeId that does not exist or lies outside the reach answers 404 NODE_NOT_FOUND. laborCost.col — the managers' labour cost as a fraction of sales on each basis (scheduled and norm over the sales plan, normVsFactSales and fact over the sales) — is in the answer only when the credential carries labor_cost:read and the company opened labour cost; laborCost at the top says whether it is. factShifts picks whether the fact counts approved shifts only (default) or the pending edits too. The report is computed for the whole company and kept for 60 seconds: computedAt says when it was computed. Heavy: allow several seconds for an answer.
Questions to ask the assistant
- How many hours did the managers work in November against the norm, by region?
- In which stores are the managers scheduled above the norm?
Arguments
-
monthstringThe month of the report (YYYY-MM). Default: the current month by UTC —monthof the answer says which. -
nodeIdstringThe structure node to report on, with its direct children asitems. Default: the company for a credential that sees all of it; otherwise the top nodes of the credential's reach. -
factShiftsanyWhich fact shifts the fact hours count:approved(default, as the dashboard shows them) orwith_pending— the pending edits too.
Result
structuredContent is the same { data, meta, page } envelope that is answered by GET/api/public/v1/reports/managers.
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "get_managers_report",
"arguments": {
"month": "2026-11"
}
}
}{
"jsonrpc": "2.0",
"id": 1,
"result": {
"content": [
{
"type": "text",
"text": "…"
}
],
"structuredContent": {
"data": {
"month": "2026-11",
"factShifts": "approved",
"computedAt": "2026-11-18T07:12:41.000Z",
"laborCost": false,
"summary": {
"nodeId": "n_12",
"name": "Ташкент",
"kind": "node",
"hours": {
"scheduled": 6240,
"norm": 6120,
"fact": 4310
},
"overNormHours": 186,
"underNormHours": 66,
"overHoursYearToDate": 412,
"sales": {
"plan": 7900000000,
"fact": 5120000000
},
"accuracy": 0.91
},
"items": []
},
"meta": {
"requestId": "5f0c2b9e-7c1d-4a57-9d43-2f6f5a1f0b3c",
"generatedAt": "2026-11-12T09:30:00.000Z"
}
}
}
}get_timesheet_approval_statusTime sheet approval by store#
Where the stores' time sheets of a month stand: for every store of the credential's reach, the approval levels that signed the month (or cancelled their signature) and how many edits of worked shifts still wait for a decision. It names no person — no approver, no employee. month (YYYY-MM) defaults to the current month by UTC; month of the answer says which. A time sheet is approved level by level: level 1 is the first rung, 2 and 3 the rungs above, as the company's roles are set up; a rung signs only while no rung above it has. In levels, approved is the rung's current state, changedOn the day it last changed and approvedThrough the last day of the month its signature covers (either null when it was not recorded). highestApprovedLevel is the highest rung that stands approved, null when none does. pendingEdits counts the shifts of the month whose last edit waits for approval. Every store of the reach is listed, also one with no approval yet. summary counts the whole reach — or what is below nodeId, when given — whatever the page: the stores by their highest approved rung, and the pending edits. Stores are ordered by name, 50 per page (limit up to 200; pass page.nextCursor as cursor for the next page). A nodeId that does not exist or lies outside the reach answers 404 NODE_NOT_FOUND.
Questions to ask the assistant
- Which stores have not approved the October time sheet yet?
- Where do the most shift edits wait for approval?
Arguments
-
monthstringThe month of the time sheets (YYYY-MM). Default: the current month by UTC —monthof the answer says which. -
nodeIdstringKeeps the stores below this structure node. -
limitintegerThe size of a page. -
cursorstringpage.nextCursorof the page before; leave it out for the first page. A cursor belongs to its list and to the other parameters it was made with.
Result
structuredContent is the same { data, meta, page } envelope that is answered by GET/api/public/v1/timesheets/approvals.
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "get_timesheet_approval_status",
"arguments": {
"month": "2026-10"
}
}
}{
"jsonrpc": "2.0",
"id": 1,
"result": {
"content": [
{
"type": "text",
"text": "…"
}
],
"structuredContent": {
"data": {
"month": "2026-10",
"summary": {
"stores": 34,
"byHighestApprovedLevel": {
"none": 6,
"level1": 19,
"level2": 9,
"level3": 0
},
"pendingEdits": 41
},
"items": [
{
"storeId": "n_184",
"storeName": "Evos Чиланзар",
"highestApprovedLevel": 2,
"levels": [
{
"level": 1,
"approved": true,
"changedOn": "2026-11-02",
"approvedThrough": "2026-10-31"
},
{
"level": 2,
"approved": true,
"changedOn": "2026-11-04",
"approvedThrough": "2026-10-31"
}
],
"pendingEdits": 0
}
]
},
"meta": {
"requestId": "5f0c2b9e-7c1d-4a57-9d43-2f6f5a1f0b3c",
"generatedAt": "2026-11-12T09:30:00.000Z"
},
"page": {
"limit": 50,
"hasMore": false,
"nextCursor": null
}
}
}
}get_timesheetTime sheet by person#
The stores' time sheet for a period of at most 31 days (from–to, both included), as the time sheet page counts it: the worked shifts recorded in the stores of the credential's reach — or below nodeId (a store's own id keeps that store) — each under the store it was worked in, borrowed staff included, people who have left since included. Hours count only the APPROVED part of a shift: a shift whose edit waits for a decision or was rejected is counted in shifts and adds no hours, and a shift booked before the person's hire date adds none either. view=summary (default) answers people: one row per person and store with the shifts by status and the hours added up — worked hours, of them night, holiday and holiday-night hours, and the breaks deducted, to the hundredth. view=shifts answers shifts: one row per shift with its day, its times on the clock (startsNextDay / endsNextDay when they fall after midnight), its status and its hours. Ordered by store name, then person name (summary) or day and start (shifts); 50 rows per page (limit up to 200; pass page.nextCursor as cursor for the next page). No contact, no rate, no pay. This is data about people: it needs the scope timesheets:read and the company's «People data» switched on — otherwise 403 DATA_CATEGORY_DISABLED (the approval of the time sheets by store, get_timesheet_approval_status, needs no such switch). A nodeId that does not exist or lies outside the reach answers 404 NODE_NOT_FOUND; a longer period, 422 PERIOD_TOO_LONG.
Questions to ask the assistant
- How many hours did each employee of the Chilanzar store work in the first half of November?
- Which employees have the most shifts waiting for approval?
Arguments
-
fromstring · daterequiredThe first day of the period (YYYY-MM-DD), included. -
tostring · daterequiredThe last day of the period (YYYY-MM-DD), included. At most 31 days fromfrom. -
nodeIdstringKeeps the stores below this structure node — or this store. -
viewanysummary(default): one row per person and store with the shifts counted and the hours added up.shifts: one row per worked shift. -
limitintegerThe size of a page. -
cursorstringpage.nextCursorof the page before; leave it out for the first page. A cursor belongs to its list and to the other parameters it was made with.
Result
structuredContent is the same { data, meta, page } envelope that is answered by GET/api/public/v1/timesheets.
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "get_timesheet",
"arguments": {
"from": "2026-11-01",
"to": "2026-11-15"
}
}
}{
"jsonrpc": "2.0",
"id": 1,
"result": {
"content": [
{
"type": "text",
"text": "…"
}
],
"structuredContent": {
"data": {
"from": "2026-11-01",
"to": "2026-11-15",
"view": "summary",
"people": [
{
"storeId": "n_184",
"storeName": "Evos Чиланзар",
"employeeId": "e_2207",
"name": "Dilnoza Karimova",
"role": {
"id": "1",
"name": "Crew"
},
"shifts": {
"total": 11,
"approved": 10,
"pending": 1,
"rejected": 0
},
"hours": {
"worked": 86.5,
"night": 12,
"holiday": 0,
"holidayNight": 0,
"breaks": 5
}
}
]
},
"meta": {
"requestId": "5f0c2b9e-7c1d-4a57-9d43-2f6f5a1f0b3c",
"generatedAt": "2026-11-12T09:30:00.000Z"
},
"page": {
"limit": 50,
"hasMore": false,
"nextCursor": null
}
}
}
}get_absencesAbsences of the stores' people#
Who of the stores' people is absent in a period: every absence recorded on an employee's card that overlaps from–to (both included, at most 92 days), for the people of the stores of the credential's reach — or of the stores below nodeId (a store's own id keeps that store). People are those a store has today: not dismissed, and not hidden by the company. Each item is one period as the card stores it — from and to are its own first and last day and may reach outside the period asked for — with the person's id, name and store. kind is vacation for a vacation and absence for every other kind: sick leave and the company's own kinds are not told apart, and the reason or a note is never returned. summary counts the whole reach (or what is below nodeId), whatever the page: the absences and the people they belong to. Ordered by the first day, 50 per page (limit up to 200; pass page.nextCursor as cursor for the next page). This is data about people: it needs the scope team:read and the company's «People data» switched on — otherwise 403 DATA_CATEGORY_DISABLED. A nodeId that does not exist or lies outside the reach answers 404 NODE_NOT_FOUND; a longer period, 422 PERIOD_TOO_LONG.
Questions to ask the assistant
- Who in the Tashkent stores is on vacation next week?
- How many people were absent in November, store by store?
Arguments
-
fromstring · daterequiredThe first day of the period (YYYY-MM-DD), included. -
tostring · daterequiredThe last day of the period (YYYY-MM-DD), included. At most 92 days fromfrom. -
nodeIdstringKeeps the people of the stores below this structure node — or of this store. -
limitintegerThe size of a page. -
cursorstringpage.nextCursorof the page before; leave it out for the first page. A cursor belongs to its list and to the other parameters it was made with.
Result
structuredContent is the same { data, meta, page } envelope that is answered by GET/api/public/v1/absences.
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "get_absences",
"arguments": {
"from": "2026-11-01",
"to": "2026-11-30"
}
}
}{
"jsonrpc": "2.0",
"id": 1,
"result": {
"content": [
{
"type": "text",
"text": "…"
}
],
"structuredContent": {
"data": {
"from": "2026-11-01",
"to": "2026-11-30",
"summary": {
"absences": 12,
"people": 11
},
"items": [
{
"storeId": "n_184",
"storeName": "Evos Чиланзар",
"employeeId": "e_2207",
"name": "Dilnoza Karimova",
"from": "2026-10-27",
"to": "2026-11-09",
"kind": "vacation"
},
{
"storeId": "n_184",
"storeName": "Evos Чиланзар",
"employeeId": "e_2319",
"name": "Javlon Rahimov",
"from": "2026-11-03",
"to": "2026-11-05",
"kind": "absence"
}
]
},
"meta": {
"requestId": "5f0c2b9e-7c1d-4a57-9d43-2f6f5a1f0b3c",
"generatedAt": "2026-11-12T09:30:00.000Z"
},
"page": {
"limit": 50,
"hasMore": false,
"nextCursor": null
}
}
}
}list_action_itemsActions of the team development plans#
The actions on the stores' team development plans of a month, one by one — the action-plan tab of each store: the person the action is for (id and name), its text, its deadline and state, and who carries it out. month (YYYY-MM) defaults to the current month by UTC. An action is on a month's plan from the month it was planned in until the month it was closed in. text is the action's title, at most 120 characters (textCut says it was cut); the details written under it are never returned. overdue is an open action whose deadline has passed as of asOf (the UTC day); carriedOver, one planned in an earlier month; closedMonth, the month a done or cancelled action was closed in. An action is on the plan of the store its person works in now. status narrows the list (open, overdue or a state). summary.items counts the whole list, whatever the page. Ordered by store name, then the person's name; 50 per page (limit up to 200; pass page.nextCursor as cursor for the next page). For the counters by store without people, use get_action_plan_summary. This is data about people: it needs the scopes team_development:read and team:read and the company's «People data» switched on — otherwise 403 DATA_CATEGORY_DISABLED. A nodeId that does not exist or lies outside the reach answers 404 NODE_NOT_FOUND.
Questions to ask the assistant
- Which team development actions in Chilanzar are overdue, and who is responsible for them?
- What is planned for Dilnoza Karimova's development in November?
Arguments
-
monthstringThe month of the plans (YYYY-MM). Default: the current month by UTC —monthof the answer says which. -
nodeIdstringKeeps the actions of the people of the stores below this structure node — or of this store. -
statusanyKeeps the actions in this state:planned,in_progress,done,cancelled;open(planned or in progress) oroverdue(open, the deadline passed). Default: every action of the month's plans. -
limitintegerThe size of a page. -
cursorstringpage.nextCursorof the page before; leave it out for the first page. A cursor belongs to its list and to the other parameters it was made with.
Result
structuredContent is the same { data, meta, page } envelope that is answered by GET/api/public/v1/team-development/action-items.
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "list_action_items",
"arguments": {
"month": "2026-11",
"status": "open"
}
}
}{
"jsonrpc": "2.0",
"id": 1,
"result": {
"content": [
{
"type": "text",
"text": "…"
}
],
"structuredContent": {
"data": {
"month": "2026-11",
"asOf": "2026-11-20",
"summary": {
"items": 23
},
"items": [
{
"id": "act_5521",
"storeId": "n_184",
"storeName": "Evos Чиланзар",
"employee": {
"id": "e_2207",
"name": "Dilnoza Karimova"
},
"text": "Пройти обучение на кухне и сдать сертификацию до конца месяца",
"textCut": false,
"deadline": "2026-11-15",
"status": "in_progress",
"overdue": true,
"carriedOver": false,
"closedMonth": null,
"assignee": {
"id": "e_1044",
"name": "Javlon Rahimov"
}
}
]
},
"meta": {
"requestId": "5f0c2b9e-7c1d-4a57-9d43-2f6f5a1f0b3c",
"generatedAt": "2026-11-12T09:30:00.000Z"
},
"page": {
"limit": 50,
"hasMore": false,
"nextCursor": null
}
}
}
}get_sales_planning_datasetSales planning dataset#
What a model needs to plan a month of sales for the stores of the credential's reach — or the stores below nodeId (a store's own id keeps that store): each store's name, its path in the structure, concept, location and opening hours by weekday (a store with no hours on record counts as open all day); its last day with sales; the mean daily sales by weekday over the last 8 complete weeks (the profile a monthly total is split by); and the revenue forecast already stored for month, summed (daysFilled = the days that have one). monthlySales holds the complete months with sales of the last 24 months and the same month one and two years before month; weeklySales the last 8 complete weeks (weekStart is a Monday). calendar gives the company's closed days and holidays of month. Money is in whole currency units; no person is named. month is the current month (UTC) or one of the next 12 — otherwise 422 INVALID_PERIOD; at most 60 stores per call — more is 422 TOO_MANY_STORES (plan by structure node). A nodeId that does not exist or lies outside the reach answers 404 NODE_NOT_FOUND. Needs the scope sales_plans:read and the company's «Sales planning» switched on — otherwise 403 DATA_CATEGORY_DISABLED.
Questions to ask the assistant
- Gather the data to plan Tashkent's sales for December
- How did Chilanzar sell last December and in the last few weeks?
Arguments
-
monthstring · regexrequiredThe month to plan,YYYY-MM: the current month (UTC) or one of the next 12. -
nodeIdstringKeeps the stores below this structure node — or this store. Absent: every store of the reach.
Result
structuredContent is the same { data, meta, page } envelope that is answered by GET/api/public/v1/sales-plans/dataset.
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "get_sales_planning_dataset",
"arguments": {
"month": "2026-12"
}
}
}{
"jsonrpc": "2.0",
"id": 1,
"result": {
"content": [
{
"type": "text",
"text": "…"
}
],
"structuredContent": {
"data": {
"month": "2026-12",
"currency": null,
"calendar": {
"days": 31,
"closedDays": [],
"holidays": [
{
"date": "2026-12-31",
"name": "New Year's Eve"
}
]
},
"stores": [
{
"storeId": "n_184",
"name": "Evos Чиланзар",
"path": [
{
"id": "n_12",
"name": "Ташкент"
}
],
"concept": "Restaurant",
"location": {
"latitude": 41.2856,
"longitude": 69.2034
},
"openHours": [
{
"weekday": "monday",
"start": "09:00",
"end": "23:00",
"endsNextDay": false
},
{
"weekday": "saturday",
"start": "09:00",
"end": "01:00",
"endsNextDay": true
}
],
"lastSaleDate": "2026-11-22",
"weekdayMeanSales": {
"monday": 18400000,
"tuesday": 18100000,
"wednesday": 18900000,
"thursday": 19300000,
"friday": 23800000,
"saturday": 27600000,
"sunday": 25200000
},
"currentForecast": {
"sales": 640000000,
"transactions": 9800,
"daysFilled": 31
}
}
],
"monthlySales": {
"columns": [
"storeId",
"month",
"sales",
"transactions",
"days"
],
"rows": [
[
"n_184",
"2025-12",
655300000,
10120,
31
],
[
"n_184",
"2026-10",
598700000,
9310,
31
]
]
},
"weeklySales": {
"columns": [
"storeId",
"weekStart",
"sales",
"transactions"
],
"rows": [
[
"n_184",
"2026-11-16",
151300000,
2310
]
]
}
},
"meta": {
"requestId": "5f0c2b9e-7c1d-4a57-9d43-2f6f5a1f0b3c",
"generatedAt": "2026-11-12T09:30:00.000Z"
}
}
}
}list_sales_plansSales plans#
The sales plans the caller may open, the most recently changed first: for a planner — an administrator or a role with the revenue forecast permissions — every plan of the company, for anyone else their own; never a plan that covers a store outside the credential's reach. Each item says the plan's month, state (draft — no figures yet, ready — figures to review, applied — written into the revenue forecast), what it covers, how many of its stores have figures and their totals, whether a model turn is running, whether the caller made it (mine) and its version. month and status narrow the list. 50 per page (limit up to 200; pass page.nextCursor as cursor for the next page). The figures of one plan: get_sales_plan. Needs the scope sales_plans:read and the company's «Sales planning» switched on — otherwise 403 DATA_CATEGORY_DISABLED.
Questions to ask the assistant
- Which sales plans for December are ready?
- Is there a plan that has not been written into the forecast yet?
Arguments
-
monthstring · regexKeeps the plans of this month,YYYY-MM. -
statusanyKeeps the plans in this state. -
limitintegerThe size of a page. -
cursorstringpage.nextCursorof the page before; leave it out for the first page. A cursor belongs to its list and to the other parameters it was made with.
Result
structuredContent is the same { data, meta, page } envelope that is answered by GET/api/public/v1/sales-plans.
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "list_sales_plans",
"arguments": {
"month": "2026-12"
}
}
}{
"jsonrpc": "2.0",
"id": 1,
"result": {
"content": [
{
"type": "text",
"text": "…"
}
],
"structuredContent": {
"data": {
"items": [
{
"planId": "5b0f6a3e-2d1c-4f8e-9a7b-1c2d3e4f5a6b",
"title": "Ташкент · 2026-12",
"month": "2026-12",
"status": "ready",
"scope": {
"kind": "node",
"nodeId": "n_12"
},
"storeCount": 14,
"storesWithFigures": 14,
"totalSales": 8960000000,
"totalTransactions": 137200,
"running": false,
"mine": true,
"version": 3,
"createdAt": "2026-11-23T09:12:40.000Z",
"updatedAt": "2026-11-23T09:15:02.000Z"
}
]
},
"meta": {
"requestId": "5f0c2b9e-7c1d-4a57-9d43-2f6f5a1f0b3c",
"generatedAt": "2026-11-12T09:30:00.000Z"
},
"page": {
"limit": 50,
"hasMore": false,
"nextCursor": null
}
}
}
}get_sales_planSales plan#
One sales plan the caller may open (the rule of list_sales_plans): its month, state, what it covers, its version (a change of the plan bumps it), the model's summary, and for each store with figures the month's sales and transactions, the confidence, where the figures come from (model — the planner's model, manual — a person's own total, external — a client's own model through create_sales_plan_draft), the rationale, assumptions and risks (cut to a few hundred characters), and what the figures were compared with when they were made — the last complete month, the same month a year earlier and the forecast stored then. storesWithoutFigures lists the stores the plan covers that have none yet. run tells a model turn in flight (running — ask again in a few seconds) or how the last one ended. include=daily adds the split by day — the one written into the forecast when the plan is applied. applied is the report of the last write into the forecast: the open days each store took and the locked days it kept. What people wrote to the planner is never returned. A plan that does not exist, was deleted or is not the caller's to open answers 404 SALES_PLAN_NOT_FOUND. Needs the scope sales_plans:read and the company's «Sales planning» switched on — otherwise 403 DATA_CATEGORY_DISABLED.
Questions to ask the assistant
- Show the figures of the latest sales plan for Chilanzar
- What is this plan based on, and what are its risks?
Arguments
-
planIdstring · uuidrequiredThe plan's id (list_sales_plans, or the answer that made it). -
includearray<any>dailyadds the day-by-day split of every store's figures (daily): up to 31 rows a store.
Result
structuredContent is the same { data, meta, page } envelope that is answered by GET/api/public/v1/sales-plans/{planId}.
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "get_sales_plan",
"arguments": {}
}
}{
"jsonrpc": "2.0",
"id": 1,
"result": {
"content": [
{
"type": "text",
"text": "…"
}
],
"structuredContent": {
"data": {
"planId": "5b0f6a3e-2d1c-4f8e-9a7b-1c2d3e4f5a6b",
"title": "Evos Чиланзар · 2026-12",
"month": "2026-12",
"status": "ready",
"scope": {
"kind": "store",
"storeId": "n_184"
},
"version": 3,
"mine": true,
"summary": "December is planned 4% above last December: New Year's week carries a quarter of the month.",
"run": {
"status": "plan",
"questions": []
},
"stores": [
{
"storeId": "n_184",
"name": "Evos Чиланзар",
"monthSales": 681500000,
"monthTransactions": 10480,
"confidence": "medium",
"source": "model",
"rationale": "Last December plus the growth of the last three months; the 31st is a short day.",
"assumptions": [
"No new competitor opens nearby"
],
"risks": [
"Weather in the last week of the month"
],
"reference": {
"lastMonth": {
"month": "2026-10",
"sales": 598700000,
"transactions": 9310
},
"sameMonthLastYear": {
"sales": 655300000,
"transactions": 10120
},
"forecastWhenPlanned": {
"sales": 640000000,
"transactions": 9800
}
}
}
],
"storesWithoutFigures": [],
"daily": null,
"applied": null,
"createdAt": "2026-11-23T09:12:40.000Z",
"updatedAt": "2026-11-23T09:15:02.000Z"
},
"meta": {
"requestId": "5f0c2b9e-7c1d-4a57-9d43-2f6f5a1f0b3c",
"generatedAt": "2026-11-12T09:30:00.000Z"
}
}
}
}create_sales_plan_draftCreate a sales plan draft#
Saves the caller's own model's sales figures as a sales plan in ProSchedule — a draft for a person to review: nothing goes into the revenue forecast until a person writes it there (the app's «Write to forecast», or apply_sales_plan with a personal key). Give the month's sales and receipts by store; ProSchedule splits each month over its days by the store's weekday profile, its closed days and holidays — the split read from get_sales_planning_dataset — so never send days. A new plan: month (the current one or one of the next 12) and scope (network, a node or a store, inside the credential's reach; at most 60 stores), and figures for any of its stores. New figures for an existing plan: planId and the version they were made against — a plan changed since answers 409 VERSION_CONFLICT; the stores named take the new figures, the others keep theirs. Every store must be the plan's, at most once, or nothing is saved (400 with the field). Answers the plan as get_sales_plan does, its figures marked external. Needs the scope sales_plans:write, a person who may plan sales (an administrator or the revenue forecast permissions; 403 otherwise) and the company's «Sales planning» switched on. Runs no model of ProSchedule's.
Questions to ask the assistant
- Save our December sales forecast as a draft plan for Chilanzar
- Update the Tashkent draft plan with our model's figures
Arguments
-
planIdstring · uuidA plan to give new figures to (one the caller may edit). Absent: a new plan. -
versionintegerWithplanId: the plan'sversionthe figures were made against. -
monthstring · regexA new plan's month,YYYY-MM: the current month or one of the next 12. -
scopeobject | object | objectWhat a new plan covers:network(every store of the reach, at most 60), a structurenode(its stores), or onestore.Variants
Variant 1-
kind"network"required
Variant 2-
kind"node"required -
nodeIdstringrequired
Variant 3-
kind"store"required -
storeIdstringrequired
-
-
titlestringA new plan's title; a default names the store or node and the month. -
summarystringWhat the plan says as a whole, shown to the planner in the app. -
storesarray<object>requiredThe month's totals by store, each store of the plan at most once.Fields
-
storeIdstringrequiredA store of the plan. -
monthSalesnumberrequiredThe month's sales of the store, in whole currency units. -
monthTransactionsnumberrequiredThe month's number of receipts. -
confidenceanyrequiredHow sure the model is of the store's figures. -
rationalestringWhy these figures, in a few sentences. -
assumptionsarray<string>What the figures take for granted, at most five short lines. -
risksarray<string>What could make them wrong, at most five short lines.
-
Result
structuredContent is the same { data, meta, page } envelope that is answered by POST/api/public/v1/sales-plans.
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "create_sales_plan_draft",
"arguments": {
"month": "2026-12",
"scope": {
"kind": "store",
"storeId": "n_184"
},
"summary": "December 4% above last December: the New Year week carries a quarter of the month.",
"stores": [
{
"storeId": "n_184",
"monthSales": 681500000,
"monthTransactions": 10480,
"confidence": "medium",
"rationale": "Last December plus the growth of the last three months.",
"risks": [
"Weather in the last week of the month"
]
}
]
}
}
}{
"jsonrpc": "2.0",
"id": 1,
"result": {
"content": [
{
"type": "text",
"text": "…"
}
],
"structuredContent": {
"data": {
"planId": "5b0f6a3e-2d1c-4f8e-9a7b-1c2d3e4f5a6b",
"title": "Evos Чиланзар · 2026-12",
"month": "2026-12",
"status": "ready",
"scope": {
"kind": "store",
"storeId": "n_184"
},
"version": 1,
"mine": true,
"summary": "December 4% above last December: the New Year week carries a quarter of the month.",
"run": null,
"stores": [
{
"storeId": "n_184",
"name": "Evos Чиланзар",
"monthSales": 681500000,
"monthTransactions": 10480,
"confidence": "medium",
"source": "external",
"rationale": "Last December plus the growth of the last three months.",
"assumptions": [],
"risks": [
"Weather in the last week of the month"
],
"reference": {
"lastMonth": {
"month": "2026-10",
"sales": 598700000,
"transactions": 9310
},
"sameMonthLastYear": {
"sales": 655300000,
"transactions": 10120
},
"forecastWhenPlanned": {
"sales": 640000000,
"transactions": 9800
}
}
}
],
"storesWithoutFigures": [],
"daily": null,
"applied": null,
"createdAt": "2026-11-23T09:12:40.000Z",
"updatedAt": "2026-11-23T09:15:02.000Z"
},
"meta": {
"requestId": "5f0c2b9e-7c1d-4a57-9d43-2f6f5a1f0b3c",
"generatedAt": "2026-11-12T09:30:00.000Z"
}
}
}
}start_ai_sales_planStart the AI sales planner#
sales_plans:writeREST: POST/sales-plans/ai-runsAsks ProSchedule's own AI sales planner — the one of the app's «Sales planning» — to plan a month, or to refine a plan, and answers at once with the plan's id: the turn runs on its own for up to a few minutes. Read the plan with get_sales_plan after pollAfterSeconds: run.status is running until the turn ends with figures (plan), questions for the planner (questions, to answer in the next call with planId), a refusal or an error. A new plan: month and scope (inside the credential's reach, at most 60 stores); a refinement: planId. One turn at a time per plan (409 PLAN_RUN_IN_PROGRESS). The turn spends the company's AI credits as in the app (estimatedCredits); a balance or limit that does not cover it answers 402 AI_TURN_NOT_COVERED and nothing starts. Needs the scope sales_plans:write, a person who may plan sales, AI sales planning open to them (403 AI_PLANNING_UNAVAILABLE otherwise) and the company's «Sales planning» switched on. Nothing is written into the revenue forecast.
Questions to ask the assistant
- Ask the ProSchedule planner to plan January for Tashkent
- Refine the plan: Chilanzar +10% on last December
Arguments
-
promptstringrequiredWhat the planner's model is asked: goals, context, or a correction of the plan (+10% in Tashkent), or the answers to its questions. -
planIdstring · uuidA plan to refine (one the caller may edit). Absent: a new plan. -
monthstring · regexA new plan's month,YYYY-MM: the current month or one of the next 12. -
scopeobject | object | objectWhat a new plan covers:network(every store of the reach, at most 60), a structurenode(its stores), or onestore.Variants
Variant 1-
kind"network"required
Variant 2-
kind"node"required -
nodeIdstringrequired
Variant 3-
kind"store"required -
storeIdstringrequired
-
-
titlestringA new plan's title; a default names the store or node and the month. -
languageanyThe language of the model's summary and reasons. Default: the company's.
Result
structuredContent is the same { data, meta, page } envelope that is answered by POST/api/public/v1/sales-plans/ai-runs.
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "start_ai_sales_plan",
"arguments": {
"prompt": "Plan December for Chilanzar: the New Year week is busy.",
"month": "2026-12",
"scope": {
"kind": "store",
"storeId": "n_184"
}
}
}
}{
"jsonrpc": "2.0",
"id": 1,
"result": {
"content": [
{
"type": "text",
"text": "…"
}
],
"structuredContent": {
"data": {
"planId": "5b0f6a3e-2d1c-4f8e-9a7b-1c2d3e4f5a6b",
"turn": 1,
"status": "running",
"estimatedCredits": 40,
"pollAfterSeconds": 15
},
"meta": {
"requestId": "5f0c2b9e-7c1d-4a57-9d43-2f6f5a1f0b3c",
"generatedAt": "2026-11-12T09:30:00.000Z"
}
}
}
}estimate_required_hoursEstimate the staff hours a revenue needs#
The person-hours a store's deployment asks for a revenue the caller names, by day and by position, beside the same hours for the forecast saved for those days. Give one store and 1 to 31 days (none more than 30 days from another) with the day's sales and transactions (menuItems too where positions are measured by them). Each day is counted as the schedule editor recommends it: the deployment's steps of every position of the store's concept, half hour by half hour over the opening hours and the store's prep and cleanup hours, the day's revenue spread by the shape of the store's sales history (profile sales_history: the five weeks before the week, or the period the schedule was set to analyse) or evenly where there is none (even), sales divided by the store's price clustering. Positions budgeted on the WEEK's revenue (weekly) are matched once against the week and give each day a seventh of their hours; for estimate that week is the days asked about plus the saved forecast of its other days. A closed day (closed: store — no opening hours that weekday; company — a company holiday) needs only the weekly positions. saved.hours is what the editor shows as the day's recommended hours; asking for the saved figures answers the same hours. positions of a day lists each position with hours on either side. totals adds up the days. Reads only and needs analytics:read; a store that does not exist or lies outside the reach answers 404 STORE_NOT_FOUND. It estimates hours for a revenue: no schedule is read or changed.
Questions to ask the assistant
- How many staff hours would Chilanzar need if Saturday's sales grew by 20%?
- Compare the hours by position for our December forecast with those of the saved one
Arguments
-
storeIdstringrequiredThe store (search_directoryfinds its id by name). -
daysarray<object>required1 to 31 days, each at most once, none more than 30 days from another.Fields
-
datestring · daterequiredThe day (YYYY-MM-DD). -
salesnumberrequiredThe day's sales to staff for, in the company's currency. -
transactionsnumberrequiredThe day's number of receipts to staff for. -
menuItemsnumberThe day's menu items sold, for positions measured by them. Absent: such a position stays on its lowest step, as with a forecast without them.
-
Result
structuredContent is the same { data, meta, page } envelope that is answered by POST/api/public/v1/staffing/estimates.
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "estimate_required_hours",
"arguments": {
"storeId": "n_184",
"days": [
{
"date": "2026-12-05",
"sales": 80000000,
"transactions": 1900
},
{
"date": "2026-12-06",
"sales": 64000000,
"transactions": 1520
}
]
}
}
}{
"jsonrpc": "2.0",
"id": 1,
"result": {
"content": [
{
"type": "text",
"text": "…"
}
],
"structuredContent": {
"data": {
"storeId": "n_184",
"storeName": "Evos Чиланзар",
"positions": [
{
"positionId": "pos_cashier",
"name": "Касса",
"measure": "sales",
"weekly": false
},
{
"positionId": "pos_kitchen",
"name": "Кухня",
"measure": "transactions",
"weekly": false
},
{
"positionId": "pos_cleaning",
"name": "Уборка",
"measure": "sales",
"weekly": true
}
],
"days": [
{
"date": "2026-12-05",
"weekday": "saturday",
"open": {
"start": "10:00",
"end": "02:00",
"startsNextDay": false,
"endsNextDay": true
},
"closed": null,
"profile": "sales_history",
"estimate": {
"sales": 80000000,
"transactions": 1900,
"menuItems": null,
"hours": 104.5
},
"saved": {
"sales": 71200000,
"transactions": 1690,
"menuItems": null,
"hours": 93.5
},
"positions": [
{
"positionId": "pos_cashier",
"hours": 38,
"savedHours": 33.5
},
{
"positionId": "pos_kitchen",
"hours": 63.5,
"savedHours": 57
},
{
"positionId": "pos_cleaning",
"hours": 3,
"savedHours": 3
}
]
},
{
"date": "2026-12-06",
"weekday": "sunday",
"open": {
"start": "10:00",
"end": "23:00",
"startsNextDay": false,
"endsNextDay": false
},
"closed": null,
"profile": "sales_history",
"estimate": {
"sales": 64000000,
"transactions": 1520,
"menuItems": null,
"hours": 86
},
"saved": {
"sales": 60500000,
"transactions": 1430,
"menuItems": null,
"hours": 81.5
},
"positions": [
{
"positionId": "pos_cashier",
"hours": 31,
"savedHours": 29.5
},
{
"positionId": "pos_kitchen",
"hours": 52,
"savedHours": 49
},
{
"positionId": "pos_cleaning",
"hours": 3,
"savedHours": 3
}
]
}
],
"totals": {
"estimate": {
"sales": 144000000,
"transactions": 3420,
"hours": 190.5
},
"saved": {
"sales": 131700000,
"transactions": 3120,
"hours": 175
}
}
},
"meta": {
"requestId": "5f0c2b9e-7c1d-4a57-9d43-2f6f5a1f0b3c",
"generatedAt": "2026-11-12T09:30:00.000Z"
}
}
}
}Ready-made scenarios#
Besides the tools, the server offers three prompts (MCP prompts) — ready-made tasks of several steps: the weekly labour review, the readiness of the schedules, the forecast against the sales. A client that supports prompts shows them in its menu; the person picks one and may name the week or the store. A prompt reads nothing itself and spends no AI credits: it tells the assistant which tools to call and how to read the answers. Only the tool calls are charged. A connection is offered only the prompts whose tools it can use.
| Prompt | What it asks the assistant to do | Arguments |
|---|---|---|
weekly_labor_review | Weekly labour review Hours, sales and productivity of a week against the plan and the recommendation, the largest gaps and their likely causes. | week optional — Any date of the week to review, YYYY-MM-DD. Default: the last full week.node optional — A store or a structure node, by name or id. Default: everything the connection sees. |
schedule_readiness | Schedule readiness Which stores have their crew schedule of a week created, submitted and approved, and what holds the rest back. | week optional — Any date of the week to check, YYYY-MM-DD. Default: next week.node optional — A store or a structure node, by name or id. Default: everything the connection sees. |
forecast_vs_actual | Forecast against actual sales How far the sales forecast was from the actual sales over a period, by store, and where it missed most. | period optional — The period: one of last_7d, last_30d, last_90d, last_3_months, last_12_months, this_month, prev_month, this_year, or two dates YYYY-MM-DD..YYYY-MM-DD. Default: last_30d.node optional — A store or a structure node, by name or id. Default: everything the connection sees. |
Errors and limits#
An error comes at one of two levels. The transport answers with an HTTP status — that is how problems with the request itself and with sign-in are told. Everything else is a tool result with isError: true under HTTP 200: the assistant reads it and tells the person.
Transport errors#
| HTTP | Answer | When |
|---|---|---|
| 401 | invalid_token, WWW-Authenticate | No token or key (the header then has no error); an unknown, expired or revoked token or key; a token issued for another resource. The client's signal to sign in again. |
| 400 | invalid_request | A key or token in the request's address. |
| 403 | access_denied | A key from an address that is not in “Allowed IP addresses”. The address list applies to keys only. |
| 403 | invalid_request | A host name this server does not serve. |
| 405 | — | GET or DELETE: the server takes POST only. |
| 400 | JSON-RPC -32700 | The body is not JSON. |
| 413 | JSON-RPC -32600 | The body is too large. |
| 429 | JSON-RPC -32000 | Too many requests from one address. |
The answers with error are an OAuth error object, { "error", "error_description" }, not an RFC 9457 document.
Tool errors#
A result with isError: true. The codes are those of REST, plus two that only connections get:
- The state of the company and the employee:
API_ACCESS_DISABLED,API_CONSENT_REQUIRED,APP_NOT_ALLOWED,PRINCIPAL_INACTIVE,ROLE_PERMISSION_REQUIRED. The connection works again as soon as the cause is fixed. - The operation:
INSUFFICIENT_SCOPE,DATA_CATEGORY_DISABLED. - The arguments:
INVALID_REQUEST,INVALID_QUERY,INVALID_PERIOD,PERIOD_TOO_LONG; each field error on a line of its own. - The reach:
STORE_NOT_FOUND,NODE_NOT_FOUND. - Limits and time:
RATE_LIMITED,CONCURRENCY_LIMITED,CAPACITY_EXCEEDED,COMPANY_WORK_LIMITED,OPERATION_TIMEOUT; the text says after how many seconds to retry. - A failure:
INTERNAL_ERROR,SERVICE_UNAVAILABLE.
The two AI-credit codes reach only an assistant's connection (an OAuth token): a call with a key does not depend on credits.
| Status | Code | Meaning |
|---|---|---|
| 402 | AI_CREDITS_EXHAUSTED | AI credits used up. The company's balance of AI credits does not cover this request. An administrator of the company manages the balance in ProSchedule. |
| 403 | AI_CREDITS_LIMIT_REACHED | Monthly AI credit limit reached. The company's monthly limit of AI credits for connected assistants is reached. It starts again next month; an administrator of the company can change it in ProSchedule. |
AI_CREDITS_EXHAUSTED— the company's AI credit balance does not cover the call. A company administrator manages the balance in ProSchedule.AI_CREDITS_LIMIT_REACHED— the monthly AI credit limit for connected assistants is reached. It starts again next month; a company administrator can change it.- Both come instead of the result and charge nothing; the text names no amount and leads to no purchase.
{
"isError": true,
"content": [
{
"type": "text",
"text": "Too many requests at once. This credential already runs as many requests at once as it may. Retry shortly.\nTry again in 1 second.\n(code CONCURRENCY_LIMITED, request 5f0c2b9e-7c1d-4a57-9d43-2f6f5a1f0b3c)"
}
],
"_meta": {
"proschedule/error": {
"code": "CONCURRENCY_LIMITED",
"status": 429,
"requestId": "5f0c2b9e-7c1d-4a57-9d43-2f6f5a1f0b3c",
"retryAfterSeconds": 1
}
}
}The machine-readable part of an error is in _meta["proschedule/error"]: code, status, requestId and, when they apply, retryAfterSeconds and errors. The text: the title and the detail, the field errors line by line, at a limit after how long to retry, and last (code …, request …).
Limits#
- The allowances a minute are those of REST, by the tool's weight.
- A tool call past the limit of calls at once (2 for weight
medium, as for a key) is not refused at once but waits its turn: up to 10mediumand 8lightcalls wait per key or connection, within the call's time limit.CONCURRENCY_LIMITEDcomes only when the queue is full or the turn did not come in time. Assistants often ask several questions together; REST still refuses past the limit at once. - Every successful tool call through an assistant's connection spends AI credits; calls with an API key are free — see “Cost”.
- Protocol messages (
initialize,tools/list) spend no tool allowance and are not in the call log.
Troubleshooting#
| What you see | Cause and what to do |
|---|---|
404 on every /api/public/ path | The public API is not switched on on this server. With frequent retries a 429 may come instead of the 404. |
401 UNAUTHENTICATED | The key did not arrive: check the Authorization header (Bearer psk_…). Some proxies strip it — then use X-API-Key. |
401 INVALID_CREDENTIAL | A typo, a key of another ProSchedule server, or an MCP token on REST. |
403 API_ACCESS_DISABLED / API_CONSENT_REQUIRED | An administrator switches “External API access” on and accepts the consent. |
403 ROLE_PERMISSION_REQUIRED | The key owner's role lacks the permission “Can connect AI assistants and API keys”, or the owner has no access to the manager app. |
403 INSUFFICIENT_SCOPE | Issue a key with the scope you need: a key's scopes do not change after it is issued. |
404 STORE_NOT_FOUND or NODE_NOT_FOUND for an id that exists | It is outside the key's reach. GET/api/public/v1/me shows the reach. |
400 INVALID_CURSOR | The cursor belongs to another list or other filters. Start without a cursor. |
| 429 | Wait Retry-After seconds and send fewer calls at once. |
504 OPERATION_TIMEOUT | The query is too heavy: shorten the period, drop a dimension or filter by stores. |
meta.truncated: true | There were more rows than limit: raise it (up to 200) or split the period. |
| Assistant: “application not allowed” | An administrator switches it on in “Allowed applications”. |
Assistant: AI_CREDITS_EXHAUSTED | The company has run out of AI credits. A company administrator manages the balance in ProSchedule; calls with an API key work without credits. |
Assistant: AI_CREDITS_LIMIT_REACHED | The monthly AI credit limit for connected assistants is reached. It starts again next month; a company administrator can change it. |
| The assistant asks to sign in again | 180 days have passed since the consent, or the refresh token was unused for 30 days, or the connection was disconnected in ProSchedule. |
Sign-in does not start: an error about the return address (redirect_uri) | The client returns to a private scheme (cursor://…) or to http on another computer — such addresses are refused. |
Write to ProSchedule support with the requestId of the answer — it finds the call in the log.
API keys#
A key looks like psk_usr_1a2b3c4d5e6f7a8b_…: the prefix psk_, the kind (usr personal, svc service), the key's public id of 16 hexadecimal characters, and the secret. The prefix lets secret scanners recognise a key that slipped into a repository. The key id is shown in the interface and the call log; the secret is shown nowhere.
| Personal key | Service key | |
|---|---|---|
| Issued by | An employee whose role has the permission “Can connect AI assistants and API keys” | A company administrator |
| Acts as | Its owner — with the owner's role and place in the structure at the moment of each call | A service — with the reach chosen when it was issued |
| Reach | An administrator — the whole company; anyone else — their structure nodes and everything below them | “Whole company” or “Selected structure nodes” (up to 50) |
| Default / longest term | 90 / 365 days | 365 / 365 days |
| Active at once | up to 5 per employee | up to 20 per company |
| Stops working by itself when | The employee is dismissed, removed or hidden; the role loses the permission | — |
Sending the key#
In one of two headers: Authorization with the Bearer scheme, or X-API-Key. When both are sent, Authorization is used. The REST API is called server to server: /api/public/v1 answers no browser page (CORS is closed). /mcp accepts requests from any site, without cookies. Either way, never put a key into the code of a website or a mobile app.
Never put a key in the address. Under the names api_key, apikey and access_token such a request is refused with CREDENTIAL_IN_QUERY; under any other name the key may end up in the logs of servers on the way. Treat a key that was sent in an address as exposed: rotate it.
Term, rotation and revocation#
- The term is chosen when the key is issued (“Expires”). An expired key gets
CREDENTIAL_EXPIRED. - “Rotate” gives the same key a new secret: its id, scopes and reach stay, and the term starts again for the same length. The old secret keeps working for 24 hours, so you can replace it in your systems; for a key that has already expired, the old secret stops at once.
- A personal key is rotated by its owner only, a service key by an administrator.
- “Revoke” takes effect at once: the next call gets
CREDENTIAL_REVOKED. A personal key is revoked by its owner or an administrator, a service key by an administrator. - A lost key cannot be shown again — rotate or revoke it.
- “Allowed IP addresses” is an optional list of addresses and networks (up to 20); a call from any other address gets
IP_NOT_ALLOWED.
Scopes and reach#
A scope decides which operations a key may call; the reach decides which part of the company it sees. Each operation of the reference names the scopes it requires.
| Scope | In the interface | Opens |
|---|---|---|
org:read | “Structure and reference data” | Stores, structure nodes, roles, positions, concepts and sales channels: GET/api/public/v1/directory/search, GET/api/public/v1/stores, GET/api/public/v1/structure/nodes |
analytics:read | “Metrics” | Aggregated sales, hours, productivity and forecast: GET/api/public/v1/metrics/catalog, POST/api/public/v1/metrics/query, GET/api/public/v1/reports/labor, GET/api/public/v1/reports/managers, POST/api/public/v1/staffing/estimates |
labor_cost:read | “Cost of labor” | COL and labour cost in money in GET/api/public/v1/reports/labor — only where the company's administrator opened “Cost of labor” |
schedules:read | “Schedule statuses” | The state of weekly and monthly schedules by store: GET/api/public/v1/schedules/status; a store's week schedule with its warnings: GET/api/public/v1/schedules/week (names only with team:read and “People data” on) |
timesheets:read | “Time sheet” | Time sheet approval by store and the edits that wait for a decision, with no names: GET/api/public/v1/timesheets/approvals; the time sheet by employee, GET/api/public/v1/timesheets, where the company switched “People data” on |
team:read | “Team” | Employees' absences by store: GET/api/public/v1/absences; the names in GET/api/public/v1/schedules/week; the breakdowns and filters by employee, position and role of POST/api/public/v1/metrics/query; with team_development:read, the actions of the development plans: GET/api/public/v1/team-development/action-items — where the company switched “People data” on |
team_development:read | “Team development” | Action plans by store as counters, with no names and no texts: GET/api/public/v1/team-development/action-plans/summary |
sales_plans:read | “Sales plans” | The sales planning dataset by store: GET/api/public/v1/sales-plans/dataset; sales plans with their figures: GET/api/public/v1/sales-plans, GET/api/public/v1/sales-plans/{planId} — where the company switched “Sales planning” on |
sales_plans:write | “Writing sales plans” | A draft plan from your model's figures: POST/api/public/v1/sales-plans; a turn of the ProSchedule AI planner, which spends the company's AI credits: POST/api/public/v1/sales-plans/ai-runs. A personal key or an assistant's connection only; a connection asks for this scope when a tool needs it |
forecast:write | “Writing the forecast” | A reviewed plan written into the revenue forecast: POST/api/public/v1/sales-plans/{planId}/apply. A personal key only, REST only |
GET/api/public/v1/me works with any scope. A missing scope answers INSUFFICIENT_SCOPE: WWW-Authenticate names the operation's scopes, and errors[] lists the missing ones with the code MISSING_SCOPE.
Reach#
- Every answer is computed inside the reach: the whole company, or the chosen structure nodes and everything below them.
- Nothing outside the reach is returned — no id, no name, no total of the nodes above. The nodes of the reach are the roots of the tree you see.
- A store or node id outside the reach answers the same 404 as one that does not exist:
STORE_NOT_FOUNDorNODE_NOT_FOUND. - The reach of a personal key is worked out on every call: when an employee moves, the key sees the new reach at once.
- The key identifies the company. No request names a company and no response returns its id.
The company's access conditions#
- The switch and the consent. While “External API access” is off, every key gets
API_ACCESS_DISABLED. When the consent text changes it has to be accepted again — until then the answer isAPI_CONSENT_REQUIRED. - The role permission. A personal key and an assistant's connection work only while the owner's role has the permission “Can connect AI assistants and API keys” and access to the manager app (
ROLE_PERMISSION_REQUIRED), and the employee is active and not hidden (PRINCIPAL_INACTIVE). - Cost. Keys are free; MCP tools called through an assistant's connection spend AI credits — see “Cost”.
Refusals in the order they are checked#
The checks run in this order, and a call gets the first refusal that applies. Nothing is cached: a revoked key, a changed role or a switched-off company is refused on the very next call.
| # | Check | Answer |
|---|---|---|
| 1 | A key in the request's address | 400 CREDENTIAL_IN_QUERY |
| 2 | Neither Authorization nor X-API-Key | 401 UNAUTHENTICATED |
| 3 | The key is not recognised or the secret does not match | 401 INVALID_CREDENTIAL |
| 4 | The key is revoked or expired | 401 CREDENTIAL_REVOKED / CREDENTIAL_EXPIRED |
| 5 | The request came from an address that is not in “Allowed IP addresses” | 403 IP_NOT_ALLOWED |
| 6 | “External API access” is off | 403 API_ACCESS_DISABLED |
| 7 | The current consent is not accepted | 403 API_CONSENT_REQUIRED |
| 8 | Personal key: the owner is dismissed, removed or hidden | 403 PRINCIPAL_INACTIVE |
| 9 | Personal key: the role lacks the permission, or the owner has no access to the manager app | 403 ROLE_PERMISSION_REQUIRED |
| 10 | A scope is missing | 403 INSUFFICIENT_SCOPE |
| 11 | The operation needs a data category the company has not opened | 403 DATA_CATEGORY_DISABLED |
| 12 | The key's limit is spent | 429 RATE_LIMITED |
A 401 carries the WWW-Authenticate header. When one key collects too many refusals in a minute, the next ones get 429 RATE_LIMITED — so a dead key in a loop does not flood the log.
| Header | Meaning |
|---|---|
WWW-Authenticate | The challenge of RFC 6750, for example Bearer realm="proschedule", error="invalid_token". A 403 carries it with INSUFFICIENT_SCOPE, naming the scopes the operation requires. |
Cost#
| What | Cost |
|---|---|
| The REST API with keys | Free. Access is limited by the role permission, the “External API access” switch and the consent. |
MCP tools through an assistant's connection (OAuth): get_context, search_directory, list_metrics, get_schedule_status, get_action_plan_summary, get_absences, list_action_items, list_sales_plans, get_sales_plan, start_ai_sales_plan | 2 AI credits per successful call by default |
MCP tools query_metrics, get_store_week_schedule, get_sales_planning_dataset, create_sales_plan_draft, estimate_required_hours, get_timesheet_approval_status and get_timesheet through an assistant's connection | 10 AI credits per successful call by default |
MCP tools get_labor_report and get_managers_report through an assistant's connection | 20 AI credits per successful call by default |
| MCP tools with an API key | Free |
- Credits come from the company's common AI credit balance — the one ProSchedule's other AI features use — and are counted in its spending statistics.
- Only a successful
tools/callis charged, once per call:initialize,tools/list, a refusal or an error cost nothing. - The price is a ProSchedule setting: 2, 10 and 20 credits by default; it may change.
- Connected assistants have a monthly spending limit of their own, set by a company administrator.
- The credit balance is not told to the assistant.
- When credits run short or the monthly limit is reached, the tool answers with an error (
isError: true) — with no amount and no link to buy anything.
A lack of credits is AI_CREDITS_EXHAUSTED, a spent monthly limit AI_CREDITS_LIMIT_REACHED; both are described under tool errors.
Answers and formats#
A success is { "data": …, "meta": …, "page": … }. data is the operation's own shape, meta says how the answer was made (always requestId and generatedAt), and page is there on lists.
meta#
-
requestIdstringrequiredThe id of the call: theX-Request-Idthe request carried, or one the API gave it. -
generatedAtstring · date-timerequired -
reachobjectWhether the answer covers the whole company (full) or the part of its structure the credential reaches (nodes).Fields
-
kindstringrequired
-
-
periodobjectThe dates a metrics query was computed for, both included.Fields
-
fromstring · daterequired -
tostring · daterequired
-
-
comparisonPeriodobject | nullThe dates of the comparison a metrics query asked for; null without one.Fields
-
fromstring · daterequired -
tostring · daterequired
-
-
currencyany | nullAlways null: the system does not know the currency of money amounts. -
truncatedbooleanThe table of a metrics query is not the whole answer: there were more rows thanlimit, or the query read more data than one answer may be computed from. -
ignoredFiltersarray<string>The filters of a metrics query that at least one of its measures does not take. -
unavailableMeasuresarray<string>The measures of a metrics query that could not be computed; their cells are null. -
weekStartsOnstringThe first day of the weeks the answer is counted in.
Formats#
- Names are camelCase and ids end in
Id; enumeration values are lower case with underscores (not_created). - A date is
YYYY-MM-DD, a monthYYYY-MM, an instant ISO 8601 in UTC. - A business day starts at 06:00: sales before that hour belong to the day before.
- Money is a plain amount: the system does not know its currency, so
meta.currencyis alwaysnull. - Answers are UTF-8; a
POSTbody isapplication/jsonin UTF-8, otherwiseUNSUPPORTED_MEDIA_TYPE.
Errors#
An error is an RFC 9457 problem document, application/problem+json. Rely on code: it does not change. title and detail are for people and never repeat the request back.
-
typestring · urirequiredAn identifier of the kind of problem, the same on every installation. -
titlestringrequired -
statusintegerrequiredThe HTTP status of the response. -
detailstringrequiredWhat was expected or what to do. It never repeats the request back. -
codestringrequired -
requestIdstring | nullrequiredThe id of the call. Quote it when reporting a problem. -
errorsarray<object>Present when the problem is about particular fields, parameters or scopes: one entry for each, 20 at most.Fields
-
pointerstring | nullrequiredA JSON Pointer (RFC 6901) into the request body; null when the entry is not about a body field. -
parameterstring | nullrequiredThe query parameter; null when the entry is not about one. -
codestringrequired -
detailstringrequired
-
Field error codes#
When the problem is about particular fields, parameters or scopes, errors[] lists them: pointer is a JSON Pointer into the request body, parameter a query parameter, and code one of:
REQUIRED INVALID_TYPE INVALID_FORMAT UNKNOWN_FIELD UNKNOWN_VALUE OUT_OF_RANGE TOO_LONG TOO_MANY NOT_ALLOWED_TOGETHER NOT_AVAILABLE NOT_FOUND MISSING_SCOPE CATEGORY_DISABLED{
"type": "https://proschedule.com/problems/invalid-request",
"title": "Invalid request",
"status": 400,
"detail": "The request has an unknown or malformed parameter or field.",
"code": "INVALID_REQUEST",
"requestId": "5f0c2b9e-7c1d-4a57-9d43-2f6f5a1f0b3c"
}All codes#
| Status | Code | Meaning |
|---|---|---|
| 400 | INVALID_REQUEST | Invalid request. The request has an unknown or malformed parameter or field. |
| 400 | MALFORMED_JSON | Malformed JSON. The request body is not valid JSON. |
| 400 | INVALID_CURSOR | Invalid cursor. The cursor is malformed or belongs to another query. Start again without a cursor. |
| 400 | CREDENTIAL_IN_QUERY | Credential in the query string. API keys are not accepted in the query string. Send the key in the Authorization header as a Bearer token, or in X-API-Key, and treat a key that was sent in a URL as exposed. |
| 401 | UNAUTHENTICATED | Authentication required. Send an API key in the Authorization header as a Bearer token, or in X-API-Key. |
| 401 | INVALID_CREDENTIAL | Invalid credential. The credential is not valid. |
| 401 | CREDENTIAL_EXPIRED | Credential expired. The API key has expired. Rotate it or issue a new one. |
| 401 | CREDENTIAL_REVOKED | Credential revoked. The API key has been revoked. |
| 403 | API_ACCESS_DISABLED | API access is switched off. An administrator of the company has not switched external API access on. |
| 403 | API_CONSENT_REQUIRED | Data consent required. An administrator of the company has to accept the current data consent before the API can be used. |
| 403 | PRINCIPAL_INACTIVE | Key owner is not active. The person this key acts as is no longer active in the company. |
| 403 | ROLE_PERMISSION_REQUIRED | Role permission required. The role of the person this key acts as does not allow API access. |
| 403 | INSUFFICIENT_SCOPE | Insufficient scope. The credential lacks a scope this operation requires. |
| 403 | DATA_CATEGORY_DISABLED | Data category is not open. The company has not opened this category of data to the API. |
| 403 | APP_NOT_ALLOWED | Application not allowed. The company does not allow this application to connect. A company administrator can allow it in the API settings. |
| 402 | AI_TURN_NOT_COVERED | AI credits do not cover the turn. The company's AI credits do not cover this model turn: the balance, the monthly limit of AI sales planning or the person's own limit. An administrator of the company manages them in ProSchedule. |
| 403 | AI_PLANNING_UNAVAILABLE | AI sales planning unavailable. AI sales planning is not available to this person: this server does not run it, the company has not switched it on with its consent, or the person's role does not have it. |
| 403 | IP_NOT_ALLOWED | Address not allowed. This key cannot be used from the caller's address. |
| 403 | READ_ONLY_ACCOUNT | Read-only account. The account this key acts as has read-only access and cannot make this change. not returned: kept for writing operations, none yet |
| 403 | FORBIDDEN | Forbidden. The credential is not allowed to do this. fallback code |
| 404 | NOT_FOUND | Not found. The requested resource does not exist. |
| 404 | STORE_NOT_FOUND | Store not found. No such store within the reach of this credential. |
| 404 | NODE_NOT_FOUND | Structure node not found. No such structure node within the reach of this credential. |
| 404 | SALES_PLAN_NOT_FOUND | Sales plan not found. No such sales plan that this credential may read. |
| 404 | WEBHOOK_ENDPOINT_NOT_FOUND | Webhook endpoint not found. No such webhook endpoint that this key manages. |
| 404 | WEBHOOK_DELIVERY_NOT_FOUND | Webhook delivery not found. No such delivery of an endpoint that this key manages. |
| 409 | VERSION_CONFLICT | Version conflict. The plan changed since the version the request names. Read it again and decide on what it holds now. |
| 409 | PLAN_RUN_IN_PROGRESS | A model turn is running. The plan has a model turn in flight. Wait for it to end, then try again. |
| 409 | PLAN_NOT_READY | Plan has no figures. The plan has no figures to write into the forecast yet. |
| 409 | WEBHOOK_ENDPOINT_LIMIT | Too many webhook endpoints. The company has as many webhook endpoints as it may. Delete one first. |
| 409 | WEBHOOK_ENDPOINT_DISABLED | Webhook endpoint switched off. The endpoint is switched off and is sent nothing. Switch it on first. |
| 409 | IDEMPOTENCY_IN_PROGRESS | Request in progress. A request with this Idempotency-Key is still running. Retry shortly. not returned: kept for writing operations, none yet |
| 409 | CONFLICT | Conflict. The request conflicts with the current state. fallback code |
| 413 | PAYLOAD_TOO_LARGE | Payload too large. The request body is larger than this API accepts. |
| 415 | UNSUPPORTED_MEDIA_TYPE | Unsupported media type. Send the request body as application/json in UTF-8. |
| 422 | INVALID_QUERY | Invalid query. The query cannot be run as it is written. |
| 422 | INVALID_PERIOD | Invalid period. The period is not valid. |
| 422 | PERIOD_TOO_LONG | Period too long. The period is longer than this query allows. |
| 422 | WEBHOOK_URL_NOT_ALLOWED | Webhook address not allowed. The address must be https, without credentials or a fragment, on port 443 or 1024 and above, and resolve to public addresses only. |
| 422 | TOO_MANY_STORES | Too many stores. The call covers more stores than one call may read. Narrow it to a structure node. |
| 422 | DIMENSION_NOT_AVAILABLE | Dimension not available. A requested dimension is not available for the requested measures. not returned in this version |
| 422 | IDEMPOTENCY_KEY_REUSED | Idempotency key reused. This Idempotency-Key was already used with a different request. not returned: kept for writing operations, none yet |
| 429 | RATE_LIMITED | Too many requests. The request limit is spent. Retry after the time in the Retry-After header. |
| 429 | CONCURRENCY_LIMITED | Too many requests at once. This credential already runs as many requests at once as it may. Retry shortly. |
| 429 | CAPACITY_EXCEEDED | Capacity exceeded. The API is busy. Retry shortly. |
| 429 | COMPANY_WORK_LIMITED | Company's share of the API spent. The company's keys and connections together have run as long this minute as the API allows one company. Retry after the time in the Retry-After header. |
| 429 | HEAVY_DAILY_LIMIT_REACHED | Daily limit of heavy reports reached. The company has had as many heavy reports computed today as this server allows. A report asked for in the last minute is still answered; new ones are computed again from 00:00 UTC. |
| 500 | INTERNAL_ERROR | Internal error. The request failed on our side. Quote the requestId when you report it. |
| 503 | SERVICE_UNAVAILABLE | Service unavailable. The API is temporarily unavailable. Retry shortly. |
| 504 | OPERATION_TIMEOUT | Operation timed out. The operation did not finish in time. Narrow the request and retry. |
The codes marked “not returned” are in the contract, but this version never answers with them: READ_ONLY_ACCOUNT, IDEMPOTENCY_IN_PROGRESS and IDEMPOTENCY_KEY_REUSED are kept for writing operations, and DIMENSION_NOT_AVAILABLE is unused — a measure that cannot be broken down by a requested dimension gets INVALID_QUERY with the field code NOT_AVAILABLE. FORBIDDEN and CONFLICT are fallbacks for a refusal that has no code of its own. Two more codes reach only an assistant's MCP connection — AI_CREDITS_EXHAUSTED and AI_CREDITS_LIMIT_REACHED, see tool errors.
Lists and cursors#
A list takes limit (default 50, at most 200) and cursor. While page.hasMore is true, pass page.nextCursor as cursor. The same address comes in the Link header with rel="next".
-
limitintegerrequired -
hasMorebooleanrequired -
nextCursorstring | nullrequiredNull on the last page.
A cursor belongs to its list and to the other parameters it was made with. With another operation or other filters it answers INVALID_CURSOR — start again without a cursor. The page size may change from one page to the next.
| Header | Meaning |
|---|---|
Link | The address of the next page, <…>; rel="next", while the list has more. |
Conditional requests#
The reference lists and the metrics catalogue carry ETag and Cache-Control of the form private, max-age=…. Send the tag back in If-None-Match, and an unchanged answer is a 304 without a body. Every other answer is Cache-Control: no-store. The reference marks such operations “ETag · 304”.
| Header | Meaning |
|---|---|
ETag | A weak validator of this answer. Send it back in If-None-Match. |
Cache-Control | private, max-age=<seconds>: the caller's own cache may keep the answer. |
A 304 is still a call: it counts against the limit and is in the log. The tag saves the transfer, not the computation.
Limits#
Each operation has a weight (x-proschedule-weight in OpenAPI), and each key and connection its own allowance per weight. These are the starting numbers; the headers of an accepted call state the allowance in force.
| Weight | Calls a minute | At once: key | At once: MCP connection | Answered within | Operations |
|---|---|---|---|---|---|
light | 120 | 4 | 4 | 5 s | get_context search_directory list_stores list_structure_nodes list_metrics get_schedule_status get_action_plan_summary get_absences list_action_items list_sales_plans get_sales_plan list_webhook_endpoints create_webhook_endpoint get_webhook_endpoint update_webhook_endpoint delete_webhook_endpoint rotate_webhook_secret send_webhook_test list_webhook_deliveries retry_webhook_delivery retry_webhook_deliveries |
medium | 30 | 2 | 2 | 15 s | query_metrics get_store_week_schedule get_timesheet_approval_status get_timesheet get_sales_planning_dataset estimate_required_hours |
heavy | 6 | 1 | 1 | 25 s | get_labor_report get_managers_report |
write | 10 | — | — | 10 s | create_sales_plan_draft apply_sales_plan |
job | 10 | — | — | 10 s | start_ai_sales_plan |
- Past the allowance of a minute — 429
RATE_LIMITEDwithRetry-After. - More calls at once than the key may run — 429
CONCURRENCY_LIMITED; a busy API — 429CAPACITY_EXCEEDED. All keys and connections of a company together may run 6 seconds a minute — far more than ordinary use needs; past that — 429COMPANY_WORK_LIMITED. Retry afterRetry-Afterseconds. - Not answered in its time — 504
OPERATION_TIMEOUT: narrow the period or drop a dimension.
| Header | Meaning |
|---|---|
RateLimit-Limit | How many calls of this operation's weight the credential may make in a minute. |
RateLimit-Remaining | How many of them are left in the current minute. |
RateLimit-Reset | Seconds until the current minute ends. |
Retry-After | Seconds to wait before sending the call again. |
Versions and compatibility#
- The major version is in the address:
/api/public/v1. The current contract version is1.0(info.versionin OpenAPI). - Inside
v1changes are additive only: new operations, optional parameters, new response fields and new enumeration values. Do not reject an answer because of a field you do not know. - A breaking change comes only with a new major version.
OpenAPI document#
The reference below is built from the contract — an OpenAPI 3.1 document. Load it into Postman, Insomnia or a client generator.
The contract, version 1.0, this page is built from.
Where the API is on, the interactive Swagger page and the same document are served without a key.
The base address of every operation is https://api.proschedule.com/api/public/v1.
Context#
Who the credential acts as and what it can see.
/api/public/v1/meCompany context and the caller's access#
get_contextWho the credential acts as and what it can see: the company's language and first day of the week, today's date, the credential's scopes and expiry, the caller's role, the reach in the structure (the whole company, or the listed root nodes and everything below them) and the data categories the company has opened. Call it first: every other operation answers inside this reach. The company's name, currency and time zone are not known to the system and are always null; today is the UTC date, and a business day starts at 06:00 (sales before that hour belong to the previous day).
Response 200 { data, meta }
The data field:
-
companyobjectrequiredFields
-
namestring | nullrequired -
localestringrequired -
firstDayOfWeekstringrequired -
currencystring | nullrequired -
timeZonestring | nullrequired
-
-
todayobjectrequiredFields
-
datestring · daterequired -
basis"utc"required
-
-
businessDayobjectrequiredFields
-
startsAt"06:00"required
-
-
credentialobjectrequiredFields
-
kindstringrequired -
namestringrequired -
keyIdstring | nullrequired -
scopesarray<string>required -
expiresAtstring · date-timerequired
-
-
subjectobject | objectrequiredVariants
Variant 1-
kind"person"required -
namestring | nullrequired -
roleobject | nullrequiredFields
-
idstringrequired -
namestringrequired
-
-
isAdministratorbooleanrequired
Variant 2-
kind"service"required
-
-
reachobject | objectrequiredVariants
Variant 1-
kind"full"required
Variant 2-
kind"nodes"required -
rootsarray<object>requiredFields
-
idstringrequired -
namestringrequired -
isStorebooleanrequired
-
-
-
accessobjectrequiredFields
-
peopleDatabooleanrequired -
laborCostbooleanrequired
-
Response headers
RateLimit-LimitHow many calls of this operation's weight the credential may make in a minute.RateLimit-RemainingHow many of them are left in the current minute.RateLimit-ResetSeconds until the current minute ends.
Possible errors 400 401 403 404 429 500 503 504
/api/public/v1/mecurl "https://api.proschedule.com/api/public/v1/me" \
-H "Authorization: Bearer $PROSCHEDULE_API_KEY"const response = await fetch("https://api.proschedule.com/api/public/v1/me", {
headers: {
Authorization: `Bearer ${process.env.PROSCHEDULE_API_KEY}`,
},
});
if (!response.ok) throw new Error((await response.json()).code);
const { data, meta } = await response.json();import os
import requests
response = requests.get(
"https://api.proschedule.com/api/public/v1/me",
headers={"Authorization": f"Bearer {os.environ['PROSCHEDULE_API_KEY']}"},
timeout=30,
)
response.raise_for_status()
body = response.json()
print(body["data"]){
"data": {
"company": {
"name": null,
"locale": "ru",
"firstDayOfWeek": "monday",
"currency": null,
"timeZone": null
},
"today": {
"date": "2026-11-12",
"basis": "utc"
},
"businessDay": {
"startsAt": "06:00"
},
"credential": {
"kind": "personal_key",
"name": "Power BI reports",
"keyId": "1a2b3c4d5e6f7a8b",
"scopes": [
"org:read",
"analytics:read"
],
"expiresAt": "2027-02-10T09:30:00.000Z"
},
"subject": {
"kind": "person",
"name": "Aziz Karimov",
"role": {
"id": "2",
"name": "Regional manager"
},
"isAdministrator": false
},
"reach": {
"kind": "nodes",
"roots": [
{
"id": "n_tashkent",
"name": "Ташкент",
"isStore": false
}
]
},
"access": {
"peopleData": false,
"laborCost": false
}
},
"meta": {
"requestId": "5f0c2b9e-7c1d-4a57-9d43-2f6f5a1f0b3c",
"generatedAt": "2026-11-12T09:30:00.000Z"
}
}Directory#
Stores, structure nodes and reference values: the ids every other operation takes.
/api/public/v1/directory/searchFind stores, structure nodes and reference values by name#
search_directoryTurns a name into an id. Searches the names of stores, structure nodes (a node is a group of the structure, such as a region or a city; a store is its own type), positions, roles, store concepts and order channels, and returns the closest matches with a score from 0 to 1, best first. Use the ids in the filters of the other operations. Stores and nodes are searched inside the credential's reach only; context is the name of the parent node within that reach, or null. The match is fuzzy: it ignores case and word endings and tolerates small typos; a name with no close match returns an empty list. types narrows the search (a comma list, default all); limit is 1 to 50, default 10.
Query parameters
-
qstringrequiredThe name to look for, or a part of it. -
typesarray<string>What to search, as a comma list. Default: every type. -
limitintegerThe most results to return.
Response 200 { data, meta }
The data field:
-
resultsarray<object>requiredFields
-
typestringrequired -
idstringrequired -
namestringrequired -
contextstring | nullrequired -
scorenumberrequired
-
Response headers
RateLimit-LimitHow many calls of this operation's weight the credential may make in a minute.RateLimit-RemainingHow many of them are left in the current minute.RateLimit-ResetSeconds until the current minute ends.
Possible errors 400 401 403 404 429 500 503 504
/api/public/v1/directory/searchcurl "https://api.proschedule.com/api/public/v1/directory/search?q=%D1%87%D0%B8%D0%BB%D0%B0%D0%BD%D0%B7%D0%B0%D1%80&types=store" \
-H "Authorization: Bearer $PROSCHEDULE_API_KEY"const response = await fetch("https://api.proschedule.com/api/public/v1/directory/search?q=%D1%87%D0%B8%D0%BB%D0%B0%D0%BD%D0%B7%D0%B0%D1%80&types=store", {
headers: {
Authorization: `Bearer ${process.env.PROSCHEDULE_API_KEY}`,
},
});
if (!response.ok) throw new Error((await response.json()).code);
const { data, meta } = await response.json();import os
import requests
response = requests.get(
"https://api.proschedule.com/api/public/v1/directory/search",
params={"q": "чиланзар", "types": "store"},
headers={"Authorization": f"Bearer {os.environ['PROSCHEDULE_API_KEY']}"},
timeout=30,
)
response.raise_for_status()
body = response.json()
print(body["data"]){
"data": {
"results": [
{
"type": "store",
"id": "n_184",
"name": "Evos Чиланзар",
"context": "Ташкент",
"score": 0.9
}
]
},
"meta": {
"requestId": "5f0c2b9e-7c1d-4a57-9d43-2f6f5a1f0b3c",
"generatedAt": "2026-11-12T09:30:00.000Z"
}
}/api/public/v1/storesList stores#
list_storesThe stores within the credential's reach, ordered by name, 50 per page (limit up to 200; pass page.nextCursor as cursor for the next page). nodeId keeps the stores below that structure node; conceptId keeps the stores of that store concept. Each store has its place in the structure as the credential sees it (parentNodeId, path from the top of the reach down to the parent), its concept and its coordinates when they are set. A nodeId that does not exist or lies outside the reach answers 404 NODE_NOT_FOUND.
Query parameters
-
nodeIdstringKeeps the stores below this structure node. -
conceptIdstringKeeps the stores of this store concept. -
limitintegerThe size of a page. -
cursorstringpage.nextCursorof the page before; leave it out for the first page. A cursor belongs to its list and to the other parameters it was made with.
Response 200 { data, meta, page }
The data field:
-
itemsarray<object>requiredFields
-
idstringrequired -
namestringrequired -
parentNodeIdstring | nullrequired -
patharray<object>requiredFields
-
idstringrequired -
namestringrequired
-
-
conceptobject | nullrequiredFields
-
idstringrequired -
namestringrequired
-
-
locationobject | nullrequiredFields
-
latitudenumberrequired -
longitudenumberrequired
-
-
304 Not modified: If-None-Match named the current answer.
Response headers
RateLimit-LimitHow many calls of this operation's weight the credential may make in a minute.RateLimit-RemainingHow many of them are left in the current minute.RateLimit-ResetSeconds until the current minute ends.ETagA weak validator of this answer. Send it back inIf-None-Match.Cache-Controlprivate, max-age=<seconds>: the caller's own cache may keep the answer.LinkThe address of the next page,<…>; rel="next", while the list has more.
Possible errors 400 401 403 404 429 500 503 504
/api/public/v1/storescurl "https://api.proschedule.com/api/public/v1/stores?limit=50" \
-H "Authorization: Bearer $PROSCHEDULE_API_KEY"const response = await fetch("https://api.proschedule.com/api/public/v1/stores?limit=50", {
headers: {
Authorization: `Bearer ${process.env.PROSCHEDULE_API_KEY}`,
},
});
if (!response.ok) throw new Error((await response.json()).code);
const { data, meta, page } = await response.json();import os
import requests
response = requests.get(
"https://api.proschedule.com/api/public/v1/stores",
params={"limit": 50},
headers={"Authorization": f"Bearer {os.environ['PROSCHEDULE_API_KEY']}"},
timeout=30,
)
response.raise_for_status()
body = response.json()
print(body["data"]){
"data": {
"items": [
{
"id": "n_184",
"name": "Evos Чиланзар",
"parentNodeId": "n_tashkent",
"path": [
{
"id": "n_tashkent",
"name": "Ташкент"
}
],
"concept": {
"id": "1",
"name": "Restaurant"
},
"location": {
"latitude": 41.2756,
"longitude": 69.2034
}
}
]
},
"meta": {
"requestId": "5f0c2b9e-7c1d-4a57-9d43-2f6f5a1f0b3c",
"generatedAt": "2026-11-12T09:30:00.000Z"
},
"page": {
"limit": 50,
"hasMore": false,
"nextCursor": null
}
}/api/public/v1/structure/nodesList structure nodes#
list_structure_nodesThe nodes of the company structure within the credential's reach — groups (regions, cities) and stores — ordered by name, 50 per page (limit up to 200; pass page.nextCursor as cursor for the next page). parentId keeps the direct children of that node; kind keeps stores or groups. level is the depth in the tree the credential sees: 0 is a top node of the reach, and it is the number nodeLevel of the metrics query takes. path lists the ancestors from the top of the reach down to the parent. A parentId that does not exist or lies outside the reach answers 404 NODE_NOT_FOUND.
Query parameters
-
parentIdstringKeeps the direct children of this node. -
kindstringKeeps the stores, or the groups (every node that is not a store). -
limitintegerThe size of a page. -
cursorstringpage.nextCursorof the page before; leave it out for the first page. A cursor belongs to its list and to the other parameters it was made with.
Response 200 { data, meta, page }
The data field:
-
itemsarray<object>requiredFields
-
idstringrequired -
namestringrequired -
parentNodeIdstring | nullrequired -
isStorebooleanrequired -
levelintegerrequired -
patharray<object>requiredFields
-
idstringrequired -
namestringrequired
-
-
304 Not modified: If-None-Match named the current answer.
Response headers
RateLimit-LimitHow many calls of this operation's weight the credential may make in a minute.RateLimit-RemainingHow many of them are left in the current minute.RateLimit-ResetSeconds until the current minute ends.ETagA weak validator of this answer. Send it back inIf-None-Match.Cache-Controlprivate, max-age=<seconds>: the caller's own cache may keep the answer.LinkThe address of the next page,<…>; rel="next", while the list has more.
Possible errors 400 401 403 404 429 500 503 504
/api/public/v1/structure/nodescurl "https://api.proschedule.com/api/public/v1/structure/nodes?kind=store" \
-H "Authorization: Bearer $PROSCHEDULE_API_KEY"const response = await fetch("https://api.proschedule.com/api/public/v1/structure/nodes?kind=store", {
headers: {
Authorization: `Bearer ${process.env.PROSCHEDULE_API_KEY}`,
},
});
if (!response.ok) throw new Error((await response.json()).code);
const { data, meta, page } = await response.json();import os
import requests
response = requests.get(
"https://api.proschedule.com/api/public/v1/structure/nodes",
params={"kind": "store"},
headers={"Authorization": f"Bearer {os.environ['PROSCHEDULE_API_KEY']}"},
timeout=30,
)
response.raise_for_status()
body = response.json()
print(body["data"]){
"data": {
"items": [
{
"id": "n_184",
"name": "Evos Чиланзар",
"parentNodeId": "n_tashkent",
"isStore": true,
"level": 1,
"path": [
{
"id": "n_tashkent",
"name": "Ташкент"
}
]
}
]
},
"meta": {
"requestId": "5f0c2b9e-7c1d-4a57-9d43-2f6f5a1f0b3c",
"generatedAt": "2026-11-12T09:30:00.000Z"
},
"page": {
"limit": 50,
"hasMore": false,
"nextCursor": null
}
}Metrics#
Aggregated sales, hours and productivity figures.
/api/public/v1/metrics/catalogList the metrics a query can ask for#
list_metricsThe catalogue of the metrics query: every measure with its value format, whether its values add up (additive), whether a higher value is better, and the dimensions and filters it takes; every dimension and filter; the preset periods and the comparisons; and the limits of one query. Call it before the first query, and build queries from these ids only. It lists what this credential may use: the cuts by position and role appear only for a company that has opened people data to the API, to a credential with team:read — and so do the cut and the filter by employee. Labels come in English or Russian (lang, default en); descriptions are in English. filters[].directoryType is the types value of the directory search that finds the ids for that filter; null for employeeIds — people are in no directory, and their ids come from the answers that name them.
Query parameters
-
langstringThe language of the labels.
Response 200 { data, meta }
The data field:
-
measuresarray<object>requiredFields
-
idstringrequired -
labelstringrequired -
descriptionstringrequired -
formatstringrequired -
additivebooleanrequired -
higherIsBetterboolean | nullrequired -
dimensionsarray<string>required -
filtersarray<string>required
-
-
dimensionsarray<object>requiredFields
-
idstringrequired -
labelstringrequired -
descriptionstringrequired -
kindstringrequired
-
-
filtersarray<object>requiredFields
-
keystringrequired -
labelstringrequired -
descriptionstringrequired -
directoryTypestring | nullrequired
-
-
periodsarray<string>required -
comparisonsarray<string>required -
limitsobjectrequiredFields
-
maxMeasuresintegerrequired -
maxDimensionsintegerrequired -
defaultRowsintegerrequired -
maxRowsintegerrequired -
maxCustomPeriodDaysintegerrequired -
maxShiftBreakdownDaysintegerrequired -
maxHourBreakdownDaysintegerrequired -
maxFilterValuesintegerrequired
-
304 Not modified: If-None-Match named the current answer.
Response headers
RateLimit-LimitHow many calls of this operation's weight the credential may make in a minute.RateLimit-RemainingHow many of them are left in the current minute.RateLimit-ResetSeconds until the current minute ends.ETagA weak validator of this answer. Send it back inIf-None-Match.Cache-Controlprivate, max-age=<seconds>: the caller's own cache may keep the answer.
Possible errors 400 401 403 404 429 500 503 504
/api/public/v1/metrics/catalogcurl "https://api.proschedule.com/api/public/v1/metrics/catalog?lang=en" \
-H "Authorization: Bearer $PROSCHEDULE_API_KEY"const response = await fetch("https://api.proschedule.com/api/public/v1/metrics/catalog?lang=en", {
headers: {
Authorization: `Bearer ${process.env.PROSCHEDULE_API_KEY}`,
},
});
if (!response.ok) throw new Error((await response.json()).code);
const { data, meta } = await response.json();import os
import requests
response = requests.get(
"https://api.proschedule.com/api/public/v1/metrics/catalog",
params={"lang": "en"},
headers={"Authorization": f"Bearer {os.environ['PROSCHEDULE_API_KEY']}"},
timeout=30,
)
response.raise_for_status()
body = response.json()
print(body["data"]){
"data": {
"measures": [
{
"id": "sales.revenue",
"label": "Revenue",
"description": "Sales revenue (the sum of sales) from the sales history.",
"format": "money",
"additive": true,
"higherIsBetter": true,
"dimensions": [
"time.day",
"time.week",
"time.month",
"time.quarter",
"store",
"node",
"weekday",
"hour",
"order_channel",
"store_concept"
],
"filters": [
"nodeIds",
"storeIds",
"storeConceptIds",
"orderChannelIds"
]
}
],
"dimensions": [
{
"id": "store",
"label": "Store",
"description": "The store the figure belongs to.",
"kind": "category"
}
],
"filters": [
{
"key": "storeIds",
"label": "Stores",
"description": "Ids of stores (GET /stores).",
"directoryType": "store"
}
],
"periods": [
"last_7d",
"last_30d",
"last_90d",
"last_3_months",
"last_12_months",
"this_month",
"prev_month",
"this_year"
],
"comparisons": [
"previous_period",
"same_period_last_year"
],
"limits": {
"maxMeasures": 6,
"maxDimensions": 3,
"defaultRows": 50,
"maxRows": 200,
"maxCustomPeriodDays": 1830,
"maxShiftBreakdownDays": 92,
"maxHourBreakdownDays": 92,
"maxFilterValues": 50
}
},
"meta": {
"requestId": "5f0c2b9e-7c1d-4a57-9d43-2f6f5a1f0b3c",
"generatedAt": "2026-11-12T09:30:00.000Z"
}
}/api/public/v1/metrics/queryQuery metrics#
query_metricsComputes measures over a period, broken down by up to 3 dimensions, inside the credential's reach — the figures the dashboards show. Take the ids of measures, dimensions and filters from the metrics catalogue, and the ids of stores, nodes and reference values from the directory. period is a preset ({ "preset": "prev_month" }) or the caller's own dates ({ "from", "to" }, both included, at most 1830 days); presets are counted from today (the caller's local date; default the UTC date). compareWith adds the same measures for the previous period or the same period a year earlier. The answer is a table: columns says what each cell of a row is — a dimension cell is { id, label }, a measure or comparison cell is a number or null. Rows are ordered by sort (default: the first measure, largest first) and cut at limit (default 50, at most 200); meta.truncated is true when there were more rows than that. A time bucket is always the first dimension, and such a query is a calendar: its rows go by the bucket, earliest first (inside one bucket by the first measure, largest first), it takes no sort, and a cut at limit leaves out the latest rows — for a whole series ask for a limit of at least the number of buckets, or split the period. A bucket too fine for the period (more than 400 buckets) is replaced by the next one that fits — columns names the one used. With a time bucket and another dimension together the comparison cells are null. Without dimensions the answer is one row of totals. Money has no currency: the system does not know it. A filter that a measure does not take is ignored for that measure and listed in meta.ignoredFilters. A store or node id that does not exist or lies outside the reach answers 404. The cuts by person — employee, position and role, as dimensions or as filters (employeeIds, positionIds, roleIds), at most 92 days as dimensions — answer 403 DATA_CATEGORY_DISABLED until the company opens people data, and 403 INSUFFICIENT_SCOPE to a credential without team:read.
Request body application/json
-
measuresarray<string>requiredWhat to compute: ids of measures from the metrics catalogue. -
dimensionsarray<string>What to break the figures down by: ids of dimensions from the metrics catalogue. Default: none, one row of totals. -
periodobject | objectrequiredA preset, counted fromtoday, or the caller's own dates, both included.Variants
Variant 1-
presetstringrequired
Variant 2-
fromstring · daterequired -
tostring · daterequired
-
-
compareWithstring | nullAdds each measure once more, for the previous period or for the same period a year earlier. -
filtersobjectKeeps the figures of the listed ids; the metrics catalogue says what each filter takes.Fields
-
nodeIdsarray<string> -
storeIdsarray<string> -
storeConceptIdsarray<string> -
orderChannelIdsarray<string> -
positionIdsarray<string> -
roleIdsarray<string> -
employeeIdsarray<string>
-
-
sortobject | nullThe order of the rows: by a requested measure or by the label of the first dimension. Not taken with a time bucket.Fields
-
bystringrequired -
directionstringrequired
-
-
limitintegerThe most rows to return. -
nodeLevelinteger | nullWith the dimensionnode: thelevel(GET /structure/nodes) of the nodes to group by. Default: each store's parent. -
todaystring · dateThe caller's local date, which a preset is counted from. Default: the UTC date.
Response 200 { data, meta }
The data field:
-
columnsarray<object>requiredFields
-
keystringrequired -
rolestringrequired -
labelstringrequired -
formatstring | nullrequired
-
-
rowsarray<array<object | number | null>>required
Response headers
RateLimit-LimitHow many calls of this operation's weight the credential may make in a minute.RateLimit-RemainingHow many of them are left in the current minute.RateLimit-ResetSeconds until the current minute ends.
Possible errors 400 401 403 404 413 415 422 429 500 503 504
/api/public/v1/metrics/querycurl -X POST "https://api.proschedule.com/api/public/v1/metrics/query" \
-H "Authorization: Bearer $PROSCHEDULE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"measures": [
"sales.revenue",
"fact.hours"
],
"dimensions": [
"store"
],
"period": {
"preset": "prev_month"
},
"limit": 3
}'const response = await fetch("https://api.proschedule.com/api/public/v1/metrics/query", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PROSCHEDULE_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"measures": [
"sales.revenue",
"fact.hours"
],
"dimensions": [
"store"
],
"period": {
"preset": "prev_month"
},
"limit": 3
}),
});
if (!response.ok) throw new Error((await response.json()).code);
const { data, meta } = await response.json();import os
import requests
response = requests.post(
"https://api.proschedule.com/api/public/v1/metrics/query",
json={
"measures": [
"sales.revenue",
"fact.hours"
],
"dimensions": [
"store"
],
"period": {
"preset": "prev_month"
},
"limit": 3
},
headers={"Authorization": f"Bearer {os.environ['PROSCHEDULE_API_KEY']}"},
timeout=30,
)
response.raise_for_status()
body = response.json()
print(body["data"]){
"data": {
"columns": [
{
"key": "store",
"role": "dimension",
"label": "Store",
"format": null
},
{
"key": "sales.revenue",
"role": "measure",
"label": "Revenue",
"format": "money"
},
{
"key": "fact.hours",
"role": "measure",
"label": "Worked hours",
"format": "hours"
}
],
"rows": [
[
{
"id": "n_184",
"label": "Evos Чиланзар"
},
412500000,
3120.5
]
]
},
"meta": {
"requestId": "5f0c2b9e-7c1d-4a57-9d43-2f6f5a1f0b3c",
"generatedAt": "2026-11-12T09:30:00.000Z"
}
}Schedules#
The state of the stores' schedules, and a store's crew schedule of a week.
/api/public/v1/schedules/statusSchedule status by store#
get_schedule_statusWhich stores have their schedule ready. Give exactly one of weekStart — a date, any day of the week: it reads the crew schedules of the company's week that contains it, and period says which week that is — and month (YYYY-MM): it reads the managers' schedules of that month. Each store of the credential's reach is listed with its status: not_created (no schedule yet), draft, submitted (waiting for approval) or approved. summary counts the stores in each status over the whole reach — or below nodeId, when given — whatever the page and whatever statuses keeps. statuses keeps the stores in the listed statuses (a comma list). Stores are ordered by name, 50 per page (limit up to 200; pass page.nextCursor as cursor for the next page). A nodeId that does not exist or lies outside the reach answers 404 NODE_NOT_FOUND.
Query parameters
-
weekStartstring · dateA date, any day of the week: reads the crew schedules of the company's week that contains it. Give this ormonth, not both. -
monthstringA month (YYYY-MM): reads the managers' schedules of that month. Give this orweekStart, not both. -
nodeIdstringKeeps the stores below this structure node. -
statusesarray<string>Keeps the stores in these statuses, as a comma list. Default: every status. -
limitintegerThe size of a page. -
cursorstringpage.nextCursorof the page before; leave it out for the first page. A cursor belongs to its list and to the other parameters it was made with.
Response 200 { data, meta, page }
The data field:
-
kindstringrequired -
periodobject | objectrequiredVariants
Variant 1-
weekStartstring · daterequired -
weekEndstring · daterequired -
weekNumberintegerrequired -
yearintegerrequired
Variant 2-
monthstringrequired
-
-
summaryobjectrequiredFields
-
notCreatedintegerrequired -
draftintegerrequired -
submittedintegerrequired -
approvedintegerrequired
-
-
itemsarray<object>requiredFields
-
storeIdstringrequired -
storeNamestringrequired -
statusstringrequired
-
Response headers
RateLimit-LimitHow many calls of this operation's weight the credential may make in a minute.RateLimit-RemainingHow many of them are left in the current minute.RateLimit-ResetSeconds until the current minute ends.LinkThe address of the next page,<…>; rel="next", while the list has more.
Possible errors 400 401 403 404 429 500 503 504
/api/public/v1/schedules/statuscurl "https://api.proschedule.com/api/public/v1/schedules/status?weekStart=2026-11-11&statuses=draft%2Cnot_created" \
-H "Authorization: Bearer $PROSCHEDULE_API_KEY"const response = await fetch("https://api.proschedule.com/api/public/v1/schedules/status?weekStart=2026-11-11&statuses=draft%2Cnot_created", {
headers: {
Authorization: `Bearer ${process.env.PROSCHEDULE_API_KEY}`,
},
});
if (!response.ok) throw new Error((await response.json()).code);
const { data, meta, page } = await response.json();import os
import requests
response = requests.get(
"https://api.proschedule.com/api/public/v1/schedules/status",
params={"weekStart": "2026-11-11", "statuses": "draft,not_created"},
headers={"Authorization": f"Bearer {os.environ['PROSCHEDULE_API_KEY']}"},
timeout=30,
)
response.raise_for_status()
body = response.json()
print(body["data"]){
"data": {
"kind": "crew_week",
"period": {
"weekStart": "2026-11-09",
"weekEnd": "2026-11-15",
"weekNumber": 46,
"year": 2026
},
"summary": {
"notCreated": 2,
"draft": 5,
"submitted": 3,
"approved": 31
},
"items": [
{
"storeId": "n_184",
"storeName": "Evos Чиланзар",
"status": "draft"
}
]
},
"meta": {
"requestId": "5f0c2b9e-7c1d-4a57-9d43-2f6f5a1f0b3c",
"generatedAt": "2026-11-12T09:30:00.000Z"
},
"page": {
"limit": 50,
"hasMore": false,
"nextCursor": null
}
}/api/public/v1/schedules/weekA store's crew schedule for a week, with its warnings#
get_store_week_scheduleOne store's crew schedule of a week, as the schedule editor shows it. weekStart is any date of the week; period says which week that is. status is not_created (then summary is null and the lists are empty), draft, submitted or approved; readyToApprove says whether the schedule meets the company's accuracy goal, and statusHistory when its status changed. summary is the week: hours.scheduled and hours.recommended are the scheduled hours and the hours the deployment recommends for the forecast, hours.training the training shifts' hours — each the sum of the days — and hours.net the week's hours with each shift's lunch break taken off, the total the week card shows. accuracy (0 to 1) is how well the schedule matches the recommendation, averaged over the open days. Each of days gives the opening hours (open, null when the store is closed), its hours, accuracy, how much of the recommendation the busiest hours get (peakHoursCoverage), the forecast, the sales and transactions per scheduled hour, the number of shifts, and by position the person-hours the recommendation asks for, those missing (shortHours) and those above it (excessHours), half hour by half hour. alerts are the editor's warnings by day, kind and position, with the number of people each concerns: absent (scheduled on a day of absence), day_blocked (a weekday they may not work), night_restricted, over_weekly_hours, overlaps_other_position, and in the certificates mode position_not_certified, training_without_trainer, certificate_expired. positions names the positions the answer mentions. With day (a date of that week), shifts lists that day's shifts: position, periods (times on the clock; endsNextDay past midnight), clock hours, whether it is a training shift and its warnings; without it shifts is null. The people are named only where the company opened «People data» and the credential carries team:read (peopleData says whether they are): then each shift has its employee (id and name), each warning the employees it concerns, and people lists who has shifts this week with their role, number of shifts and clock hours in this store; otherwise nobody is named and the call is not refused. laborCost — the cost of the scheduled and of the recommended hours and their share of the forecast sales — is in summary and in each day only when the credential carries labor_cost:read and the company opened labour cost; laborCost at the top says whether it is. A store that does not exist or lies outside the reach answers 404 STORE_NOT_FOUND.
Query parameters
-
storeIdstringrequiredThe store (search_directoryfinds its id by name). -
weekStartstring · daterequiredA date, any day of the week: reads the store's crew schedule of the company's week that contains it;periodof the answer says which week that is. -
daystring · dateA day of that week: addsshifts, that day's shifts (with who works them only where people data reach the caller). Default: no shifts.
Response 200 { data, meta }
The data field:
-
storeIdstringrequired -
storeNamestringrequired -
periodobjectrequiredFields
-
weekStartstring · daterequired -
weekEndstring · daterequired -
weekNumberintegerrequired -
yearintegerrequired
-
-
statusstringrequired -
readyToApproveboolean | nullrequired -
statusHistoryarray<object>requiredFields
-
statusstringrequired -
atstring · date-timerequired
-
-
laborCostbooleanrequired -
peopleDatabooleanrequired -
summaryobject | nullrequiredFields
-
hoursobjectrequiredFields
-
schedulednumberrequired -
recommendednumberrequired -
trainingnumberrequired -
netnumberrequired
-
-
accuracynumberrequired -
forecastobjectrequiredFields
-
salesnumberrequired -
transactionsnumberrequired
-
-
shiftsintegerrequired -
alertsintegerrequired -
laborCostobjectFields
-
amountnumberrequired -
colnumber | nullrequired -
recommendedAmountnumberrequired -
recommendedColnumber | nullrequired
-
-
-
daysarray<object>requiredFields
-
datestring · daterequired -
weekdaystringrequired -
openobject | nullrequiredFields
-
startstringrequired -
endstringrequired -
startsNextDaybooleanrequired -
endsNextDaybooleanrequired
-
-
hoursobjectrequiredFields
-
schedulednumberrequired -
recommendednumberrequired -
trainingnumberrequired
-
-
accuracynumber | nullrequired -
peakHoursCoveragenumber | nullrequired -
forecastobjectrequiredFields
-
salesnumberrequired -
transactionsnumberrequired
-
-
productivityobjectrequiredFields
-
salesPerHournumberrequired -
transactionsPerHournumberrequired
-
-
shiftsintegerrequired -
positionsarray<object>requiredFields
-
positionIdstringrequired -
recommendedHoursnumberrequired -
shortHoursnumberrequired -
excessHoursnumberrequired
-
-
laborCostobjectFields
-
amountnumberrequired -
colnumber | nullrequired -
recommendedAmountnumberrequired -
recommendedColnumber | nullrequired
-
-
-
alertsarray<object>requiredFields
-
datestring · daterequired -
codestringrequired -
positionIdstring | nullrequired -
peopleintegerrequired -
employeesarray<object>Fields
-
idstringrequired -
namestringrequired
-
-
-
positionsarray<object>requiredFields
-
positionIdstringrequired -
namestringrequired
-
-
shiftsarray<object> | nullrequiredFields
-
positionIdstringrequired -
periodsarray<object>requiredFields
-
startstringrequired -
endstringrequired -
startsNextDaybooleanrequired -
endsNextDaybooleanrequired
-
-
hoursnumberrequired -
trainingbooleanrequired -
alertsarray<string>required -
employeeobjectFields
-
idstringrequired -
namestringrequired
-
-
-
peoplearray<object>Fields
-
employeeIdstringrequired -
namestringrequired -
roleobject | nullrequiredFields
-
idstringrequired -
namestringrequired
-
-
shiftsintegerrequired -
hoursnumberrequired
-
Response headers
RateLimit-LimitHow many calls of this operation's weight the credential may make in a minute.RateLimit-RemainingHow many of them are left in the current minute.RateLimit-ResetSeconds until the current minute ends.
Possible errors 400 401 403 404 429 500 503 504
/api/public/v1/schedules/weekcurl "https://api.proschedule.com/api/public/v1/schedules/week?storeId=n_184&weekStart=2026-11-16&day=2026-11-20" \
-H "Authorization: Bearer $PROSCHEDULE_API_KEY"const response = await fetch("https://api.proschedule.com/api/public/v1/schedules/week?storeId=n_184&weekStart=2026-11-16&day=2026-11-20", {
headers: {
Authorization: `Bearer ${process.env.PROSCHEDULE_API_KEY}`,
},
});
if (!response.ok) throw new Error((await response.json()).code);
const { data, meta } = await response.json();import os
import requests
response = requests.get(
"https://api.proschedule.com/api/public/v1/schedules/week",
params={"storeId": "n_184", "weekStart": "2026-11-16", "day": "2026-11-20"},
headers={"Authorization": f"Bearer {os.environ['PROSCHEDULE_API_KEY']}"},
timeout=30,
)
response.raise_for_status()
body = response.json()
print(body["data"]){
"data": {
"storeId": "n_184",
"storeName": "Evos Чиланзар",
"period": {
"weekStart": "2026-11-16",
"weekEnd": "2026-11-22",
"weekNumber": 47,
"year": 2026
},
"status": "submitted",
"readyToApprove": true,
"statusHistory": [
{
"status": "submitted",
"at": "2026-11-13T15:04:11.000Z"
}
],
"laborCost": false,
"peopleData": true,
"summary": {
"hours": {
"scheduled": 612,
"recommended": 598.5,
"training": 24,
"net": 571
},
"accuracy": 0.9312,
"forecast": {
"sales": 412500000,
"transactions": 9840
},
"shifts": 104,
"alerts": 2
},
"days": [
{
"date": "2026-11-20",
"weekday": "friday",
"open": {
"start": "10:00",
"end": "02:00",
"startsNextDay": false,
"endsNextDay": true
},
"hours": {
"scheduled": 96,
"recommended": 93.5,
"training": 4
},
"accuracy": 0.9205,
"peakHoursCoverage": 0.97,
"forecast": {
"sales": 71200000,
"transactions": 1690
},
"productivity": {
"salesPerHour": 774000,
"transactionsPerHour": 18.37
},
"shifts": 16,
"positions": [
{
"positionId": "pos_cashier",
"recommendedHours": 28,
"shortHours": 2.5,
"excessHours": 0.5
}
]
}
],
"alerts": [
{
"date": "2026-11-20",
"code": "over_weekly_hours",
"positionId": null,
"people": 1,
"employees": [
{
"id": "e_2207",
"name": "Dilnoza Karimova"
}
]
}
],
"positions": [
{
"positionId": "pos_cashier",
"name": "Касса"
}
],
"shifts": [
{
"positionId": "pos_cashier",
"periods": [
{
"start": "17:00",
"end": "02:00",
"startsNextDay": false,
"endsNextDay": true
}
],
"hours": 9,
"training": false,
"alerts": [
"over_weekly_hours"
],
"employee": {
"id": "e_2207",
"name": "Dilnoza Karimova"
}
}
],
"people": [
{
"employeeId": "e_2207",
"name": "Dilnoza Karimova",
"role": {
"id": "3",
"name": "Crew"
},
"shifts": 6,
"hours": 51
}
]
},
"meta": {
"requestId": "5f0c2b9e-7c1d-4a57-9d43-2f6f5a1f0b3c",
"generatedAt": "2026-11-12T09:30:00.000Z"
}
}Team development#
The team development section: the action plans of the stores, as counters; and the actions one by one with the people they are for — data about people, open only where the company switched «People data» on.
/api/public/v1/team-development/action-plans/summaryAction plans by store, as counters#
get_action_plan_summaryThe action plans of the team development section, as counters by store: how many actions each store has on its plan for a month, and how many of them are planned, in progress, done, cancelled and overdue. It names no person and returns no text of an action — numbers only. month (YYYY-MM) is the month of the plans; left out, it is the current month, and month of the answer says which. A month's plan holds every action planned in that month or earlier and not closed before it, so an unfinished action is on the plan of every later month too: carriedOver counts the actions planned in an earlier month. The statuses are today's, also on the plan of a past month: doneInMonth and cancelledInMonth were closed in that very month, closedLater in a later one, planned and inProgress are still open. planned + inProgress + doneInMonth + cancelledInMonth + closedLater = total. overdue is part of planned + inProgress: the open actions whose deadline is before asOf, today by UTC. An action is on the plan of the store its person works in now; the actions of people who have left are not counted. Every store of the credential's reach is listed, with zeros when it has no actions. summary adds up the whole reach — or what is below nodeId, when given — whatever the page: stores of them, storesWithActions with at least one action on the plan. Stores are ordered by name, 50 per page (limit up to 200; pass page.nextCursor as cursor for the next page). A nodeId that does not exist or lies outside the reach answers 404 NODE_NOT_FOUND.
Query parameters
-
monthstringThe month of the plans (YYYY-MM). Default: the current month —monthof the answer says which. -
nodeIdstringKeeps the stores below this structure node. -
limitintegerThe size of a page. -
cursorstringpage.nextCursorof the page before; leave it out for the first page. A cursor belongs to its list and to the other parameters it was made with.
Response 200 { data, meta, page }
The data field:
-
monthstringrequired -
asOfstring · daterequired -
summaryobjectrequiredFields
-
storesintegerrequired -
storesWithActionsintegerrequired -
totalintegerrequired -
plannedintegerrequired -
inProgressintegerrequired -
doneInMonthintegerrequired -
cancelledInMonthintegerrequired -
closedLaterintegerrequired -
overdueintegerrequired -
carriedOverintegerrequired
-
-
itemsarray<object>requiredFields
-
storeIdstringrequired -
storeNamestringrequired -
totalintegerrequired -
plannedintegerrequired -
inProgressintegerrequired -
doneInMonthintegerrequired -
cancelledInMonthintegerrequired -
closedLaterintegerrequired -
overdueintegerrequired -
carriedOverintegerrequired
-
Response headers
RateLimit-LimitHow many calls of this operation's weight the credential may make in a minute.RateLimit-RemainingHow many of them are left in the current minute.RateLimit-ResetSeconds until the current minute ends.LinkThe address of the next page,<…>; rel="next", while the list has more.
Possible errors 400 401 403 404 429 500 503 504
/api/public/v1/team-development/action-plans/summarycurl "https://api.proschedule.com/api/public/v1/team-development/action-plans/summary?month=2026-11" \
-H "Authorization: Bearer $PROSCHEDULE_API_KEY"const response = await fetch("https://api.proschedule.com/api/public/v1/team-development/action-plans/summary?month=2026-11", {
headers: {
Authorization: `Bearer ${process.env.PROSCHEDULE_API_KEY}`,
},
});
if (!response.ok) throw new Error((await response.json()).code);
const { data, meta, page } = await response.json();import os
import requests
response = requests.get(
"https://api.proschedule.com/api/public/v1/team-development/action-plans/summary",
params={"month": "2026-11"},
headers={"Authorization": f"Bearer {os.environ['PROSCHEDULE_API_KEY']}"},
timeout=30,
)
response.raise_for_status()
body = response.json()
print(body["data"]){
"data": {
"month": "2026-11",
"asOf": "2026-11-18",
"summary": {
"stores": 34,
"storesWithActions": 29,
"total": 212,
"planned": 48,
"inProgress": 61,
"doneInMonth": 97,
"cancelledInMonth": 6,
"closedLater": 0,
"overdue": 31,
"carriedOver": 74
},
"items": [
{
"storeId": "n_184",
"storeName": "Evos Чиланзар",
"total": 9,
"planned": 2,
"inProgress": 3,
"doneInMonth": 4,
"cancelledInMonth": 0,
"closedLater": 0,
"overdue": 2,
"carriedOver": 3
}
]
},
"meta": {
"requestId": "5f0c2b9e-7c1d-4a57-9d43-2f6f5a1f0b3c",
"generatedAt": "2026-11-12T09:30:00.000Z"
},
"page": {
"limit": 50,
"hasMore": false,
"nextCursor": null
}
}/api/public/v1/team-development/action-itemsActions of the team development plans#
list_action_itemsThe actions on the stores' team development plans of a month, one by one — the action-plan tab of each store: the person the action is for (id and name), its text, its deadline and state, and who carries it out. month (YYYY-MM) defaults to the current month by UTC. An action is on a month's plan from the month it was planned in until the month it was closed in. text is the action's title, at most 120 characters (textCut says it was cut); the details written under it are never returned. overdue is an open action whose deadline has passed as of asOf (the UTC day); carriedOver, one planned in an earlier month; closedMonth, the month a done or cancelled action was closed in. An action is on the plan of the store its person works in now. status narrows the list (open, overdue or a state). summary.items counts the whole list, whatever the page. Ordered by store name, then the person's name; 50 per page (limit up to 200; pass page.nextCursor as cursor for the next page). For the counters by store without people, use get_action_plan_summary. This is data about people: it needs the scopes team_development:read and team:read and the company's «People data» switched on — otherwise 403 DATA_CATEGORY_DISABLED. A nodeId that does not exist or lies outside the reach answers 404 NODE_NOT_FOUND.
Query parameters
-
monthstringThe month of the plans (YYYY-MM). Default: the current month by UTC —monthof the answer says which. -
nodeIdstringKeeps the actions of the people of the stores below this structure node — or of this store. -
statusstringKeeps the actions in this state:planned,in_progress,done,cancelled;open(planned or in progress) oroverdue(open, the deadline passed). Default: every action of the month's plans. -
limitintegerThe size of a page. -
cursorstringpage.nextCursorof the page before; leave it out for the first page. A cursor belongs to its list and to the other parameters it was made with.
Response 200 { data, meta, page }
The data field:
-
monthstringrequired -
asOfstring · daterequired -
summaryobjectrequiredFields
-
itemsintegerrequired
-
-
itemsarray<object>requiredFields
-
idstringrequired -
storeIdstringrequired -
storeNamestringrequired -
employeeobjectrequiredFields
-
idstringrequired -
namestringrequired
-
-
textstringrequired -
textCutbooleanrequired -
deadlinestring · date | nullrequired -
statusstringrequired -
overduebooleanrequired -
carriedOverbooleanrequired -
closedMonthstring | nullrequired -
assigneeobject | nullrequiredFields
-
idstringrequired -
namestringrequired
-
-
Response headers
RateLimit-LimitHow many calls of this operation's weight the credential may make in a minute.RateLimit-RemainingHow many of them are left in the current minute.RateLimit-ResetSeconds until the current minute ends.LinkThe address of the next page,<…>; rel="next", while the list has more.
Possible errors 400 401 403 404 429 500 503 504
/api/public/v1/team-development/action-itemscurl "https://api.proschedule.com/api/public/v1/team-development/action-items?month=2026-11&status=open" \
-H "Authorization: Bearer $PROSCHEDULE_API_KEY"const response = await fetch("https://api.proschedule.com/api/public/v1/team-development/action-items?month=2026-11&status=open", {
headers: {
Authorization: `Bearer ${process.env.PROSCHEDULE_API_KEY}`,
},
});
if (!response.ok) throw new Error((await response.json()).code);
const { data, meta, page } = await response.json();import os
import requests
response = requests.get(
"https://api.proschedule.com/api/public/v1/team-development/action-items",
params={"month": "2026-11", "status": "open"},
headers={"Authorization": f"Bearer {os.environ['PROSCHEDULE_API_KEY']}"},
timeout=30,
)
response.raise_for_status()
body = response.json()
print(body["data"]){
"data": {
"month": "2026-11",
"asOf": "2026-11-20",
"summary": {
"items": 23
},
"items": [
{
"id": "act_5521",
"storeId": "n_184",
"storeName": "Evos Чиланзар",
"employee": {
"id": "e_2207",
"name": "Dilnoza Karimova"
},
"text": "Пройти обучение на кухне и сдать сертификацию до конца месяца",
"textCut": false,
"deadline": "2026-11-15",
"status": "in_progress",
"overdue": true,
"carriedOver": false,
"closedMonth": null,
"assignee": {
"id": "e_1044",
"name": "Javlon Rahimov"
}
}
]
},
"meta": {
"requestId": "5f0c2b9e-7c1d-4a57-9d43-2f6f5a1f0b3c",
"generatedAt": "2026-11-12T09:30:00.000Z"
},
"page": {
"limit": 50,
"hasMore": false,
"nextCursor": null
}
}Reports#
The heavy reports of the dashboards: labour, managers' hours, sales and productivity by structure node.
/api/public/v1/reports/laborLabour report: hours, sales, productivity and COL#
get_labor_reportThe labour report of the crew dashboard for a period: for a structure node and each of its direct children, the hours, sales and productivity on three bases — forecast (what the sales forecast calls for), deployment (what the schedules plan) and fact (what was worked) — the same figures the dashboard shows for the same period. from and to (YYYY-MM-DD) are both included, at most 62 days apart. summary is the node itself — nodeId, or the whole company (kind: company, no id) for a credential that sees all of it — and items are its direct children, nodes and stores. Without nodeId, a credential that sees only part of the company gets no summary and its top reach nodes as items. A nodeId that does not exist or lies outside the reach answers 404 NODE_NOT_FOUND. hours are all crew hours, nohHours the non-operational hours among them, trainingHours the training hours of the schedules. sales.forecast is the sales forecast of the period, sales.fact the sales. spmh is sales per man-hour, tplh transactions per labour hour, iplh items per labour hour, all over productive hours. accuracy (0 to 1) is how closely the schedules' staffing follows, slot by slot, what the sales forecast calls for, averaged over the open days. hoursCapacity is the hours the stores' teams can work in the period by their weekly hour limits, null when unknown. laborCost — COL as a fraction of sales (col) and the cost in money of the company's currency (amount), for the crew and for the managers — is in the answer only when the credential carries labor_cost:read and the company opened labour cost; laborCost at the top says whether it is. deployment COL divides by the forecast sales, deploymentVsFactSales by the fact sales. factShifts picks whether the fact counts approved shifts only (default) or the pending edits too. The report is computed for the whole company and kept for 60 seconds: computedAt says when it was computed. Heavy: allow several seconds for an answer.
Query parameters
-
fromstring · daterequiredThe first day of the period (YYYY-MM-DD), included. -
tostring · daterequiredThe last day of the period (YYYY-MM-DD), included. At most 62 days fromfrom. -
nodeIdstringThe structure node to report on, with its direct children asitems. Default: the company for a credential that sees all of it; otherwise the top nodes of the credential's reach. -
factShiftsstringWhich fact shifts the fact figures count:approved(default, as the dashboard shows them) orwith_pending— the pending edits too.
Response 200 { data, meta }
The data field:
-
fromstring · daterequired -
tostring · daterequired -
factShiftsstringrequired -
computedAtstring · date-timerequired -
laborCostbooleanrequired -
summaryobject | nullrequiredFields
-
nodeIdstring | nullrequired -
namestring | nullrequired -
kindstringrequired -
salesobjectrequiredFields
-
forecastnumberrequired -
factnumberrequired
-
-
transactionsobjectrequiredFields
-
forecastnumberrequired -
factnumberrequired
-
-
hoursobjectrequiredFields
-
forecastnumberrequired -
deploymentnumberrequired -
factnumberrequired
-
-
nohHoursobjectrequiredFields
-
forecastnumberrequired -
deploymentnumberrequired -
factnumberrequired
-
-
trainingHoursnumberrequired -
hoursCapacitynumber | nullrequired -
spmhobjectrequiredFields
-
forecastnumberrequired -
deploymentnumberrequired -
factnumberrequired
-
-
tplhobjectrequiredFields
-
forecastnumberrequired -
deploymentnumberrequired -
factnumberrequired
-
-
iplhobjectrequiredFields
-
forecastnumberrequired -
deploymentnumberrequired -
factnumberrequired
-
-
accuracynumberrequired -
laborCostobjectFields
-
crewobjectrequiredFields
-
colobjectrequiredFields
-
forecastnumberrequired -
deploymentnumberrequired -
deploymentVsFactSalesnumberrequired -
factnumberrequired
-
-
amountobjectrequiredFields
-
forecastnumberrequired -
deploymentnumberrequired -
factnumberrequired
-
-
-
managersobjectrequiredFields
-
colobjectrequiredFields
-
forecastnumberrequired -
deploymentnumberrequired -
deploymentVsFactSalesnumberrequired -
factnumberrequired
-
-
amountobjectrequiredFields
-
forecastnumberrequired -
deploymentnumberrequired -
factnumberrequired
-
-
-
-
-
itemsarray<object>requiredFields
-
nodeIdstring | nullrequired -
namestring | nullrequired -
kindstringrequired -
salesobjectrequiredFields
-
forecastnumberrequired -
factnumberrequired
-
-
transactionsobjectrequiredFields
-
forecastnumberrequired -
factnumberrequired
-
-
hoursobjectrequiredFields
-
forecastnumberrequired -
deploymentnumberrequired -
factnumberrequired
-
-
nohHoursobjectrequiredFields
-
forecastnumberrequired -
deploymentnumberrequired -
factnumberrequired
-
-
trainingHoursnumberrequired -
hoursCapacitynumber | nullrequired -
spmhobjectrequiredFields
-
forecastnumberrequired -
deploymentnumberrequired -
factnumberrequired
-
-
tplhobjectrequiredFields
-
forecastnumberrequired -
deploymentnumberrequired -
factnumberrequired
-
-
iplhobjectrequiredFields
-
forecastnumberrequired -
deploymentnumberrequired -
factnumberrequired
-
-
accuracynumberrequired -
laborCostobjectFields
-
crewobjectrequiredFields
-
colobjectrequiredFields
-
forecastnumberrequired -
deploymentnumberrequired -
deploymentVsFactSalesnumberrequired -
factnumberrequired
-
-
amountobjectrequiredFields
-
forecastnumberrequired -
deploymentnumberrequired -
factnumberrequired
-
-
-
managersobjectrequiredFields
-
colobjectrequiredFields
-
forecastnumberrequired -
deploymentnumberrequired -
deploymentVsFactSalesnumberrequired -
factnumberrequired
-
-
amountobjectrequiredFields
-
forecastnumberrequired -
deploymentnumberrequired -
factnumberrequired
-
-
-
-
Response headers
RateLimit-LimitHow many calls of this operation's weight the credential may make in a minute.RateLimit-RemainingHow many of them are left in the current minute.RateLimit-ResetSeconds until the current minute ends.
Possible errors 400 401 403 404 429 500 503 504
/api/public/v1/reports/laborcurl "https://api.proschedule.com/api/public/v1/reports/labor?from=2026-11-02&to=2026-11-08" \
-H "Authorization: Bearer $PROSCHEDULE_API_KEY"const response = await fetch("https://api.proschedule.com/api/public/v1/reports/labor?from=2026-11-02&to=2026-11-08", {
headers: {
Authorization: `Bearer ${process.env.PROSCHEDULE_API_KEY}`,
},
});
if (!response.ok) throw new Error((await response.json()).code);
const { data, meta } = await response.json();import os
import requests
response = requests.get(
"https://api.proschedule.com/api/public/v1/reports/labor",
params={"from": "2026-11-02", "to": "2026-11-08"},
headers={"Authorization": f"Bearer {os.environ['PROSCHEDULE_API_KEY']}"},
timeout=30,
)
response.raise_for_status()
body = response.json()
print(body["data"]){
"data": {
"from": "2026-11-02",
"to": "2026-11-08",
"factShifts": "approved",
"computedAt": "2026-11-09T07:12:41.000Z",
"laborCost": true,
"summary": {
"nodeId": "n_12",
"name": "Ташкент",
"kind": "node",
"sales": {
"forecast": 1840000000,
"fact": 1912500000
},
"transactions": {
"forecast": 41200,
"fact": 42870
},
"hours": {
"forecast": 9640,
"deployment": 9812,
"fact": 9705
},
"nohHours": {
"forecast": 410,
"deployment": 422,
"fact": 431
},
"trainingHours": 186,
"hoursCapacity": 11200,
"spmh": {
"forecast": 199500,
"deployment": 196100,
"fact": 205300
},
"tplh": {
"forecast": 4.47,
"deployment": 4.39,
"fact": 4.6
},
"iplh": {
"forecast": 11.9,
"deployment": 11.7,
"fact": 12.2
},
"accuracy": 0.94,
"laborCost": {
"crew": {
"col": {
"forecast": 0.118,
"deployment": 0.121,
"deploymentVsFactSales": 0.116,
"fact": 0.117
},
"amount": {
"forecast": 217120000,
"deployment": 222640000,
"fact": 223760000
}
},
"managers": {
"col": {
"forecast": 0.031,
"deployment": 0.031,
"deploymentVsFactSales": 0.03,
"fact": 0.03
},
"amount": {
"forecast": 57040000,
"deployment": 57040000,
"fact": 57380000
}
}
}
},
"items": []
},
"meta": {
"requestId": "5f0c2b9e-7c1d-4a57-9d43-2f6f5a1f0b3c",
"generatedAt": "2026-11-12T09:30:00.000Z"
}
}/api/public/v1/reports/managersManagers report: hours against the norm, sales and COL#
get_managers_reportThe managers dashboard for a month: for a structure node and each of its direct children, the managers' hours — scheduled in the month's managers' schedules, the norm of the norm calendar for the same people and fact worked — the same figures the dashboard shows. month (YYYY-MM) defaults to the current month by UTC; month of the answer says which. overNormHours and underNormHours add up, manager by manager, how far each one's scheduled hours are above or below their own norm (so they do not cancel out between people); overHoursYearToDate is the overtime of the year so far. sales.plan is the month's sales plan, sales.fact the sales. accuracy (0 to 1) is how well the managers' schedules cover the days, averaged over the days that could be judged. summary is the node itself — nodeId, or the whole company (kind: company, no id) for a credential that sees all of it — and items are its direct children, nodes and stores. Without nodeId, a credential that sees only part of the company gets no summary and its top reach nodes as items. A nodeId that does not exist or lies outside the reach answers 404 NODE_NOT_FOUND. laborCost.col — the managers' labour cost as a fraction of sales on each basis (scheduled and norm over the sales plan, normVsFactSales and fact over the sales) — is in the answer only when the credential carries labor_cost:read and the company opened labour cost; laborCost at the top says whether it is. factShifts picks whether the fact counts approved shifts only (default) or the pending edits too. The report is computed for the whole company and kept for 60 seconds: computedAt says when it was computed. Heavy: allow several seconds for an answer.
Query parameters
-
monthstringThe month of the report (YYYY-MM). Default: the current month by UTC —monthof the answer says which. -
nodeIdstringThe structure node to report on, with its direct children asitems. Default: the company for a credential that sees all of it; otherwise the top nodes of the credential's reach. -
factShiftsstringWhich fact shifts the fact hours count:approved(default, as the dashboard shows them) orwith_pending— the pending edits too.
Response 200 { data, meta }
The data field:
-
monthstringrequired -
factShiftsstringrequired -
computedAtstring · date-timerequired -
laborCostbooleanrequired -
summaryobject | nullrequiredFields
-
nodeIdstring | nullrequired -
namestring | nullrequired -
kindstringrequired -
hoursobjectrequiredFields
-
schedulednumberrequired -
normnumberrequired -
factnumberrequired
-
-
overNormHoursnumberrequired -
underNormHoursnumberrequired -
overHoursYearToDatenumberrequired -
salesobjectrequiredFields
-
plannumberrequired -
factnumberrequired
-
-
accuracynumberrequired -
laborCostobjectFields
-
colobjectrequiredFields
-
schedulednumberrequired -
normnumberrequired -
normVsFactSalesnumberrequired -
factnumberrequired
-
-
-
-
itemsarray<object>requiredFields
-
nodeIdstring | nullrequired -
namestring | nullrequired -
kindstringrequired -
hoursobjectrequiredFields
-
schedulednumberrequired -
normnumberrequired -
factnumberrequired
-
-
overNormHoursnumberrequired -
underNormHoursnumberrequired -
overHoursYearToDatenumberrequired -
salesobjectrequiredFields
-
plannumberrequired -
factnumberrequired
-
-
accuracynumberrequired -
laborCostobjectFields
-
colobjectrequiredFields
-
schedulednumberrequired -
normnumberrequired -
normVsFactSalesnumberrequired -
factnumberrequired
-
-
-
Response headers
RateLimit-LimitHow many calls of this operation's weight the credential may make in a minute.RateLimit-RemainingHow many of them are left in the current minute.RateLimit-ResetSeconds until the current minute ends.
Possible errors 400 401 403 404 429 500 503 504
/api/public/v1/reports/managerscurl "https://api.proschedule.com/api/public/v1/reports/managers?month=2026-11" \
-H "Authorization: Bearer $PROSCHEDULE_API_KEY"const response = await fetch("https://api.proschedule.com/api/public/v1/reports/managers?month=2026-11", {
headers: {
Authorization: `Bearer ${process.env.PROSCHEDULE_API_KEY}`,
},
});
if (!response.ok) throw new Error((await response.json()).code);
const { data, meta } = await response.json();import os
import requests
response = requests.get(
"https://api.proschedule.com/api/public/v1/reports/managers",
params={"month": "2026-11"},
headers={"Authorization": f"Bearer {os.environ['PROSCHEDULE_API_KEY']}"},
timeout=30,
)
response.raise_for_status()
body = response.json()
print(body["data"]){
"data": {
"month": "2026-11",
"factShifts": "approved",
"computedAt": "2026-11-18T07:12:41.000Z",
"laborCost": false,
"summary": {
"nodeId": "n_12",
"name": "Ташкент",
"kind": "node",
"hours": {
"scheduled": 6240,
"norm": 6120,
"fact": 4310
},
"overNormHours": 186,
"underNormHours": 66,
"overHoursYearToDate": 412,
"sales": {
"plan": 7900000000,
"fact": 5120000000
},
"accuracy": 0.91
},
"items": []
},
"meta": {
"requestId": "5f0c2b9e-7c1d-4a57-9d43-2f6f5a1f0b3c",
"generatedAt": "2026-11-12T09:30:00.000Z"
}
}Time sheets#
The stores' time sheets: their approval by level and the edits that wait for a decision; and the time sheet by person, which is data about people — open only where the company switched «People data» on.
/api/public/v1/timesheets/approvalsTime sheet approval by store#
get_timesheet_approval_statusWhere the stores' time sheets of a month stand: for every store of the credential's reach, the approval levels that signed the month (or cancelled their signature) and how many edits of worked shifts still wait for a decision. It names no person — no approver, no employee. month (YYYY-MM) defaults to the current month by UTC; month of the answer says which. A time sheet is approved level by level: level 1 is the first rung, 2 and 3 the rungs above, as the company's roles are set up; a rung signs only while no rung above it has. In levels, approved is the rung's current state, changedOn the day it last changed and approvedThrough the last day of the month its signature covers (either null when it was not recorded). highestApprovedLevel is the highest rung that stands approved, null when none does. pendingEdits counts the shifts of the month whose last edit waits for approval. Every store of the reach is listed, also one with no approval yet. summary counts the whole reach — or what is below nodeId, when given — whatever the page: the stores by their highest approved rung, and the pending edits. Stores are ordered by name, 50 per page (limit up to 200; pass page.nextCursor as cursor for the next page). A nodeId that does not exist or lies outside the reach answers 404 NODE_NOT_FOUND.
Query parameters
-
monthstringThe month of the time sheets (YYYY-MM). Default: the current month by UTC —monthof the answer says which. -
nodeIdstringKeeps the stores below this structure node. -
limitintegerThe size of a page. -
cursorstringpage.nextCursorof the page before; leave it out for the first page. A cursor belongs to its list and to the other parameters it was made with.
Response 200 { data, meta, page }
The data field:
-
monthstringrequired -
summaryobjectrequiredFields
-
storesintegerrequired -
byHighestApprovedLevelobjectrequiredFields
-
noneintegerrequired -
level1integerrequired -
level2integerrequired -
level3integerrequired
-
-
pendingEditsintegerrequired
-
-
itemsarray<object>requiredFields
-
storeIdstringrequired -
storeNamestringrequired -
highestApprovedLevel1 | 2 | 3 | nullrequired -
levelsarray<object>requiredFields
-
level1 | 2 | 3required -
approvedbooleanrequired -
changedOnstring · date | nullrequired -
approvedThroughstring · date | nullrequired
-
-
pendingEditsintegerrequired
-
Response headers
RateLimit-LimitHow many calls of this operation's weight the credential may make in a minute.RateLimit-RemainingHow many of them are left in the current minute.RateLimit-ResetSeconds until the current minute ends.LinkThe address of the next page,<…>; rel="next", while the list has more.
Possible errors 400 401 403 404 429 500 503 504
/api/public/v1/timesheets/approvalscurl "https://api.proschedule.com/api/public/v1/timesheets/approvals?month=2026-10" \
-H "Authorization: Bearer $PROSCHEDULE_API_KEY"const response = await fetch("https://api.proschedule.com/api/public/v1/timesheets/approvals?month=2026-10", {
headers: {
Authorization: `Bearer ${process.env.PROSCHEDULE_API_KEY}`,
},
});
if (!response.ok) throw new Error((await response.json()).code);
const { data, meta, page } = await response.json();import os
import requests
response = requests.get(
"https://api.proschedule.com/api/public/v1/timesheets/approvals",
params={"month": "2026-10"},
headers={"Authorization": f"Bearer {os.environ['PROSCHEDULE_API_KEY']}"},
timeout=30,
)
response.raise_for_status()
body = response.json()
print(body["data"]){
"data": {
"month": "2026-10",
"summary": {
"stores": 34,
"byHighestApprovedLevel": {
"none": 6,
"level1": 19,
"level2": 9,
"level3": 0
},
"pendingEdits": 41
},
"items": [
{
"storeId": "n_184",
"storeName": "Evos Чиланзар",
"highestApprovedLevel": 2,
"levels": [
{
"level": 1,
"approved": true,
"changedOn": "2026-11-02",
"approvedThrough": "2026-10-31"
},
{
"level": 2,
"approved": true,
"changedOn": "2026-11-04",
"approvedThrough": "2026-10-31"
}
],
"pendingEdits": 0
}
]
},
"meta": {
"requestId": "5f0c2b9e-7c1d-4a57-9d43-2f6f5a1f0b3c",
"generatedAt": "2026-11-12T09:30:00.000Z"
},
"page": {
"limit": 50,
"hasMore": false,
"nextCursor": null
}
}/api/public/v1/timesheetsTime sheet by person#
get_timesheetThe stores' time sheet for a period of at most 31 days (from–to, both included), as the time sheet page counts it: the worked shifts recorded in the stores of the credential's reach — or below nodeId (a store's own id keeps that store) — each under the store it was worked in, borrowed staff included, people who have left since included. Hours count only the APPROVED part of a shift: a shift whose edit waits for a decision or was rejected is counted in shifts and adds no hours, and a shift booked before the person's hire date adds none either. view=summary (default) answers people: one row per person and store with the shifts by status and the hours added up — worked hours, of them night, holiday and holiday-night hours, and the breaks deducted, to the hundredth. view=shifts answers shifts: one row per shift with its day, its times on the clock (startsNextDay / endsNextDay when they fall after midnight), its status and its hours. Ordered by store name, then person name (summary) or day and start (shifts); 50 rows per page (limit up to 200; pass page.nextCursor as cursor for the next page). No contact, no rate, no pay. This is data about people: it needs the scope timesheets:read and the company's «People data» switched on — otherwise 403 DATA_CATEGORY_DISABLED (the approval of the time sheets by store, get_timesheet_approval_status, needs no such switch). A nodeId that does not exist or lies outside the reach answers 404 NODE_NOT_FOUND; a longer period, 422 PERIOD_TOO_LONG.
Query parameters
-
fromstring · daterequiredThe first day of the period (YYYY-MM-DD), included. -
tostring · daterequiredThe last day of the period (YYYY-MM-DD), included. At most 31 days fromfrom. -
nodeIdstringKeeps the stores below this structure node — or this store. -
viewstringsummary(default): one row per person and store with the shifts counted and the hours added up.shifts: one row per worked shift. -
limitintegerThe size of a page. -
cursorstringpage.nextCursorof the page before; leave it out for the first page. A cursor belongs to its list and to the other parameters it was made with.
Response 200 { data, meta, page }
The data field:
-
fromstring · daterequired -
tostring · daterequired -
viewstringrequired -
peoplearray<object>Withview=summary.Fields
-
storeIdstringrequired -
storeNamestringrequired -
employeeIdstringrequired -
namestringrequired -
roleobject | nullrequiredFields
-
idstringrequired -
namestringrequired
-
-
shiftsobjectrequiredFields
-
totalintegerrequired -
approvedintegerrequired -
pendingintegerrequired -
rejectedintegerrequired
-
-
hoursobjectrequiredHours of the APPROVED part, as the time sheet counts them: worked hours, of them at night, on holidays, on holiday nights; and the breaks deducted.Fields
-
workednumberrequired -
nightnumberrequired -
holidaynumberrequired -
holidayNightnumberrequired -
breaksnumberrequired
-
-
-
shiftsarray<object>Withview=shifts.Fields
-
shiftIdstringrequired -
datestring · daterequired -
storeIdstringrequired -
storeNamestringrequired -
employeeIdstringrequired -
namestringrequired -
startstringrequired -
endstringrequired -
startsNextDaybooleanrequired -
endsNextDaybooleanrequired -
statusstringrequired -
beforeHireDatebooleanrequired -
hoursobjectrequiredHours of the APPROVED part, as the time sheet counts them: worked hours, of them at night, on holidays, on holiday nights; and the breaks deducted.Fields
-
workednumberrequired -
nightnumberrequired -
holidaynumberrequired -
holidayNightnumberrequired -
breaksnumberrequired
-
-
Response headers
RateLimit-LimitHow many calls of this operation's weight the credential may make in a minute.RateLimit-RemainingHow many of them are left in the current minute.RateLimit-ResetSeconds until the current minute ends.LinkThe address of the next page,<…>; rel="next", while the list has more.
Possible errors 400 401 403 404 429 500 503 504
/api/public/v1/timesheetscurl "https://api.proschedule.com/api/public/v1/timesheets?from=2026-11-01&to=2026-11-15" \
-H "Authorization: Bearer $PROSCHEDULE_API_KEY"const response = await fetch("https://api.proschedule.com/api/public/v1/timesheets?from=2026-11-01&to=2026-11-15", {
headers: {
Authorization: `Bearer ${process.env.PROSCHEDULE_API_KEY}`,
},
});
if (!response.ok) throw new Error((await response.json()).code);
const { data, meta, page } = await response.json();import os
import requests
response = requests.get(
"https://api.proschedule.com/api/public/v1/timesheets",
params={"from": "2026-11-01", "to": "2026-11-15"},
headers={"Authorization": f"Bearer {os.environ['PROSCHEDULE_API_KEY']}"},
timeout=30,
)
response.raise_for_status()
body = response.json()
print(body["data"]){
"data": {
"from": "2026-11-01",
"to": "2026-11-15",
"view": "summary",
"people": [
{
"storeId": "n_184",
"storeName": "Evos Чиланзар",
"employeeId": "e_2207",
"name": "Dilnoza Karimova",
"role": {
"id": "1",
"name": "Crew"
},
"shifts": {
"total": 11,
"approved": 10,
"pending": 1,
"rejected": 0
},
"hours": {
"worked": 86.5,
"night": 12,
"holiday": 0,
"holidayNight": 0,
"breaks": 5
}
}
]
},
"meta": {
"requestId": "5f0c2b9e-7c1d-4a57-9d43-2f6f5a1f0b3c",
"generatedAt": "2026-11-12T09:30:00.000Z"
},
"page": {
"limit": 50,
"hasMore": false,
"nextCursor": null
}
}Team#
The stores' people: their absences. Data about people — open only where the company switched «People data» on, and only to a credential with team:read.
/api/public/v1/absencesAbsences of the stores' people#
get_absencesWho of the stores' people is absent in a period: every absence recorded on an employee's card that overlaps from–to (both included, at most 92 days), for the people of the stores of the credential's reach — or of the stores below nodeId (a store's own id keeps that store). People are those a store has today: not dismissed, and not hidden by the company. Each item is one period as the card stores it — from and to are its own first and last day and may reach outside the period asked for — with the person's id, name and store. kind is vacation for a vacation and absence for every other kind: sick leave and the company's own kinds are not told apart, and the reason or a note is never returned. summary counts the whole reach (or what is below nodeId), whatever the page: the absences and the people they belong to. Ordered by the first day, 50 per page (limit up to 200; pass page.nextCursor as cursor for the next page). This is data about people: it needs the scope team:read and the company's «People data» switched on — otherwise 403 DATA_CATEGORY_DISABLED. A nodeId that does not exist or lies outside the reach answers 404 NODE_NOT_FOUND; a longer period, 422 PERIOD_TOO_LONG.
Query parameters
-
fromstring · daterequiredThe first day of the period (YYYY-MM-DD), included. -
tostring · daterequiredThe last day of the period (YYYY-MM-DD), included. At most 92 days fromfrom. -
nodeIdstringKeeps the people of the stores below this structure node — or of this store. -
limitintegerThe size of a page. -
cursorstringpage.nextCursorof the page before; leave it out for the first page. A cursor belongs to its list and to the other parameters it was made with.
Response 200 { data, meta, page }
The data field:
-
fromstring · daterequired -
tostring · daterequired -
summaryobjectrequiredFields
-
absencesintegerrequired -
peopleintegerrequired
-
-
itemsarray<object>requiredFields
-
storeIdstringrequired -
storeNamestringrequired -
employeeIdstringrequired -
namestringrequired -
fromstring · daterequired -
tostring · daterequired -
kindstringrequired
-
Response headers
RateLimit-LimitHow many calls of this operation's weight the credential may make in a minute.RateLimit-RemainingHow many of them are left in the current minute.RateLimit-ResetSeconds until the current minute ends.LinkThe address of the next page,<…>; rel="next", while the list has more.
Possible errors 400 401 403 404 429 500 503 504
/api/public/v1/absencescurl "https://api.proschedule.com/api/public/v1/absences?from=2026-11-01&to=2026-11-30" \
-H "Authorization: Bearer $PROSCHEDULE_API_KEY"const response = await fetch("https://api.proschedule.com/api/public/v1/absences?from=2026-11-01&to=2026-11-30", {
headers: {
Authorization: `Bearer ${process.env.PROSCHEDULE_API_KEY}`,
},
});
if (!response.ok) throw new Error((await response.json()).code);
const { data, meta, page } = await response.json();import os
import requests
response = requests.get(
"https://api.proschedule.com/api/public/v1/absences",
params={"from": "2026-11-01", "to": "2026-11-30"},
headers={"Authorization": f"Bearer {os.environ['PROSCHEDULE_API_KEY']}"},
timeout=30,
)
response.raise_for_status()
body = response.json()
print(body["data"]){
"data": {
"from": "2026-11-01",
"to": "2026-11-30",
"summary": {
"absences": 12,
"people": 11
},
"items": [
{
"storeId": "n_184",
"storeName": "Evos Чиланзар",
"employeeId": "e_2207",
"name": "Dilnoza Karimova",
"from": "2026-10-27",
"to": "2026-11-09",
"kind": "vacation"
},
{
"storeId": "n_184",
"storeName": "Evos Чиланзар",
"employeeId": "e_2319",
"name": "Javlon Rahimov",
"from": "2026-11-03",
"to": "2026-11-05",
"kind": "absence"
}
]
},
"meta": {
"requestId": "5f0c2b9e-7c1d-4a57-9d43-2f6f5a1f0b3c",
"generatedAt": "2026-11-12T09:30:00.000Z"
},
"page": {
"limit": 50,
"hasMore": false,
"nextCursor": null
}
}Sales planning#
Planning a month of sales: the planning dataset of the stores and the plans with their figures. Open only where the company switched «Sales planning» on, under its own consent.
/api/public/v1/sales-plans/datasetSales planning dataset#
get_sales_planning_datasetWhat a model needs to plan a month of sales for the stores of the credential's reach — or the stores below nodeId (a store's own id keeps that store): each store's name, its path in the structure, concept, location and opening hours by weekday (a store with no hours on record counts as open all day); its last day with sales; the mean daily sales by weekday over the last 8 complete weeks (the profile a monthly total is split by); and the revenue forecast already stored for month, summed (daysFilled = the days that have one). monthlySales holds the complete months with sales of the last 24 months and the same month one and two years before month; weeklySales the last 8 complete weeks (weekStart is a Monday). calendar gives the company's closed days and holidays of month. Money is in whole currency units; no person is named. month is the current month (UTC) or one of the next 12 — otherwise 422 INVALID_PERIOD; at most 60 stores per call — more is 422 TOO_MANY_STORES (plan by structure node). A nodeId that does not exist or lies outside the reach answers 404 NODE_NOT_FOUND. Needs the scope sales_plans:read and the company's «Sales planning» switched on — otherwise 403 DATA_CATEGORY_DISABLED.
Query parameters
-
monthstring · regexrequiredThe month to plan,YYYY-MM: the current month (UTC) or one of the next 12. -
nodeIdstringKeeps the stores below this structure node — or this store. Absent: every store of the reach.
Response 200 { data, meta }
The data field:
-
monthstringrequired -
currencystring | nullrequired -
calendarobjectrequiredFields
-
daysintegerrequired -
closedDaysarray<string · date>required -
holidaysarray<object>requiredFields
-
datestring · daterequired -
namestring | nullrequired
-
-
-
storesarray<object>requiredFields
-
storeIdstringrequired -
namestringrequired -
patharray<object>requiredFields
-
idstringrequired -
namestringrequired
-
-
conceptstring | nullrequired -
locationobject | nullrequiredFields
-
latitudenumberrequired -
longitudenumberrequired
-
-
openHoursarray<object>requiredFields
-
weekdaystringrequired -
startstringrequired -
endstringrequired -
endsNextDaybooleanrequired
-
-
lastSaleDatestring · date | nullrequired -
weekdayMeanSalesobjectrequiredFields
-
mondaynumberrequired -
tuesdaynumberrequired -
wednesdaynumberrequired -
thursdaynumberrequired -
fridaynumberrequired -
saturdaynumberrequired -
sundaynumberrequired
-
-
currentForecastobject | nullrequiredFields
-
salesnumberrequired -
transactionsintegerrequired -
daysFilledintegerrequired
-
-
-
monthlySalesobjectrequiredColumnsstoreId,month(YYYY-MM),sales,transactions,days(days with sales).Fields
-
columnsarray<string>required -
rowsarray<array<string | number>>required
-
-
weeklySalesobjectrequiredColumnsstoreId,weekStart(a Monday),sales,transactions.Fields
-
columnsarray<string>required -
rowsarray<array<string | number>>required
-
Response headers
RateLimit-LimitHow many calls of this operation's weight the credential may make in a minute.RateLimit-RemainingHow many of them are left in the current minute.RateLimit-ResetSeconds until the current minute ends.
Possible errors 400 401 403 404 429 500 503 504
/api/public/v1/sales-plans/datasetcurl "https://api.proschedule.com/api/public/v1/sales-plans/dataset?month=2026-12" \
-H "Authorization: Bearer $PROSCHEDULE_API_KEY"const response = await fetch("https://api.proschedule.com/api/public/v1/sales-plans/dataset?month=2026-12", {
headers: {
Authorization: `Bearer ${process.env.PROSCHEDULE_API_KEY}`,
},
});
if (!response.ok) throw new Error((await response.json()).code);
const { data, meta } = await response.json();import os
import requests
response = requests.get(
"https://api.proschedule.com/api/public/v1/sales-plans/dataset",
params={"month": "2026-12"},
headers={"Authorization": f"Bearer {os.environ['PROSCHEDULE_API_KEY']}"},
timeout=30,
)
response.raise_for_status()
body = response.json()
print(body["data"]){
"data": {
"month": "2026-12",
"currency": null,
"calendar": {
"days": 31,
"closedDays": [],
"holidays": [
{
"date": "2026-12-31",
"name": "New Year's Eve"
}
]
},
"stores": [
{
"storeId": "n_184",
"name": "Evos Чиланзар",
"path": [
{
"id": "n_12",
"name": "Ташкент"
}
],
"concept": "Restaurant",
"location": {
"latitude": 41.2856,
"longitude": 69.2034
},
"openHours": [
{
"weekday": "monday",
"start": "09:00",
"end": "23:00",
"endsNextDay": false
},
{
"weekday": "saturday",
"start": "09:00",
"end": "01:00",
"endsNextDay": true
}
],
"lastSaleDate": "2026-11-22",
"weekdayMeanSales": {
"monday": 18400000,
"tuesday": 18100000,
"wednesday": 18900000,
"thursday": 19300000,
"friday": 23800000,
"saturday": 27600000,
"sunday": 25200000
},
"currentForecast": {
"sales": 640000000,
"transactions": 9800,
"daysFilled": 31
}
}
],
"monthlySales": {
"columns": [
"storeId",
"month",
"sales",
"transactions",
"days"
],
"rows": [
[
"n_184",
"2025-12",
655300000,
10120,
31
],
[
"n_184",
"2026-10",
598700000,
9310,
31
]
]
},
"weeklySales": {
"columns": [
"storeId",
"weekStart",
"sales",
"transactions"
],
"rows": [
[
"n_184",
"2026-11-16",
151300000,
2310
]
]
}
},
"meta": {
"requestId": "5f0c2b9e-7c1d-4a57-9d43-2f6f5a1f0b3c",
"generatedAt": "2026-11-12T09:30:00.000Z"
}
}/api/public/v1/sales-plansSales plans#
list_sales_plansThe sales plans the caller may open, the most recently changed first: for a planner — an administrator or a role with the revenue forecast permissions — every plan of the company, for anyone else their own; never a plan that covers a store outside the credential's reach. Each item says the plan's month, state (draft — no figures yet, ready — figures to review, applied — written into the revenue forecast), what it covers, how many of its stores have figures and their totals, whether a model turn is running, whether the caller made it (mine) and its version. month and status narrow the list. 50 per page (limit up to 200; pass page.nextCursor as cursor for the next page). The figures of one plan: get_sales_plan. Needs the scope sales_plans:read and the company's «Sales planning» switched on — otherwise 403 DATA_CATEGORY_DISABLED.
Query parameters
-
monthstring · regexKeeps the plans of this month,YYYY-MM. -
statusstringKeeps the plans in this state. -
limitintegerThe size of a page. -
cursorstringpage.nextCursorof the page before; leave it out for the first page. A cursor belongs to its list and to the other parameters it was made with.
Response 200 { data, meta, page }
The data field:
-
itemsarray<object>requiredFields
-
planIdstringrequired -
titlestringrequired -
monthstringrequired -
statusstringrequired -
scopeobject | object | objectrequiredWhat the plan covers: the whole company, a structure node's stores, or one store.Variants
Variant 1-
kind"network"required
Variant 2-
kind"node"required -
nodeIdstringrequired
Variant 3-
kind"store"required -
storeIdstringrequired
-
-
storeCountintegerrequired -
storesWithFiguresintegerrequired -
totalSalesnumberrequired -
totalTransactionsnumberrequired -
runningbooleanrequired -
minebooleanrequired -
versionintegerrequired -
createdAtstring · date-timerequired -
updatedAtstring · date-timerequired
-
Response headers
RateLimit-LimitHow many calls of this operation's weight the credential may make in a minute.RateLimit-RemainingHow many of them are left in the current minute.RateLimit-ResetSeconds until the current minute ends.LinkThe address of the next page,<…>; rel="next", while the list has more.
Possible errors 400 401 403 404 429 500 503 504
/api/public/v1/sales-planscurl "https://api.proschedule.com/api/public/v1/sales-plans?month=2026-12" \
-H "Authorization: Bearer $PROSCHEDULE_API_KEY"const response = await fetch("https://api.proschedule.com/api/public/v1/sales-plans?month=2026-12", {
headers: {
Authorization: `Bearer ${process.env.PROSCHEDULE_API_KEY}`,
},
});
if (!response.ok) throw new Error((await response.json()).code);
const { data, meta, page } = await response.json();import os
import requests
response = requests.get(
"https://api.proschedule.com/api/public/v1/sales-plans",
params={"month": "2026-12"},
headers={"Authorization": f"Bearer {os.environ['PROSCHEDULE_API_KEY']}"},
timeout=30,
)
response.raise_for_status()
body = response.json()
print(body["data"]){
"data": {
"items": [
{
"planId": "5b0f6a3e-2d1c-4f8e-9a7b-1c2d3e4f5a6b",
"title": "Ташкент · 2026-12",
"month": "2026-12",
"status": "ready",
"scope": {
"kind": "node",
"nodeId": "n_12"
},
"storeCount": 14,
"storesWithFigures": 14,
"totalSales": 8960000000,
"totalTransactions": 137200,
"running": false,
"mine": true,
"version": 3,
"createdAt": "2026-11-23T09:12:40.000Z",
"updatedAt": "2026-11-23T09:15:02.000Z"
}
]
},
"meta": {
"requestId": "5f0c2b9e-7c1d-4a57-9d43-2f6f5a1f0b3c",
"generatedAt": "2026-11-12T09:30:00.000Z"
},
"page": {
"limit": 50,
"hasMore": false,
"nextCursor": null
}
}/api/public/v1/sales-plansCreate a sales plan draft#
create_sales_plan_draftSaves the caller's own model's sales figures as a sales plan in ProSchedule — a draft for a person to review: nothing goes into the revenue forecast until a person writes it there (the app's «Write to forecast», or apply_sales_plan with a personal key). Give the month's sales and receipts by store; ProSchedule splits each month over its days by the store's weekday profile, its closed days and holidays — the split read from get_sales_planning_dataset — so never send days. A new plan: month (the current one or one of the next 12) and scope (network, a node or a store, inside the credential's reach; at most 60 stores), and figures for any of its stores. New figures for an existing plan: planId and the version they were made against — a plan changed since answers 409 VERSION_CONFLICT; the stores named take the new figures, the others keep theirs. Every store must be the plan's, at most once, or nothing is saved (400 with the field). Answers the plan as get_sales_plan does, its figures marked external. Needs the scope sales_plans:write, a person who may plan sales (an administrator or the revenue forecast permissions; 403 otherwise) and the company's «Sales planning» switched on. Runs no model of ProSchedule's.
Request body application/json
-
planIdstring · uuidA plan to give new figures to (one the caller may edit). Absent: a new plan. -
versionintegerWithplanId: the plan'sversionthe figures were made against. -
monthstring · regexA new plan's month,YYYY-MM: the current month or one of the next 12. -
scopeobject | object | objectWhat a new plan covers:network(every store of the reach, at most 60), a structurenode(its stores), or onestore.Variants
Variant 1-
kind"network"required
Variant 2-
kind"node"required -
nodeIdstringrequired
Variant 3-
kind"store"required -
storeIdstringrequired
-
-
titlestringA new plan's title; a default names the store or node and the month. -
summarystringWhat the plan says as a whole, shown to the planner in the app. -
storesarray<object>requiredThe month's totals by store, each store of the plan at most once.Fields
-
storeIdstringrequiredA store of the plan. -
monthSalesnumberrequiredThe month's sales of the store, in whole currency units. -
monthTransactionsnumberrequiredThe month's number of receipts. -
confidencestringrequiredHow sure the model is of the store's figures. -
rationalestringWhy these figures, in a few sentences. -
assumptionsarray<string>What the figures take for granted, at most five short lines. -
risksarray<string>What could make them wrong, at most five short lines.
-
Response 200 { data, meta }
The data field:
-
planIdstringrequired -
titlestringrequired -
monthstringrequired -
statusstringrequired -
scopeobject | object | objectrequiredWhat the plan covers: the whole company, a structure node's stores, or one store.Variants
Variant 1-
kind"network"required
Variant 2-
kind"node"required -
nodeIdstringrequired
Variant 3-
kind"store"required -
storeIdstringrequired
-
-
versionintegerrequired -
minebooleanrequired -
summarystringrequired -
runobject | nullrequiredThe plan's model turn:runningwhile one is in flight; else how the last one ended —plan(figures),questions(the model asks before it plans;questionslists them),refusalorerror. Null when no model turn was ever made.Fields
-
statusstringrequired -
questionsarray<string>required
-
-
storesarray<object>requiredFields
-
storeIdstringrequired -
namestringrequired -
monthSalesnumberrequired -
monthTransactionsnumberrequired -
confidencestringrequired -
sourcestringrequired -
rationalestringrequired -
assumptionsarray<string>required -
risksarray<string>required -
referenceobjectrequiredFields
-
lastMonthobject | nullrequiredFields
-
salesnumberrequired -
transactionsnumberrequired -
monthstringrequired
-
-
sameMonthLastYearobject | nullrequiredFields
-
salesnumberrequired -
transactionsnumberrequired
-
-
forecastWhenPlannedobject | nullrequiredFields
-
salesnumberrequired -
transactionsnumberrequired
-
-
-
-
storesWithoutFiguresarray<string>required -
dailyobject | nullrequiredColumnsstoreId,date,sales,transactions; null unlessinclude=daily.Fields
-
columnsarray<string>required -
rowsarray<array<string | number>>required
-
-
appliedobject | nullrequiredFields
-
atstring · date-timerequired -
storesarray<object>requiredFields
-
storeIdstringrequired -
openDaysintegerrequired -
lockedDaysintegerrequired
-
-
skippedarray<object>requiredFields
-
storeIdstringrequired -
reasonstringrequired
-
-
-
createdAtstring · date-timerequired -
updatedAtstring · date-timerequired
Response headers
RateLimit-LimitHow many calls of this operation's weight the credential may make in a minute.RateLimit-RemainingHow many of them are left in the current minute.RateLimit-ResetSeconds until the current minute ends.
Possible errors 400 401 403 404 409 413 415 422 429 500 503 504
/api/public/v1/sales-planscurl -X POST "https://api.proschedule.com/api/public/v1/sales-plans" \
-H "Authorization: Bearer $PROSCHEDULE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"month": "2026-12",
"scope": {
"kind": "store",
"storeId": "n_184"
},
"summary": "December 4% above last December: the New Year week carries a quarter of the month.",
"stores": [
{
"storeId": "n_184",
"monthSales": 681500000,
"monthTransactions": 10480,
"confidence": "medium",
"rationale": "Last December plus the growth of the last three months.",
"risks": [
"Weather in the last week of the month"
]
}
]
}'const response = await fetch("https://api.proschedule.com/api/public/v1/sales-plans", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PROSCHEDULE_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"month": "2026-12",
"scope": {
"kind": "store",
"storeId": "n_184"
},
"summary": "December 4% above last December: the New Year week carries a quarter of the month.",
"stores": [
{
"storeId": "n_184",
"monthSales": 681500000,
"monthTransactions": 10480,
"confidence": "medium",
"rationale": "Last December plus the growth of the last three months.",
"risks": [
"Weather in the last week of the month"
]
}
]
}),
});
if (!response.ok) throw new Error((await response.json()).code);
const { data, meta } = await response.json();import os
import requests
response = requests.post(
"https://api.proschedule.com/api/public/v1/sales-plans",
json={
"month": "2026-12",
"scope": {
"kind": "store",
"storeId": "n_184"
},
"summary": "December 4% above last December: the New Year week carries a quarter of the month.",
"stores": [
{
"storeId": "n_184",
"monthSales": 681500000,
"monthTransactions": 10480,
"confidence": "medium",
"rationale": "Last December plus the growth of the last three months.",
"risks": [
"Weather in the last week of the month"
]
}
]
},
headers={"Authorization": f"Bearer {os.environ['PROSCHEDULE_API_KEY']}"},
timeout=30,
)
response.raise_for_status()
body = response.json()
print(body["data"]){
"data": {
"planId": "5b0f6a3e-2d1c-4f8e-9a7b-1c2d3e4f5a6b",
"title": "Evos Чиланзар · 2026-12",
"month": "2026-12",
"status": "ready",
"scope": {
"kind": "store",
"storeId": "n_184"
},
"version": 1,
"mine": true,
"summary": "December 4% above last December: the New Year week carries a quarter of the month.",
"run": null,
"stores": [
{
"storeId": "n_184",
"name": "Evos Чиланзар",
"monthSales": 681500000,
"monthTransactions": 10480,
"confidence": "medium",
"source": "external",
"rationale": "Last December plus the growth of the last three months.",
"assumptions": [],
"risks": [
"Weather in the last week of the month"
],
"reference": {
"lastMonth": {
"month": "2026-10",
"sales": 598700000,
"transactions": 9310
},
"sameMonthLastYear": {
"sales": 655300000,
"transactions": 10120
},
"forecastWhenPlanned": {
"sales": 640000000,
"transactions": 9800
}
}
}
],
"storesWithoutFigures": [],
"daily": null,
"applied": null,
"createdAt": "2026-11-23T09:12:40.000Z",
"updatedAt": "2026-11-23T09:15:02.000Z"
},
"meta": {
"requestId": "5f0c2b9e-7c1d-4a57-9d43-2f6f5a1f0b3c",
"generatedAt": "2026-11-12T09:30:00.000Z"
}
}/api/public/v1/sales-plans/{planId}Sales plan#
get_sales_planOne sales plan the caller may open (the rule of list_sales_plans): its month, state, what it covers, its version (a change of the plan bumps it), the model's summary, and for each store with figures the month's sales and transactions, the confidence, where the figures come from (model — the planner's model, manual — a person's own total, external — a client's own model through create_sales_plan_draft), the rationale, assumptions and risks (cut to a few hundred characters), and what the figures were compared with when they were made — the last complete month, the same month a year earlier and the forecast stored then. storesWithoutFigures lists the stores the plan covers that have none yet. run tells a model turn in flight (running — ask again in a few seconds) or how the last one ended. include=daily adds the split by day — the one written into the forecast when the plan is applied. applied is the report of the last write into the forecast: the open days each store took and the locked days it kept. What people wrote to the planner is never returned. A plan that does not exist, was deleted or is not the caller's to open answers 404 SALES_PLAN_NOT_FOUND. Needs the scope sales_plans:read and the company's «Sales planning» switched on — otherwise 403 DATA_CATEGORY_DISABLED.
Query parameters
-
planIdstring · uuidrequiredThe plan's id (list_sales_plans, or the answer that made it). -
includearray<string>dailyadds the day-by-day split of every store's figures (daily): up to 31 rows a store.
Response 200 { data, meta }
The data field:
-
planIdstringrequired -
titlestringrequired -
monthstringrequired -
statusstringrequired -
scopeobject | object | objectrequiredWhat the plan covers: the whole company, a structure node's stores, or one store.Variants
Variant 1-
kind"network"required
Variant 2-
kind"node"required -
nodeIdstringrequired
Variant 3-
kind"store"required -
storeIdstringrequired
-
-
versionintegerrequired -
minebooleanrequired -
summarystringrequired -
runobject | nullrequiredThe plan's model turn:runningwhile one is in flight; else how the last one ended —plan(figures),questions(the model asks before it plans;questionslists them),refusalorerror. Null when no model turn was ever made.Fields
-
statusstringrequired -
questionsarray<string>required
-
-
storesarray<object>requiredFields
-
storeIdstringrequired -
namestringrequired -
monthSalesnumberrequired -
monthTransactionsnumberrequired -
confidencestringrequired -
sourcestringrequired -
rationalestringrequired -
assumptionsarray<string>required -
risksarray<string>required -
referenceobjectrequiredFields
-
lastMonthobject | nullrequiredFields
-
salesnumberrequired -
transactionsnumberrequired -
monthstringrequired
-
-
sameMonthLastYearobject | nullrequiredFields
-
salesnumberrequired -
transactionsnumberrequired
-
-
forecastWhenPlannedobject | nullrequiredFields
-
salesnumberrequired -
transactionsnumberrequired
-
-
-
-
storesWithoutFiguresarray<string>required -
dailyobject | nullrequiredColumnsstoreId,date,sales,transactions; null unlessinclude=daily.Fields
-
columnsarray<string>required -
rowsarray<array<string | number>>required
-
-
appliedobject | nullrequiredFields
-
atstring · date-timerequired -
storesarray<object>requiredFields
-
storeIdstringrequired -
openDaysintegerrequired -
lockedDaysintegerrequired
-
-
skippedarray<object>requiredFields
-
storeIdstringrequired -
reasonstringrequired
-
-
-
createdAtstring · date-timerequired -
updatedAtstring · date-timerequired
Response headers
RateLimit-LimitHow many calls of this operation's weight the credential may make in a minute.RateLimit-RemainingHow many of them are left in the current minute.RateLimit-ResetSeconds until the current minute ends.
Possible errors 400 401 403 404 429 500 503 504
/api/public/v1/sales-plans/{planId}curl "https://api.proschedule.com/api/public/v1/sales-plans/{planId}" \
-H "Authorization: Bearer $PROSCHEDULE_API_KEY"const response = await fetch("https://api.proschedule.com/api/public/v1/sales-plans/{planId}", {
headers: {
Authorization: `Bearer ${process.env.PROSCHEDULE_API_KEY}`,
},
});
if (!response.ok) throw new Error((await response.json()).code);
const { data, meta } = await response.json();import os
import requests
response = requests.get(
"https://api.proschedule.com/api/public/v1/sales-plans/{planId}",
headers={"Authorization": f"Bearer {os.environ['PROSCHEDULE_API_KEY']}"},
timeout=30,
)
response.raise_for_status()
body = response.json()
print(body["data"]){
"data": {
"planId": "5b0f6a3e-2d1c-4f8e-9a7b-1c2d3e4f5a6b",
"title": "Evos Чиланзар · 2026-12",
"month": "2026-12",
"status": "ready",
"scope": {
"kind": "store",
"storeId": "n_184"
},
"version": 3,
"mine": true,
"summary": "December is planned 4% above last December: New Year's week carries a quarter of the month.",
"run": {
"status": "plan",
"questions": []
},
"stores": [
{
"storeId": "n_184",
"name": "Evos Чиланзар",
"monthSales": 681500000,
"monthTransactions": 10480,
"confidence": "medium",
"source": "model",
"rationale": "Last December plus the growth of the last three months; the 31st is a short day.",
"assumptions": [
"No new competitor opens nearby"
],
"risks": [
"Weather in the last week of the month"
],
"reference": {
"lastMonth": {
"month": "2026-10",
"sales": 598700000,
"transactions": 9310
},
"sameMonthLastYear": {
"sales": 655300000,
"transactions": 10120
},
"forecastWhenPlanned": {
"sales": 640000000,
"transactions": 9800
}
}
}
],
"storesWithoutFigures": [],
"daily": null,
"applied": null,
"createdAt": "2026-11-23T09:12:40.000Z",
"updatedAt": "2026-11-23T09:15:02.000Z"
},
"meta": {
"requestId": "5f0c2b9e-7c1d-4a57-9d43-2f6f5a1f0b3c",
"generatedAt": "2026-11-12T09:30:00.000Z"
}
}/api/public/v1/sales-plans/ai-runsStart the AI sales planner#
start_ai_sales_planAsks ProSchedule's own AI sales planner — the one of the app's «Sales planning» — to plan a month, or to refine a plan, and answers at once with the plan's id: the turn runs on its own for up to a few minutes. Read the plan with get_sales_plan after pollAfterSeconds: run.status is running until the turn ends with figures (plan), questions for the planner (questions, to answer in the next call with planId), a refusal or an error. A new plan: month and scope (inside the credential's reach, at most 60 stores); a refinement: planId. One turn at a time per plan (409 PLAN_RUN_IN_PROGRESS). The turn spends the company's AI credits as in the app (estimatedCredits); a balance or limit that does not cover it answers 402 AI_TURN_NOT_COVERED and nothing starts. Needs the scope sales_plans:write, a person who may plan sales, AI sales planning open to them (403 AI_PLANNING_UNAVAILABLE otherwise) and the company's «Sales planning» switched on. Nothing is written into the revenue forecast.
Request body application/json
-
promptstringrequiredWhat the planner's model is asked: goals, context, or a correction of the plan (+10% in Tashkent), or the answers to its questions. -
planIdstring · uuidA plan to refine (one the caller may edit). Absent: a new plan. -
monthstring · regexA new plan's month,YYYY-MM: the current month or one of the next 12. -
scopeobject | object | objectWhat a new plan covers:network(every store of the reach, at most 60), a structurenode(its stores), or onestore.Variants
Variant 1-
kind"network"required
Variant 2-
kind"node"required -
nodeIdstringrequired
Variant 3-
kind"store"required -
storeIdstringrequired
-
-
titlestringA new plan's title; a default names the store or node and the month. -
languagestringThe language of the model's summary and reasons. Default: the company's.
Response 200 { data, meta }
The data field:
-
planIdstringrequired -
turnintegerrequired -
status"running"required -
estimatedCreditsintegerrequiredWhat the turn is expected to cost the company's AI credits; the charge settles when it ends. -
pollAfterSecondsintegerrequired
Response headers
RateLimit-LimitHow many calls of this operation's weight the credential may make in a minute.RateLimit-RemainingHow many of them are left in the current minute.RateLimit-ResetSeconds until the current minute ends.
Possible errors 400 401 402 403 404 409 413 415 422 429 500 503 504
/api/public/v1/sales-plans/ai-runscurl -X POST "https://api.proschedule.com/api/public/v1/sales-plans/ai-runs" \
-H "Authorization: Bearer $PROSCHEDULE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"prompt": "Plan December for Chilanzar: the New Year week is busy.",
"month": "2026-12",
"scope": {
"kind": "store",
"storeId": "n_184"
}
}'const response = await fetch("https://api.proschedule.com/api/public/v1/sales-plans/ai-runs", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PROSCHEDULE_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"prompt": "Plan December for Chilanzar: the New Year week is busy.",
"month": "2026-12",
"scope": {
"kind": "store",
"storeId": "n_184"
}
}),
});
if (!response.ok) throw new Error((await response.json()).code);
const { data, meta } = await response.json();import os
import requests
response = requests.post(
"https://api.proschedule.com/api/public/v1/sales-plans/ai-runs",
json={
"prompt": "Plan December for Chilanzar: the New Year week is busy.",
"month": "2026-12",
"scope": {
"kind": "store",
"storeId": "n_184"
}
},
headers={"Authorization": f"Bearer {os.environ['PROSCHEDULE_API_KEY']}"},
timeout=30,
)
response.raise_for_status()
body = response.json()
print(body["data"]){
"data": {
"planId": "5b0f6a3e-2d1c-4f8e-9a7b-1c2d3e4f5a6b",
"turn": 1,
"status": "running",
"estimatedCredits": 40,
"pollAfterSeconds": 15
},
"meta": {
"requestId": "5f0c2b9e-7c1d-4a57-9d43-2f6f5a1f0b3c",
"generatedAt": "2026-11-12T09:30:00.000Z"
}
}/api/public/v1/sales-plans/{planId}/applyWrite a sales plan into the revenue forecast#
apply_sales_planforecast:writeweight: writeWrites a plan's figures into the revenue forecast of its stores, day by day, as the app's «Write to forecast» does: every open day of a store takes the plan's figure, and the days beyond the schedule's editing depth or in a week with an approved crew schedule keep what is stored — the answer's applied tells, store by store, the days written and the days kept; a store with every day locked, or without figures, is skipped. The forecast's other values (menu items, the hourly profile) do not change. It cannot be undone: the forecast is corrected by hand or by another plan. version is the plan's version the caller reviewed — a plan changed since answers 409 VERSION_CONFLICT and nothing is written; a plan without figures 409 PLAN_NOT_READY; one with a model turn running 409 PLAN_RUN_IN_PROGRESS. Only the plan's author or an administrator may apply it. REST only, with a personal key that carries forecast:write and an Idempotency-Key; the company's «Sales planning» switched on.
Query parameters
-
planIdstring · uuidrequiredThe plan to write into the forecast.
Request body application/json
-
versionintegerrequiredThe plan'sversionthe caller reviewed: a plan changed since is not written (409 VERSION_CONFLICT). -
storeIdsarray<string>Writes only these stores of the plan. Absent: every store with figures.
Response 200 { data, meta }
The data field:
-
planIdstringrequired -
titlestringrequired -
monthstringrequired -
statusstringrequired -
scopeobject | object | objectrequiredWhat the plan covers: the whole company, a structure node's stores, or one store.Variants
Variant 1-
kind"network"required
Variant 2-
kind"node"required -
nodeIdstringrequired
Variant 3-
kind"store"required -
storeIdstringrequired
-
-
versionintegerrequired -
minebooleanrequired -
summarystringrequired -
runobject | nullrequiredThe plan's model turn:runningwhile one is in flight; else how the last one ended —plan(figures),questions(the model asks before it plans;questionslists them),refusalorerror. Null when no model turn was ever made.Fields
-
statusstringrequired -
questionsarray<string>required
-
-
storesarray<object>requiredFields
-
storeIdstringrequired -
namestringrequired -
monthSalesnumberrequired -
monthTransactionsnumberrequired -
confidencestringrequired -
sourcestringrequired -
rationalestringrequired -
assumptionsarray<string>required -
risksarray<string>required -
referenceobjectrequiredFields
-
lastMonthobject | nullrequiredFields
-
salesnumberrequired -
transactionsnumberrequired -
monthstringrequired
-
-
sameMonthLastYearobject | nullrequiredFields
-
salesnumberrequired -
transactionsnumberrequired
-
-
forecastWhenPlannedobject | nullrequiredFields
-
salesnumberrequired -
transactionsnumberrequired
-
-
-
-
storesWithoutFiguresarray<string>required -
dailyobject | nullrequiredColumnsstoreId,date,sales,transactions; null unlessinclude=daily.Fields
-
columnsarray<string>required -
rowsarray<array<string | number>>required
-
-
appliedobject | nullrequiredFields
-
atstring · date-timerequired -
storesarray<object>requiredFields
-
storeIdstringrequired -
openDaysintegerrequired -
lockedDaysintegerrequired
-
-
skippedarray<object>requiredFields
-
storeIdstringrequired -
reasonstringrequired
-
-
-
createdAtstring · date-timerequired -
updatedAtstring · date-timerequired
Response headers
RateLimit-LimitHow many calls of this operation's weight the credential may make in a minute.RateLimit-RemainingHow many of them are left in the current minute.RateLimit-ResetSeconds until the current minute ends.
Possible errors 400 401 403 404 409 413 415 422 429 500 503 504
/api/public/v1/sales-plans/{planId}/applycurl -X POST "https://api.proschedule.com/api/public/v1/sales-plans/{planId}/apply" \
-H "Authorization: Bearer $PROSCHEDULE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"version": 3
}'const response = await fetch("https://api.proschedule.com/api/public/v1/sales-plans/{planId}/apply", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PROSCHEDULE_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"version": 3
}),
});
if (!response.ok) throw new Error((await response.json()).code);
const { data, meta } = await response.json();import os
import requests
response = requests.post(
"https://api.proschedule.com/api/public/v1/sales-plans/{planId}/apply",
json={
"version": 3
},
headers={"Authorization": f"Bearer {os.environ['PROSCHEDULE_API_KEY']}"},
timeout=30,
)
response.raise_for_status()
body = response.json()
print(body["data"]){
"data": {
"planId": "5b0f6a3e-2d1c-4f8e-9a7b-1c2d3e4f5a6b",
"title": "Evos Чиланзар · 2026-12",
"month": "2026-12",
"status": "applied",
"scope": {
"kind": "store",
"storeId": "n_184"
},
"version": 4,
"mine": true,
"summary": "December is planned 4% above last December: New Year's week carries a quarter of the month.",
"run": {
"status": "plan",
"questions": []
},
"stores": [
{
"storeId": "n_184",
"name": "Evos Чиланзар",
"monthSales": 681500000,
"monthTransactions": 10480,
"confidence": "medium",
"source": "model",
"rationale": "Last December plus the growth of the last three months; the 31st is a short day.",
"assumptions": [
"No new competitor opens nearby"
],
"risks": [
"Weather in the last week of the month"
],
"reference": {
"lastMonth": {
"month": "2026-10",
"sales": 598700000,
"transactions": 9310
},
"sameMonthLastYear": {
"sales": 655300000,
"transactions": 10120
},
"forecastWhenPlanned": {
"sales": 640000000,
"transactions": 9800
}
}
}
],
"storesWithoutFigures": [],
"daily": null,
"applied": {
"at": "2026-11-23T09:20:00.000Z",
"stores": [
{
"storeId": "n_184",
"openDays": 31,
"lockedDays": 0
}
],
"skipped": []
},
"createdAt": "2026-11-23T09:12:40.000Z",
"updatedAt": "2026-11-23T09:15:02.000Z"
},
"meta": {
"requestId": "5f0c2b9e-7c1d-4a57-9d43-2f6f5a1f0b3c",
"generatedAt": "2026-11-12T09:30:00.000Z"
}
}Staffing: hours for a revenue#
The staff hours the stores' deployment asks for a revenue the caller names, day by day and position by position, beside those of the saved forecast. Reads only.
/api/public/v1/staffing/estimatesEstimate the staff hours a revenue needs#
estimate_required_hoursThe person-hours a store's deployment asks for a revenue the caller names, by day and by position, beside the same hours for the forecast saved for those days. Give one store and 1 to 31 days (none more than 30 days from another) with the day's sales and transactions (menuItems too where positions are measured by them). Each day is counted as the schedule editor recommends it: the deployment's steps of every position of the store's concept, half hour by half hour over the opening hours and the store's prep and cleanup hours, the day's revenue spread by the shape of the store's sales history (profile sales_history: the five weeks before the week, or the period the schedule was set to analyse) or evenly where there is none (even), sales divided by the store's price clustering. Positions budgeted on the WEEK's revenue (weekly) are matched once against the week and give each day a seventh of their hours; for estimate that week is the days asked about plus the saved forecast of its other days. A closed day (closed: store — no opening hours that weekday; company — a company holiday) needs only the weekly positions. saved.hours is what the editor shows as the day's recommended hours; asking for the saved figures answers the same hours. positions of a day lists each position with hours on either side. totals adds up the days. Reads only and needs analytics:read; a store that does not exist or lies outside the reach answers 404 STORE_NOT_FOUND. It estimates hours for a revenue: no schedule is read or changed.
Request body application/json
-
storeIdstringrequiredThe store (search_directoryfinds its id by name). -
daysarray<object>required1 to 31 days, each at most once, none more than 30 days from another.Fields
-
datestring · daterequiredThe day (YYYY-MM-DD). -
salesnumberrequiredThe day's sales to staff for, in the company's currency. -
transactionsnumberrequiredThe day's number of receipts to staff for. -
menuItemsnumberThe day's menu items sold, for positions measured by them. Absent: such a position stays on its lowest step, as with a forecast without them.
-
Response 200 { data, meta }
The data field:
-
storeIdstringrequired -
storeNamestringrequired -
positionsarray<object>requiredFields
-
positionIdstringrequired -
namestringrequired -
measurestringrequired -
weeklybooleanrequired
-
-
daysarray<object>requiredFields
-
datestring · daterequired -
weekdaystringrequired -
openobject | nullrequiredFields
-
startstringrequired -
endstringrequired -
startsNextDaybooleanrequired -
endsNextDaybooleanrequired
-
-
closedstring | nullrequired -
profilestring | nullrequired -
estimateobjectrequiredFields
-
salesnumberrequired -
transactionsnumberrequired -
menuItemsnumber | nullrequired -
hoursnumberrequired
-
-
savedobjectrequiredFields
-
salesnumberrequired -
transactionsnumberrequired -
menuItemsnumber | nullrequired -
hoursnumberrequired
-
-
positionsarray<object>requiredFields
-
positionIdstringrequired -
hoursnumberrequired -
savedHoursnumberrequired
-
-
-
totalsobjectrequiredFields
-
estimateobjectrequiredFields
-
salesnumberrequired -
transactionsnumberrequired -
hoursnumberrequired
-
-
savedobjectrequiredFields
-
salesnumberrequired -
transactionsnumberrequired -
hoursnumberrequired
-
-
Response headers
RateLimit-LimitHow many calls of this operation's weight the credential may make in a minute.RateLimit-RemainingHow many of them are left in the current minute.RateLimit-ResetSeconds until the current minute ends.
Possible errors 400 401 403 404 413 415 422 429 500 503 504
/api/public/v1/staffing/estimatescurl -X POST "https://api.proschedule.com/api/public/v1/staffing/estimates" \
-H "Authorization: Bearer $PROSCHEDULE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"storeId": "n_184",
"days": [
{
"date": "2026-12-05",
"sales": 80000000,
"transactions": 1900
},
{
"date": "2026-12-06",
"sales": 64000000,
"transactions": 1520
}
]
}'const response = await fetch("https://api.proschedule.com/api/public/v1/staffing/estimates", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PROSCHEDULE_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"storeId": "n_184",
"days": [
{
"date": "2026-12-05",
"sales": 80000000,
"transactions": 1900
},
{
"date": "2026-12-06",
"sales": 64000000,
"transactions": 1520
}
]
}),
});
if (!response.ok) throw new Error((await response.json()).code);
const { data, meta } = await response.json();import os
import requests
response = requests.post(
"https://api.proschedule.com/api/public/v1/staffing/estimates",
json={
"storeId": "n_184",
"days": [
{
"date": "2026-12-05",
"sales": 80000000,
"transactions": 1900
},
{
"date": "2026-12-06",
"sales": 64000000,
"transactions": 1520
}
]
},
headers={"Authorization": f"Bearer {os.environ['PROSCHEDULE_API_KEY']}"},
timeout=30,
)
response.raise_for_status()
body = response.json()
print(body["data"]){
"data": {
"storeId": "n_184",
"storeName": "Evos Чиланзар",
"positions": [
{
"positionId": "pos_cashier",
"name": "Касса",
"measure": "sales",
"weekly": false
},
{
"positionId": "pos_kitchen",
"name": "Кухня",
"measure": "transactions",
"weekly": false
},
{
"positionId": "pos_cleaning",
"name": "Уборка",
"measure": "sales",
"weekly": true
}
],
"days": [
{
"date": "2026-12-05",
"weekday": "saturday",
"open": {
"start": "10:00",
"end": "02:00",
"startsNextDay": false,
"endsNextDay": true
},
"closed": null,
"profile": "sales_history",
"estimate": {
"sales": 80000000,
"transactions": 1900,
"menuItems": null,
"hours": 104.5
},
"saved": {
"sales": 71200000,
"transactions": 1690,
"menuItems": null,
"hours": 93.5
},
"positions": [
{
"positionId": "pos_cashier",
"hours": 38,
"savedHours": 33.5
},
{
"positionId": "pos_kitchen",
"hours": 63.5,
"savedHours": 57
},
{
"positionId": "pos_cleaning",
"hours": 3,
"savedHours": 3
}
]
},
{
"date": "2026-12-06",
"weekday": "sunday",
"open": {
"start": "10:00",
"end": "23:00",
"startsNextDay": false,
"endsNextDay": false
},
"closed": null,
"profile": "sales_history",
"estimate": {
"sales": 64000000,
"transactions": 1520,
"menuItems": null,
"hours": 86
},
"saved": {
"sales": 60500000,
"transactions": 1430,
"menuItems": null,
"hours": 81.5
},
"positions": [
{
"positionId": "pos_cashier",
"hours": 31,
"savedHours": 29.5
},
{
"positionId": "pos_kitchen",
"hours": 52,
"savedHours": 49
},
{
"positionId": "pos_cleaning",
"hours": 3,
"savedHours": 3
}
]
}
],
"totals": {
"estimate": {
"sales": 144000000,
"transactions": 3420,
"hours": 190.5
},
"saved": {
"sales": 131700000,
"transactions": 3120,
"hours": 175
}
}
},
"meta": {
"requestId": "5f0c2b9e-7c1d-4a57-9d43-2f6f5a1f0b3c",
"generatedAt": "2026-11-12T09:30:00.000Z"
}
}Webhooks#
The webhook endpoints of an integration's service key: where ProSchedule POSTs the company's changes as they happen, signed by Standard Webhooks; their secrets, a test, the delivery history and its retries. The events themselves are in the document's webhooks section.
/webhooks/endpointsWebhook endpointsPOST/webhooks/endpointsAdd a webhook endpointGET/webhooks/endpoints/{endpointId}A webhook endpointPATCH/webhooks/endpoints/{endpointId}Change a webhook endpointDELETE/webhooks/endpoints/{endpointId}Delete a webhook endpointPOST/webhooks/endpoints/{endpointId}/rotate-secretRotate a webhook endpoint's secretPOST/webhooks/endpoints/{endpointId}/testSend a test eventGET/webhooks/endpoints/{endpointId}/deliveriesWebhook delivery historyPOST/webhooks/deliveries/{deliveryId}/retryRetry a deliveryPOST/webhooks/endpoints/{endpointId}/retryRetry the failed deliveries since a moment/api/public/v1/webhooks/endpointsWebhook endpoints#
list_webhook_endpointswebhooks:manageweight: lightThe webhook endpoints this key created, oldest first: address, subscriptions, switch, when the secret was made and how the last attempts went. A company has at most 10. Needs a service key with webhooks:manage (a person's key or an assistant never gets it); the key sees the endpoints it created.
Response 200 { data, meta }
The data field:
-
itemsarray<object>requiredFields
-
idstring · uuidrequired -
urlstringrequired -
descriptionstringrequired -
eventTypesarray<string>required -
enabledbooleanrequiredOff: the endpoint is sent nothing, and what waits for it waits. An endpoint whose receiver took no message for five days switches itself off (disabledReason). -
ownerobject | objectrequiredVariants
Variant 1-
kind"administrators"required
Variant 2-
kind"service_key"required -
keyIdstring | nullrequired -
keyNamestring | nullrequired
-
-
secretobjectrequiredFields
-
createdAtstring · date-timerequiredWhen the current signing secret was made. -
previousExpiresAtstring · date-time | nullrequiredUntil when the secret before the last rotation still signs; null when there is none.
-
-
createdAtstring · date-timerequired -
updatedAtstring · date-timerequired -
lastSucceededAtstring · date-time | nullrequiredThe last attempt the receiver answered with a 2xx. -
lastFailedAtstring · date-time | nullrequiredThe last attempt that failed. -
failingSincestring · date-time | nullrequiredThe first failed attempt since the last success; null while the receiver takes messages. Five days of it switch the endpoint off. -
disabledReasonstring | nullrequiredWhy the endpoint is off when it switched itself off:failing— five days without a single message taken; what still waited was marked failed. Null when it is on or was switched off by hand. Switching it on (enabled: true) clears it;POST …/deliveries/retrysends again what failed. -
disabledAtstring · date-time | nullrequiredWhen it switched itself off; null otherwise.
-
Response headers
RateLimit-LimitHow many calls of this operation's weight the credential may make in a minute.RateLimit-RemainingHow many of them are left in the current minute.RateLimit-ResetSeconds until the current minute ends.
Possible errors 400 401 403 404 429 500 503 504
/api/public/v1/webhooks/endpointscurl "https://api.proschedule.com/api/public/v1/webhooks/endpoints" \
-H "Authorization: Bearer $PROSCHEDULE_API_KEY"const response = await fetch("https://api.proschedule.com/api/public/v1/webhooks/endpoints", {
headers: {
Authorization: `Bearer ${process.env.PROSCHEDULE_API_KEY}`,
},
});
if (!response.ok) throw new Error((await response.json()).code);
const { data, meta } = await response.json();import os
import requests
response = requests.get(
"https://api.proschedule.com/api/public/v1/webhooks/endpoints",
headers={"Authorization": f"Bearer {os.environ['PROSCHEDULE_API_KEY']}"},
timeout=30,
)
response.raise_for_status()
body = response.json()
print(body["data"]){
"data": {
"items": [
{
"id": "0b8f2c4e-6a1d-4c3b-9e7f-5a2d1c0b9e8f",
"url": "https://hooks.example.com/proschedule",
"description": "Payroll sync",
"eventTypes": [
"schedule.week.approved"
],
"enabled": true,
"owner": {
"kind": "service_key",
"keyId": "a1b2c3d4e5f6",
"keyName": "Payroll"
},
"secret": {
"createdAt": "2026-11-23T09:00:00.000Z",
"previousExpiresAt": null
},
"createdAt": "2026-11-23T09:00:00.000Z",
"updatedAt": "2026-11-23T09:00:00.000Z",
"lastSucceededAt": "2026-11-23T09:00:01.000Z",
"lastFailedAt": null,
"failingSince": null,
"disabledReason": null,
"disabledAt": null
}
]
},
"meta": {
"requestId": "5f0c2b9e-7c1d-4a57-9d43-2f6f5a1f0b3c",
"generatedAt": "2026-11-12T09:30:00.000Z"
}
}/api/public/v1/webhooks/endpointsAdd a webhook endpoint#
create_webhook_endpointwebhooks:manageweight: lightAdds an endpoint, switched on, and answers its signing secret — once. The address is checked before it is stored: its form, and that its name resolves to public addresses only (422 WEBHOOK_URL_NOT_ALLOWED with the reason in detail); it is checked again before every attempt. The endpoint is sent a webhook.test at once. A company has at most 10 endpoints (409 WEBHOOK_ENDPOINT_LIMIT). An event that fails is tried again after 5 s, 5 min, 30 min, 2 h, 5 h, 10 h and 10 h (eight attempts, about 27.5 hours); a 2xx answer within 5 s is a success. Every message is signed by Standard Webhooks v1: the headers webhook-id (the delivery's msg_…, the same on every attempt), webhook-timestamp (seconds) and webhook-signature (v1,<base64 HMAC-SHA256 of "{id}.{timestamp}.{body}"> with the secret's bytes after whsec_; two signatures, space-separated, while a rotation's overlap lasts). Any Standard Webhooks library verifies it. Idempotency-Key required. Needs a service key with webhooks:manage (a person's key or an assistant never gets it); the key sees the endpoints it created.
Request body application/json
-
urlstringrequiredWhere the events are POSTed: https, no user name or password, no #fragment, port 443 or 1024 and above, at most 2048 characters, and the name must resolve to public addresses only — a private network, loopback, link-local and other special addresses are refused (422 WEBHOOK_URL_NOT_ALLOWED). Redirects are never followed. -
descriptionstringA note for people: what receives it. -
eventTypesarray<string>requiredWhat the endpoint is told about: the crew week (schedule.week.submitted,.approved,.returned) and the managers' month (schedule.month.submitted,.approved,.returned) —schedules:read; a time sheet signed at a level (timesheet.month.approved) —timesheets:read; a sales plan with figures (sales_plan.ready) or written into the forecast (sales_plan.applied) —sales_plans:readand the company's «Планирование продаж»; a store's revenue forecast changed (forecast.updated, once per store and month for five minutes of edits) —analytics:read; the AI credits running low (ai_credits.low) —org:read. A key's endpoint is told only what the key could read itself: the scope, and the reach — an event of a store only for a store of the key's reach, a sales plan only when all its stores are, the AI credits only to a key that reaches the whole company.
Response 200 { data, meta }
The data field:
-
endpointobjectrequiredFields
-
idstring · uuidrequired -
urlstringrequired -
descriptionstringrequired -
eventTypesarray<string>required -
enabledbooleanrequiredOff: the endpoint is sent nothing, and what waits for it waits. An endpoint whose receiver took no message for five days switches itself off (disabledReason). -
ownerobject | objectrequiredVariants
Variant 1-
kind"administrators"required
Variant 2-
kind"service_key"required -
keyIdstring | nullrequired -
keyNamestring | nullrequired
-
-
secretobjectrequiredFields
-
createdAtstring · date-timerequiredWhen the current signing secret was made. -
previousExpiresAtstring · date-time | nullrequiredUntil when the secret before the last rotation still signs; null when there is none.
-
-
createdAtstring · date-timerequired -
updatedAtstring · date-timerequired -
lastSucceededAtstring · date-time | nullrequiredThe last attempt the receiver answered with a 2xx. -
lastFailedAtstring · date-time | nullrequiredThe last attempt that failed. -
failingSincestring · date-time | nullrequiredThe first failed attempt since the last success; null while the receiver takes messages. Five days of it switch the endpoint off. -
disabledReasonstring | nullrequiredWhy the endpoint is off when it switched itself off:failing— five days without a single message taken; what still waited was marked failed. Null when it is on or was switched off by hand. Switching it on (enabled: true) clears it;POST …/deliveries/retrysends again what failed. -
disabledAtstring · date-time | nullrequiredWhen it switched itself off; null otherwise.
-
-
secretstring | nullrequiredThe signing secret,whsec_…— shown here once and never again; null in an answer replayed under the same Idempotency-Key (rotate the secret if the first answer was lost).
Response headers
RateLimit-LimitHow many calls of this operation's weight the credential may make in a minute.RateLimit-RemainingHow many of them are left in the current minute.RateLimit-ResetSeconds until the current minute ends.
Possible errors 400 401 403 404 409 413 415 422 429 500 503 504
/api/public/v1/webhooks/endpointscurl -X POST "https://api.proschedule.com/api/public/v1/webhooks/endpoints" \
-H "Authorization: Bearer $PROSCHEDULE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "https://hooks.example.com/proschedule",
"description": "Payroll sync",
"eventTypes": [
"schedule.week.approved"
]
}'const response = await fetch("https://api.proschedule.com/api/public/v1/webhooks/endpoints", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PROSCHEDULE_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"url": "https://hooks.example.com/proschedule",
"description": "Payroll sync",
"eventTypes": [
"schedule.week.approved"
]
}),
});
if (!response.ok) throw new Error((await response.json()).code);
const { data, meta } = await response.json();import os
import requests
response = requests.post(
"https://api.proschedule.com/api/public/v1/webhooks/endpoints",
json={
"url": "https://hooks.example.com/proschedule",
"description": "Payroll sync",
"eventTypes": [
"schedule.week.approved"
]
},
headers={"Authorization": f"Bearer {os.environ['PROSCHEDULE_API_KEY']}"},
timeout=30,
)
response.raise_for_status()
body = response.json()
print(body["data"]){
"data": {
"endpoint": {
"id": "0b8f2c4e-6a1d-4c3b-9e7f-5a2d1c0b9e8f",
"url": "https://hooks.example.com/proschedule",
"description": "Payroll sync",
"eventTypes": [
"schedule.week.approved"
],
"enabled": true,
"owner": {
"kind": "service_key",
"keyId": "a1b2c3d4e5f6",
"keyName": "Payroll"
},
"secret": {
"createdAt": "2026-11-23T09:00:00.000Z",
"previousExpiresAt": null
},
"createdAt": "2026-11-23T09:00:00.000Z",
"updatedAt": "2026-11-23T09:00:00.000Z",
"lastSucceededAt": null,
"lastFailedAt": null,
"failingSince": null,
"disabledReason": null,
"disabledAt": null
},
"secret": "whsec_MfKQ9r8GKYqrTwjUPD8ILPZIo2LaLaSw"
},
"meta": {
"requestId": "5f0c2b9e-7c1d-4a57-9d43-2f6f5a1f0b3c",
"generatedAt": "2026-11-12T09:30:00.000Z"
}
}/api/public/v1/webhooks/endpoints/{endpointId}A webhook endpoint#
get_webhook_endpointwebhooks:manageweight: lightOne endpoint this key created; another's, or one that does not exist, is 404 WEBHOOK_ENDPOINT_NOT_FOUND. Needs a service key with webhooks:manage (a person's key or an assistant never gets it); the key sees the endpoints it created.
Query parameters
-
endpointIdstring · uuidrequiredThe endpoint, asidof an endpoint names it.
Response 200 { data, meta }
The data field:
-
idstring · uuidrequired -
urlstringrequired -
descriptionstringrequired -
eventTypesarray<string>required -
enabledbooleanrequiredOff: the endpoint is sent nothing, and what waits for it waits. An endpoint whose receiver took no message for five days switches itself off (disabledReason). -
ownerobject | objectrequiredVariants
Variant 1-
kind"administrators"required
Variant 2-
kind"service_key"required -
keyIdstring | nullrequired -
keyNamestring | nullrequired
-
-
secretobjectrequiredFields
-
createdAtstring · date-timerequiredWhen the current signing secret was made. -
previousExpiresAtstring · date-time | nullrequiredUntil when the secret before the last rotation still signs; null when there is none.
-
-
createdAtstring · date-timerequired -
updatedAtstring · date-timerequired -
lastSucceededAtstring · date-time | nullrequiredThe last attempt the receiver answered with a 2xx. -
lastFailedAtstring · date-time | nullrequiredThe last attempt that failed. -
failingSincestring · date-time | nullrequiredThe first failed attempt since the last success; null while the receiver takes messages. Five days of it switch the endpoint off. -
disabledReasonstring | nullrequiredWhy the endpoint is off when it switched itself off:failing— five days without a single message taken; what still waited was marked failed. Null when it is on or was switched off by hand. Switching it on (enabled: true) clears it;POST …/deliveries/retrysends again what failed. -
disabledAtstring · date-time | nullrequiredWhen it switched itself off; null otherwise.
Response headers
RateLimit-LimitHow many calls of this operation's weight the credential may make in a minute.RateLimit-RemainingHow many of them are left in the current minute.RateLimit-ResetSeconds until the current minute ends.
Possible errors 400 401 403 404 429 500 503 504
/api/public/v1/webhooks/endpoints/{endpointId}curl "https://api.proschedule.com/api/public/v1/webhooks/endpoints/{endpointId}" \
-H "Authorization: Bearer $PROSCHEDULE_API_KEY"const response = await fetch("https://api.proschedule.com/api/public/v1/webhooks/endpoints/{endpointId}", {
headers: {
Authorization: `Bearer ${process.env.PROSCHEDULE_API_KEY}`,
},
});
if (!response.ok) throw new Error((await response.json()).code);
const { data, meta } = await response.json();import os
import requests
response = requests.get(
"https://api.proschedule.com/api/public/v1/webhooks/endpoints/{endpointId}",
headers={"Authorization": f"Bearer {os.environ['PROSCHEDULE_API_KEY']}"},
timeout=30,
)
response.raise_for_status()
body = response.json()
print(body["data"]){
"data": {
"id": "0b8f2c4e-6a1d-4c3b-9e7f-5a2d1c0b9e8f",
"url": "https://hooks.example.com/proschedule",
"description": "Payroll sync",
"eventTypes": [
"schedule.week.approved"
],
"enabled": true,
"owner": {
"kind": "service_key",
"keyId": "a1b2c3d4e5f6",
"keyName": "Payroll"
},
"secret": {
"createdAt": "2026-11-23T09:00:00.000Z",
"previousExpiresAt": null
},
"createdAt": "2026-11-23T09:00:00.000Z",
"updatedAt": "2026-11-23T09:00:00.000Z",
"lastSucceededAt": "2026-11-23T09:00:01.000Z",
"lastFailedAt": null,
"failingSince": null,
"disabledReason": null,
"disabledAt": null
},
"meta": {
"requestId": "5f0c2b9e-7c1d-4a57-9d43-2f6f5a1f0b3c",
"generatedAt": "2026-11-12T09:30:00.000Z"
}
}/api/public/v1/webhooks/endpoints/{endpointId}Change a webhook endpoint#
update_webhook_endpointwebhooks:manageweight: lightChanges what the body names — the address (checked as on creation), the description, the subscriptions, the switch — and keeps the rest; the same PATCH again changes nothing. Answers the endpoint as it is now. Needs a service key with webhooks:manage (a person's key or an assistant never gets it); the key sees the endpoints it created.
Query parameters
-
endpointIdstring · uuidrequiredThe endpoint, asidof an endpoint names it.
Request body application/json
-
urlstringWhere the events are POSTed: https, no user name or password, no #fragment, port 443 or 1024 and above, at most 2048 characters, and the name must resolve to public addresses only — a private network, loopback, link-local and other special addresses are refused (422 WEBHOOK_URL_NOT_ALLOWED). Redirects are never followed. -
descriptionstringA note for people: what receives it. -
eventTypesarray<string>What the endpoint is told about: the crew week (schedule.week.submitted,.approved,.returned) and the managers' month (schedule.month.submitted,.approved,.returned) —schedules:read; a time sheet signed at a level (timesheet.month.approved) —timesheets:read; a sales plan with figures (sales_plan.ready) or written into the forecast (sales_plan.applied) —sales_plans:readand the company's «Планирование продаж»; a store's revenue forecast changed (forecast.updated, once per store and month for five minutes of edits) —analytics:read; the AI credits running low (ai_credits.low) —org:read. A key's endpoint is told only what the key could read itself: the scope, and the reach — an event of a store only for a store of the key's reach, a sales plan only when all its stores are, the AI credits only to a key that reaches the whole company. -
enabledbooleanOff: nothing is sent, and what waits for it waits; on again, it goes on.
Response 200 { data, meta }
The data field:
-
idstring · uuidrequired -
urlstringrequired -
descriptionstringrequired -
eventTypesarray<string>required -
enabledbooleanrequiredOff: the endpoint is sent nothing, and what waits for it waits. An endpoint whose receiver took no message for five days switches itself off (disabledReason). -
ownerobject | objectrequiredVariants
Variant 1-
kind"administrators"required
Variant 2-
kind"service_key"required -
keyIdstring | nullrequired -
keyNamestring | nullrequired
-
-
secretobjectrequiredFields
-
createdAtstring · date-timerequiredWhen the current signing secret was made. -
previousExpiresAtstring · date-time | nullrequiredUntil when the secret before the last rotation still signs; null when there is none.
-
-
createdAtstring · date-timerequired -
updatedAtstring · date-timerequired -
lastSucceededAtstring · date-time | nullrequiredThe last attempt the receiver answered with a 2xx. -
lastFailedAtstring · date-time | nullrequiredThe last attempt that failed. -
failingSincestring · date-time | nullrequiredThe first failed attempt since the last success; null while the receiver takes messages. Five days of it switch the endpoint off. -
disabledReasonstring | nullrequiredWhy the endpoint is off when it switched itself off:failing— five days without a single message taken; what still waited was marked failed. Null when it is on or was switched off by hand. Switching it on (enabled: true) clears it;POST …/deliveries/retrysends again what failed. -
disabledAtstring · date-time | nullrequiredWhen it switched itself off; null otherwise.
Response headers
RateLimit-LimitHow many calls of this operation's weight the credential may make in a minute.RateLimit-RemainingHow many of them are left in the current minute.RateLimit-ResetSeconds until the current minute ends.
Possible errors 400 401 403 404 413 415 422 429 500 503 504
/api/public/v1/webhooks/endpoints/{endpointId}curl -X PATCH "https://api.proschedule.com/api/public/v1/webhooks/endpoints/{endpointId}" \
-H "Authorization: Bearer $PROSCHEDULE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"enabled": false
}'const response = await fetch("https://api.proschedule.com/api/public/v1/webhooks/endpoints/{endpointId}", {
method: "PATCH",
headers: {
Authorization: `Bearer ${process.env.PROSCHEDULE_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"enabled": false
}),
});
if (!response.ok) throw new Error((await response.json()).code);
const { data, meta } = await response.json();import os
import requests
response = requests.patch(
"https://api.proschedule.com/api/public/v1/webhooks/endpoints/{endpointId}",
json={
"enabled": False
},
headers={"Authorization": f"Bearer {os.environ['PROSCHEDULE_API_KEY']}"},
timeout=30,
)
response.raise_for_status()
body = response.json()
print(body["data"]){
"data": {
"id": "0b8f2c4e-6a1d-4c3b-9e7f-5a2d1c0b9e8f",
"url": "https://hooks.example.com/proschedule",
"description": "Payroll sync",
"eventTypes": [
"schedule.week.approved"
],
"enabled": false,
"owner": {
"kind": "service_key",
"keyId": "a1b2c3d4e5f6",
"keyName": "Payroll"
},
"secret": {
"createdAt": "2026-11-23T09:00:00.000Z",
"previousExpiresAt": null
},
"createdAt": "2026-11-23T09:00:00.000Z",
"updatedAt": "2026-11-23T09:00:00.000Z",
"lastSucceededAt": "2026-11-23T09:00:01.000Z",
"lastFailedAt": null,
"failingSince": null,
"disabledReason": null,
"disabledAt": null
},
"meta": {
"requestId": "5f0c2b9e-7c1d-4a57-9d43-2f6f5a1f0b3c",
"generatedAt": "2026-11-12T09:30:00.000Z"
}
}/api/public/v1/webhooks/endpoints/{endpointId}Delete a webhook endpoint#
delete_webhook_endpointwebhooks:manageweight: lightDeletes the endpoint and its delivery history; what was still to be sent to it is not sent. It cannot be undone. A second DELETE is 404. Needs a service key with webhooks:manage (a person's key or an assistant never gets it); the key sees the endpoints it created.
Query parameters
-
endpointIdstring · uuidrequiredThe endpoint, asidof an endpoint names it.
Response 200 { data, meta }
The data field:
-
idstring · uuidrequired -
deletedtruerequired
Response headers
RateLimit-LimitHow many calls of this operation's weight the credential may make in a minute.RateLimit-RemainingHow many of them are left in the current minute.RateLimit-ResetSeconds until the current minute ends.
Possible errors 400 401 403 404 429 500 503 504
/api/public/v1/webhooks/endpoints/{endpointId}curl -X DELETE "https://api.proschedule.com/api/public/v1/webhooks/endpoints/{endpointId}" \
-H "Authorization: Bearer $PROSCHEDULE_API_KEY"const response = await fetch("https://api.proschedule.com/api/public/v1/webhooks/endpoints/{endpointId}", {
method: "DELETE",
headers: {
Authorization: `Bearer ${process.env.PROSCHEDULE_API_KEY}`,
},
});
if (!response.ok) throw new Error((await response.json()).code);
const { data, meta } = await response.json();import os
import requests
response = requests.delete(
"https://api.proschedule.com/api/public/v1/webhooks/endpoints/{endpointId}",
headers={"Authorization": f"Bearer {os.environ['PROSCHEDULE_API_KEY']}"},
timeout=30,
)
response.raise_for_status()
body = response.json()
print(body["data"]){
"data": {
"id": "0b8f2c4e-6a1d-4c3b-9e7f-5a2d1c0b9e8f",
"deleted": true
},
"meta": {
"requestId": "5f0c2b9e-7c1d-4a57-9d43-2f6f5a1f0b3c",
"generatedAt": "2026-11-12T09:30:00.000Z"
}
}/api/public/v1/webhooks/endpoints/{endpointId}/rotate-secretRotate a webhook endpoint's secret#
rotate_webhook_secretwebhooks:manageweight: lightMakes a new signing secret and answers it once. For overlapHours (1–168, default 24) every message carries two signatures — the new secret's and the old one's — so the receiver switches in its own time; then the old secret is dropped. A rotation during an overlap ends the older one at once. Idempotency-Key required. Needs a service key with webhooks:manage (a person's key or an assistant never gets it); the key sees the endpoints it created.
Query parameters
-
endpointIdstring · uuidrequiredThe endpoint, asidof an endpoint names it.
Request body application/json
-
overlapHoursintegerHow long the secret it replaces still signs too, in hours. Default 24.
Response 200 { data, meta }
The data field:
-
endpointobjectrequiredFields
-
idstring · uuidrequired -
urlstringrequired -
descriptionstringrequired -
eventTypesarray<string>required -
enabledbooleanrequiredOff: the endpoint is sent nothing, and what waits for it waits. An endpoint whose receiver took no message for five days switches itself off (disabledReason). -
ownerobject | objectrequiredVariants
Variant 1-
kind"administrators"required
Variant 2-
kind"service_key"required -
keyIdstring | nullrequired -
keyNamestring | nullrequired
-
-
secretobjectrequiredFields
-
createdAtstring · date-timerequiredWhen the current signing secret was made. -
previousExpiresAtstring · date-time | nullrequiredUntil when the secret before the last rotation still signs; null when there is none.
-
-
createdAtstring · date-timerequired -
updatedAtstring · date-timerequired -
lastSucceededAtstring · date-time | nullrequiredThe last attempt the receiver answered with a 2xx. -
lastFailedAtstring · date-time | nullrequiredThe last attempt that failed. -
failingSincestring · date-time | nullrequiredThe first failed attempt since the last success; null while the receiver takes messages. Five days of it switch the endpoint off. -
disabledReasonstring | nullrequiredWhy the endpoint is off when it switched itself off:failing— five days without a single message taken; what still waited was marked failed. Null when it is on or was switched off by hand. Switching it on (enabled: true) clears it;POST …/deliveries/retrysends again what failed. -
disabledAtstring · date-time | nullrequiredWhen it switched itself off; null otherwise.
-
-
secretstring | nullrequiredThe signing secret,whsec_…— shown here once and never again; null in an answer replayed under the same Idempotency-Key (rotate the secret if the first answer was lost).
Response headers
RateLimit-LimitHow many calls of this operation's weight the credential may make in a minute.RateLimit-RemainingHow many of them are left in the current minute.RateLimit-ResetSeconds until the current minute ends.
Possible errors 400 401 403 404 409 413 415 422 429 500 503 504
/api/public/v1/webhooks/endpoints/{endpointId}/rotate-secretcurl -X POST "https://api.proschedule.com/api/public/v1/webhooks/endpoints/{endpointId}/rotate-secret" \
-H "Authorization: Bearer $PROSCHEDULE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"overlapHours": 24
}'const response = await fetch("https://api.proschedule.com/api/public/v1/webhooks/endpoints/{endpointId}/rotate-secret", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PROSCHEDULE_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"overlapHours": 24
}),
});
if (!response.ok) throw new Error((await response.json()).code);
const { data, meta } = await response.json();import os
import requests
response = requests.post(
"https://api.proschedule.com/api/public/v1/webhooks/endpoints/{endpointId}/rotate-secret",
json={
"overlapHours": 24
},
headers={"Authorization": f"Bearer {os.environ['PROSCHEDULE_API_KEY']}"},
timeout=30,
)
response.raise_for_status()
body = response.json()
print(body["data"]){
"data": {
"endpoint": {
"id": "0b8f2c4e-6a1d-4c3b-9e7f-5a2d1c0b9e8f",
"url": "https://hooks.example.com/proschedule",
"description": "Payroll sync",
"eventTypes": [
"schedule.week.approved"
],
"enabled": true,
"owner": {
"kind": "service_key",
"keyId": "a1b2c3d4e5f6",
"keyName": "Payroll"
},
"secret": {
"createdAt": "2026-11-24T08:00:00.000Z",
"previousExpiresAt": "2026-11-25T08:00:00.000Z"
},
"createdAt": "2026-11-23T09:00:00.000Z",
"updatedAt": "2026-11-23T09:00:00.000Z",
"lastSucceededAt": "2026-11-23T09:00:01.000Z",
"lastFailedAt": null,
"failingSince": null,
"disabledReason": null,
"disabledAt": null
},
"secret": "whsec_Y2FmZWJhYmVjYWZlYmFiZWNhZmViYWJlY2FmZWI="
},
"meta": {
"requestId": "5f0c2b9e-7c1d-4a57-9d43-2f6f5a1f0b3c",
"generatedAt": "2026-11-12T09:30:00.000Z"
}
}/api/public/v1/webhooks/endpoints/{endpointId}/testSend a test event#
send_webhook_testwebhooks:manageweight: lightQueues a webhook.test for the endpoint — { type: "webhook.test", timestamp, data: { endpointId } }, signed like every message — to check that it arrives and its signature verifies. It goes out within seconds, with the same retries as any event; its attempts are in the delivery history. A switched-off endpoint is sent nothing (409 WEBHOOK_ENDPOINT_DISABLED). Idempotency-Key required. Needs a service key with webhooks:manage (a person's key or an assistant never gets it); the key sees the endpoints it created.
Query parameters
-
endpointIdstring · uuidrequiredThe endpoint, asidof an endpoint names it.
Request body application/json
Response 200 { data, meta }
The data field:
-
queuedtruerequired
Response headers
RateLimit-LimitHow many calls of this operation's weight the credential may make in a minute.RateLimit-RemainingHow many of them are left in the current minute.RateLimit-ResetSeconds until the current minute ends.
Possible errors 400 401 403 404 409 413 415 422 429 500 503 504
/api/public/v1/webhooks/endpoints/{endpointId}/testcurl -X POST "https://api.proschedule.com/api/public/v1/webhooks/endpoints/{endpointId}/test" \
-H "Authorization: Bearer $PROSCHEDULE_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'const response = await fetch("https://api.proschedule.com/api/public/v1/webhooks/endpoints/{endpointId}/test", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PROSCHEDULE_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({}),
});
if (!response.ok) throw new Error((await response.json()).code);
const { data, meta } = await response.json();import os
import requests
response = requests.post(
"https://api.proschedule.com/api/public/v1/webhooks/endpoints/{endpointId}/test",
json={},
headers={"Authorization": f"Bearer {os.environ['PROSCHEDULE_API_KEY']}"},
timeout=30,
)
response.raise_for_status()
body = response.json()
print(body["data"]){
"data": {
"queued": true
},
"meta": {
"requestId": "5f0c2b9e-7c1d-4a57-9d43-2f6f5a1f0b3c",
"generatedAt": "2026-11-12T09:30:00.000Z"
}
}/api/public/v1/webhooks/endpoints/{endpointId}/deliveriesWebhook delivery history#
list_webhook_deliveriesThe endpoint's deliveries of the last 30 days, newest first: the event's type, when it was made, its state, how many attempts it took, when the next one is due, and its last ten attempts — status code, error class, duration. The receiver's answer body is never kept. 50 per page (limit up to 200; page.nextCursor as cursor for the next). Needs a service key with webhooks:manage (a person's key or an assistant never gets it); the key sees the endpoints it created.
Query parameters
-
endpointIdstring · uuidrequiredThe endpoint, asidof an endpoint names it. -
statusarray<string>Keeps the deliveries in these states, as a comma list. Default: every state. -
limitintegerThe size of a page. -
cursorstringpage.nextCursorof the page before; leave it out for the first page. A cursor belongs to its list and to the other parameters it was made with.
Response 200 { data, meta, page }
The data field:
-
itemsarray<object>requiredFields
-
idstringrequiredThewebhook-idevery attempt of it carried: the receiver drops a repeat by it. -
eventTypestringrequired -
createdAtstring · date-timerequired -
statusstringrequiredpending(waits for its next attempt),sending,succeeded(answered 2xx),failed(out of attempts, or not allowed). -
attemptsintegerrequired -
nextAttemptAtstring · date-time | nullrequired -
finishedAtstring · date-time | nullrequired -
recentAttemptsarray<object>requiredThe last ten attempts, newest first. The receiver's answer body is never kept.Fields
-
atstring · date-timerequired -
durationMsintegerrequired -
httpStatusinteger | nullrequiredThe receiver's status code; null when no answer came. -
errorstring | nullrequiredNull for a success.timeout(no connection in 3 s or no answer in 5 s),dns,blocked_address(the name resolved to an address that is not public),tls,connection,redirect(a 3xx is not followed),http_4xx,http_5xx,not_allowed(the endpoint may not be told any more: the company's access or the key's scope or reach is gone — no further attempts).
-
-
Response headers
RateLimit-LimitHow many calls of this operation's weight the credential may make in a minute.RateLimit-RemainingHow many of them are left in the current minute.RateLimit-ResetSeconds until the current minute ends.LinkThe address of the next page,<…>; rel="next", while the list has more.
Possible errors 400 401 403 404 429 500 503 504
/api/public/v1/webhooks/endpoints/{endpointId}/deliveriescurl "https://api.proschedule.com/api/public/v1/webhooks/endpoints/{endpointId}/deliveries?status=failed" \
-H "Authorization: Bearer $PROSCHEDULE_API_KEY"const response = await fetch("https://api.proschedule.com/api/public/v1/webhooks/endpoints/{endpointId}/deliveries?status=failed", {
headers: {
Authorization: `Bearer ${process.env.PROSCHEDULE_API_KEY}`,
},
});
if (!response.ok) throw new Error((await response.json()).code);
const { data, meta, page } = await response.json();import os
import requests
response = requests.get(
"https://api.proschedule.com/api/public/v1/webhooks/endpoints/{endpointId}/deliveries",
params={"status": "failed"},
headers={"Authorization": f"Bearer {os.environ['PROSCHEDULE_API_KEY']}"},
timeout=30,
)
response.raise_for_status()
body = response.json()
print(body["data"]){
"data": {
"items": [
{
"id": "msg_5b0f6a3e2d1c4f8e9a7b1c2d3e4f5a6b",
"eventType": "schedule.week.approved",
"createdAt": "2026-11-23T09:10:00.000Z",
"status": "failed",
"attempts": 8,
"nextAttemptAt": null,
"finishedAt": "2026-11-24T12:40:00.000Z",
"recentAttempts": [
{
"at": "2026-11-24T12:40:00.000Z",
"durationMs": 5003,
"httpStatus": null,
"error": "timeout"
}
]
}
]
},
"meta": {
"requestId": "5f0c2b9e-7c1d-4a57-9d43-2f6f5a1f0b3c",
"generatedAt": "2026-11-12T09:30:00.000Z"
},
"page": {
"limit": 50,
"hasMore": false,
"nextCursor": null
}
}/api/public/v1/webhooks/deliveries/{deliveryId}/retryRetry a delivery#
retry_webhook_deliverywebhooks:manageweight: lightTries a delivery again now — a failed one, or one that succeeded and is wanted again — with a fresh round of attempts and the same webhook-id, so a receiver that already has it can tell. A pending one is brought forward to now. Idempotency-Key required. Needs a service key with webhooks:manage (a person's key or an assistant never gets it); the key sees the endpoints it created.
Query parameters
-
deliveryIdstring · regexrequiredThe delivery, by thewebhook-idits attempts carried (msg_…).
Request body application/json
Response 200 { data, meta }
The data field:
-
requeuedbooleanrequiredFalse while an attempt of it is in flight this moment: it goes on by itself.
Response headers
RateLimit-LimitHow many calls of this operation's weight the credential may make in a minute.RateLimit-RemainingHow many of them are left in the current minute.RateLimit-ResetSeconds until the current minute ends.
Possible errors 400 401 403 404 409 413 415 422 429 500 503 504
/api/public/v1/webhooks/deliveries/{deliveryId}/retrycurl -X POST "https://api.proschedule.com/api/public/v1/webhooks/deliveries/{deliveryId}/retry" \
-H "Authorization: Bearer $PROSCHEDULE_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'const response = await fetch("https://api.proschedule.com/api/public/v1/webhooks/deliveries/{deliveryId}/retry", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PROSCHEDULE_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({}),
});
if (!response.ok) throw new Error((await response.json()).code);
const { data, meta } = await response.json();import os
import requests
response = requests.post(
"https://api.proschedule.com/api/public/v1/webhooks/deliveries/{deliveryId}/retry",
json={},
headers={"Authorization": f"Bearer {os.environ['PROSCHEDULE_API_KEY']}"},
timeout=30,
)
response.raise_for_status()
body = response.json()
print(body["data"]){
"data": {
"requeued": true
},
"meta": {
"requestId": "5f0c2b9e-7c1d-4a57-9d43-2f6f5a1f0b3c",
"generatedAt": "2026-11-12T09:30:00.000Z"
}
}/api/public/v1/webhooks/endpoints/{endpointId}/retryRetry the failed deliveries since a moment#
retry_webhook_deliverieswebhooks:manageweight: lightAfter an outage longer than the retries: every failed delivery of the endpoint made since since (at most 30 days back — older ones are gone) starts a fresh round of attempts now. Answers how many. Idempotency-Key required. Needs a service key with webhooks:manage (a person's key or an assistant never gets it); the key sees the endpoints it created.
Query parameters
-
endpointIdstring · uuidrequiredThe endpoint, asidof an endpoint names it.
Request body application/json
-
sincestring · date-timerequiredEvery delivery of the endpoint that failed and was made at or after this moment is tried again.
Response 200 { data, meta }
The data field:
-
requeuedintegerrequired
Response headers
RateLimit-LimitHow many calls of this operation's weight the credential may make in a minute.RateLimit-RemainingHow many of them are left in the current minute.RateLimit-ResetSeconds until the current minute ends.
Possible errors 400 401 403 404 409 413 415 422 429 500 503 504
/api/public/v1/webhooks/endpoints/{endpointId}/retrycurl -X POST "https://api.proschedule.com/api/public/v1/webhooks/endpoints/{endpointId}/retry" \
-H "Authorization: Bearer $PROSCHEDULE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"since": "2026-11-22T00:00:00.000Z"
}'const response = await fetch("https://api.proschedule.com/api/public/v1/webhooks/endpoints/{endpointId}/retry", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PROSCHEDULE_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"since": "2026-11-22T00:00:00.000Z"
}),
});
if (!response.ok) throw new Error((await response.json()).code);
const { data, meta } = await response.json();import os
import requests
response = requests.post(
"https://api.proschedule.com/api/public/v1/webhooks/endpoints/{endpointId}/retry",
json={
"since": "2026-11-22T00:00:00.000Z"
},
headers={"Authorization": f"Bearer {os.environ['PROSCHEDULE_API_KEY']}"},
timeout=30,
)
response.raise_for_status()
body = response.json()
print(body["data"]){
"data": {
"requeued": 12
},
"meta": {
"requestId": "5f0c2b9e-7c1d-4a57-9d43-2f6f5a1f0b3c",
"generatedAt": "2026-11-12T09:30:00.000Z"
}
}Metrics catalogue#
Everything POST/api/public/v1/metrics/query can be asked: measures, dimensions, filters and periods. GET/api/public/v1/metrics/catalog answers the same catalogue, with labels in English or Russian (lang). The ids of stores, nodes and reference values for the filters come from GET/api/public/v1/directory/search and GET/api/public/v1/stores.
The breakdowns and filters by employee, position and role are open only where the company switched “People data” on and the key or connection carries team:read; otherwise the catalogue does not list them, and in a query they answer DATA_CATEGORY_DISABLED (people data closed) or INSUFFICIENT_SCOPE (no scope). The catalogue below is the one a company with people data closed sees.
Measures#
| Measure | Meaning | Format | Dimensions |
|---|---|---|---|
| Sales | |||
sales.revenueRevenue | Sales revenue (the sum of sales) from the sales history. 'Выручка', 'продажи', 'оборот'. | moneyadditive: yes | time.day time.week time.month time.quarter store node weekday hour order_channel store_concept |
sales.transactionsTransactions | Number of transactions (checks, orders). 'Чеки', 'транзакции', 'заказы', 'трафик'. | countadditive: yes | time.day time.week time.month time.quarter store node weekday hour order_channel store_concept |
sales.itemsItems sold | Number of menu items sold. 'Блюда', 'позиции в чеках'. | countadditive: yes | time.day time.week time.month time.quarter store node weekday hour order_channel store_concept |
sales.avg_checkAverage check | Revenue / transactions. 'Средний чек'. | moneyadditive: no | time.day time.week time.month time.quarter store node weekday hour order_channel store_concept |
sales.items_per_checkItems per check | Menu items sold / transactions. 'Наполненность чека'. | decimaladditive: no | time.day time.week time.month time.quarter store node weekday hour order_channel store_concept |
| Forecast | |||
forecast.revenueForecast revenue | The revenue forecast stored per store and day (the plan the schedules are built on). Compare with sales.revenue for 'план-факт' / 'прогноз против факта'. | moneyadditive: yes | time.day time.week time.month time.quarter store node weekday store_concept |
forecast.transactionsForecast transactions | The forecast number of transactions per store and day. | countadditive: yes | time.day time.week time.month time.quarter store node weekday store_concept |
| Schedule | |||
schedule.hoursScheduled hours | Hours of shifts in the crew schedules (every schedule status; gross, breaks not deducted). 'Плановые часы', 'часы по графику', 'сколько запланировано'. | hoursadditive: yes | time.day time.week time.month time.quarter store node weekday store_concept |
schedule.shiftsScheduled shifts | Number of scheduled shifts (an employee's shifts on one day count once). | countadditive: yes | time.day time.week time.month time.quarter store node weekday store_concept |
schedule.employeesScheduled employees | Distinct employees with at least one scheduled shift. | countadditive: no | time.day time.week time.month time.quarter store node weekday store_concept |
schedule.training_hoursTraining hours | Scheduled hours of trainee (training) shifts. | hoursadditive: yes | time.day time.week time.month time.quarter store node weekday store_concept |
| Actuals | |||
fact.hoursWorked hours | Hours actually worked (approved time records; a shift's latest record counts). 'Факт', 'отработано', 'табель'. | hoursadditive: yes | time.day time.week time.month time.quarter store node weekday store_concept |
fact.shiftsWorked shifts | Number of worked (approved) shifts. | countadditive: yes | time.day time.week time.month time.quarter store node weekday store_concept |
fact.employeesEmployees who worked | Distinct employees with at least one worked shift. | countadditive: no | time.day time.week time.month time.quarter store node weekday store_concept |
| Productivity | |||
productivity.spmhSPMH | Sales per scheduled labour hour: revenue / scheduled hours of the same stores and days. 'SPMH', 'выручка на час'. | moneyadditive: no | time.day time.week time.month time.quarter store node weekday store_concept |
productivity.tplhTPLH | Transactions per scheduled labour hour: transactions / scheduled hours. 'TPLH', 'чеков на час'. | decimaladditive: no | time.day time.week time.month time.quarter store node weekday store_concept |
productivity.fact_spmhSPMH (worked) | Revenue / worked (approved) hours. | moneyadditive: no | time.day time.week time.month time.quarter store node weekday store_concept |
productivity.hours_varianceHours: worked − scheduled | Worked hours minus scheduled hours (positive = more worked than planned). 'Переработки', 'отклонение от графика'. | hoursadditive: yes | time.day time.week time.month time.quarter store node weekday store_concept |
| Team | |||
team.headcountHeadcount | Employees on the roster as of the period's last day (hired by then, not dismissed). No time breakdown. | countadditive: yes | store node store_concept |
team.hiresHires | Employees whose hire date falls in the period. Time grain: month or quarter. | countadditive: yes | time.month time.quarter store node store_concept |
team.leaversLeavers | Employees dismissed (removed from the roster) in the period. Time grain: month or quarter. 'Текучесть'. | countadditive: yes | time.month time.quarter store node store_concept |
Dimensions#
| Dimension | Kind | Meaning |
|---|---|---|
time.dayDay | time | Calendar day. The id of a cell is the date, YYYY-MM-DD. |
time.weekWeek | time | ISO week, Monday to Sunday, whatever the company's first day of the week. The id of a cell is the date of its Monday. |
time.monthMonth | time | Calendar month. The id of a cell is YYYY-MM. |
time.quarterQuarter | time | Calendar quarter. The id of a cell is YYYY-Qn. |
storeStore | category | The store the figure belongs to. The id of a cell is the store's id, as in GET /stores. |
nodeStructure node | category | A node of the company structure above the stores (a region, a city). Groups the stores under their ancestor at nodeLevel — the level of GET /structure/nodes, where 0 is a top node of the credential's reach; without nodeLevel, under each store's parent node. A store with no node above it inside the reach is a row of its own. |
weekdayWeekday | category | Day of the week. The id of a cell is monday … sunday. |
hourHour | category | Hour of the business day the sale was made in, 06:00 to 05:00. The id of a cell is the clock time, HH:00; nextDay is true for the hours after midnight, which belong to the business day that began the evening before. Sales measures only; the period is at most 92 days. |
order_channelSales channel | category | The sales channel (dine-in, takeaway, delivery, …) as the company names them. Sales measures only. |
store_conceptStore concept | category | The store's concept or format. |
Filters#
| Filter | Search type | Meaning |
|---|---|---|
nodeIdsStructure nodes | node | Ids of structure nodes (GET /structure/nodes, or the directory search with types=node): the stores at and below each of them. |
storeIdsStores | store | Ids of stores (GET /stores, or the directory search with types=store). |
storeConceptIdsStore concepts | store_concept | Ids of store concepts (the directory search with types=store_concept): the stores of these concepts. |
orderChannelIdsSales channels | order_channel | Ids of sales channels (the directory search with types=order_channel). Sales measures only. |
Periods and comparisons#
last_7d last_30d last_90d last_3_months last_12_months this_month prev_month this_yearComparisons (compareWith): previous_period same_period_last_year
Query limits#
| Measures in one query, at most | 6 |
| Dimensions, at most | 3 |
| Rows by default | 50 |
| Rows, at most | 200 |
| Days in a custom period, at most | 1830 |
| Days in a breakdown by position or role, at most | 92 |
| Days in a breakdown by hour, at most | 92 |
| Values in one filter, at most | 50 |