ProSchedule
Getting started
ProSchedule API · v1.0

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.

Connection
MCPhttps://api.proschedule.com/mcp
RESThttps://api.proschedule.com/api/public/v1
KeyAuthorization: Bearer psk_…
MCPMCP server

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.

RESTPublic API

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.

TaskUseSign in with
Questions about the figures in ChatGPT or ClaudeMCPOAuth: the employee signs in to ProSchedule and consents
Your own agent on a serverMCP or RESTAn API key in the Authorization header
Power BI reports, an export to a warehouse, an integration with your systemRESTA service key: explicit scopes and reach, independent of any employee
Your own script or spreadsheet that works as youRESTA 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.

Five steps, no code and no keys: you add the address in the assistant, sign in to ProSchedule and give consent.

  1. 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.

  2. The employee copies the address

    “Profile” → “My AI connections” → “Connection address”: https://api.proschedule.com/mcp.

  3. 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.

  4. 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”.

  5. 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”.

ClientIdentifies itself withState
ChatGPTA client document on chatgpt.com, signed with private_key_jwtTested in November 2026: sign-in, consent, tool calls
Claude (claude.ai connector)A client document on claude.ai, a public client with PKCETested 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.

“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.

Connection address
https://api.proschedule.com/mcp
“Profile” → “My AI connections”
Questions to ask the assistant
  • 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?
  1. 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).

  2. 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_KEY environment variable or your secret store.

  3. 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_… or X-API-Key: psk_….

  4. Read the answer

    The answer is an envelope, { data, meta }. data.credential is the kind of key, its scopes and its expiry; data.subject the employee and the role (for a personal key); data.reach the reach: full — the whole company, nodes — structure nodes and everything below them. data.today and data.businessDay say which date periods count from and at which hour the business day starts.

    meta.requestId is the id of the call: quote it when you report a problem.

  5. 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.

Request
GET/api/public/v1/me
curl "https://api.proschedule.com/api/public/v1/me" \
  -H "Authorization: Bearer $PROSCHEDULE_API_KEY"
Response 200
{
  "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.

Addresshttps://api.proschedule.com/mcp
TransportStreamable 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-inOAuth 2.1 (how ChatGPT and Claude connect) or an API key in Authorization
Toolsget_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 nameproschedule

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.

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 (S256 required). The return address is https, or http on this computer (loopback); private schemes such as cursor:// 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 /mcp only: on REST the token of a live connection gets INVALID_CREDENTIAL.

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:

errorWhereWhat happened
access_deniedReturn addressThe 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_targetReturn addressThe request names a resource other than https://api.proschedule.com/mcp.
invalid_redirect_uriRegistration, 400The 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, 400The 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_unavailableRegistration, 429 or 503More than 10 registrations an hour from one address (429), or the client registry is full (503). Retry after Retry-After seconds.
invalid_requestReturn address; 403A 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.

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.

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.

MCPget_context
any scopereadOnlyHintidempotentHintREST: GET/me

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.

Call tools/call
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_context",
    "arguments": {}
  }
}
Answer
{
  "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"
      }
    }
  }
}
MCPsearch_directory
org:readreadOnlyHintidempotentHintREST: GET/directory/search

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

  • qstringrequired
    The name to look for, or a part of it.
    length 1–100
  • typesarray<any>
    What to search, as a comma list. Default: every type.
    items one of store node position role store_concept order_channelitems 1–6default ["store","node","position","role","store_concept","order_channel"]
  • limitinteger
    The most results to return.
    range 1–50default 10

Result

structuredContent is the same { data, meta, page } envelope that is answered by GET/api/public/v1/directory/search.

Call tools/call
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "search_directory",
    "arguments": {
      "q": "чиланзар",
      "types": [
        "store"
      ]
    }
  }
}
Answer
{
  "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"
      }
    }
  }
}
MCPlist_metrics
analytics:readreadOnlyHintidempotentHintREST: GET/metrics/catalog

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

  • langany
    The language of the labels.
    one of en rudefault "en"

Result

structuredContent is the same { data, meta, page } envelope that is answered by GET/api/public/v1/metrics/catalog.

Call tools/call
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "list_metrics",
    "arguments": {
      "lang": "en"
    }
  }
}
Answer
{
  "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"
      }
    }
  }
}
MCPquery_metrics
analytics:readreadOnlyHintidempotentHintREST: POST/metrics/query

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>required
    What to compute: ids of measures from the metrics catalogue.
    items one of sales.revenue sales.transactions sales.items sales.avg_check sales.items_per_check forecast.revenue forecast.transactions schedule.hours schedule.shifts schedule.employees schedule.training_hours fact.hours fact.shifts fact.employees productivity.spmh productivity.tplh productivity.fact_spmh productivity.hours_variance team.headcount team.hires team.leaversitems 1–6
  • dimensionsarray<any>
    What to break the figures down by: ids of dimensions from the metrics catalogue. Default: none, one row of totals.
    items one of time.day time.week time.month time.quarter store node weekday hour order_channel store_concept position role employeeitems ≤ 3default []
  • periodobject | objectrequired
    A preset, counted from today, or the caller's own dates, both included.
    Variants
    Variant 1
    • presetanyrequired
      one of last_7d last_30d last_90d last_3_months last_12_months this_month prev_month this_year
    Variant 2
    • fromstring · daterequired
      pattern ^((\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\d|3[01])|(0[469]|11)-(0[1-9]|[12]\d|30)|(02)-(0[1-9]|1\d|2[0-8])))$
    • tostring · daterequired
      pattern ^((\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\d|3[01])|(0[469]|11)-(0[1-9]|[12]\d|30)|(02)-(0[1-9]|1\d|2[0-8])))$
  • compareWithany | null
    Adds each measure once more, for the previous period or for the same period a year earlier.
    one of previous_period same_period_last_yeardefault null
  • filtersobject
    Keeps the figures of the listed ids; the metrics catalogue says what each filter takes.
    default {}
    Fields
    • nodeIdsarray<string>
      items ≤ 50item length 1–200
    • storeIdsarray<string>
      items ≤ 50item length 1–200
    • storeConceptIdsarray<string>
      items ≤ 50item length 1–200
    • orderChannelIdsarray<string>
      items ≤ 50item length 1–200
    • positionIdsarray<string>
      items ≤ 50item length 1–200
    • roleIdsarray<string>
      items ≤ 50item length 1–200
    • employeeIdsarray<string>
      items ≤ 50item length 1–200
  • sortobject | null
    The order of the rows: by a requested measure or by the label of the first dimension. Not taken with a time bucket.
    default null
    Fields
    • byanyrequired
      one of sales.revenue sales.transactions sales.items sales.avg_check sales.items_per_check forecast.revenue forecast.transactions schedule.hours schedule.shifts schedule.employees schedule.training_hours fact.hours fact.shifts fact.employees productivity.spmh productivity.tplh productivity.fact_spmh productivity.hours_variance team.headcount team.hires team.leavers label
    • directionanyrequired
      one of asc desc
  • limitinteger
    The most rows to return.
    range 1–200default 50
  • nodeLevelinteger | null
    With the dimension node: the level (GET /structure/nodes) of the nodes to group by. Default: each store's parent.
    default null
  • todaystring · date
    The caller's local date, which a preset is counted from. Default: the UTC date.
    pattern ^((\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\d|3[01])|(0[469]|11)-(0[1-9]|[12]\d|30)|(02)-(0[1-9]|1\d|2[0-8])))$

Result

structuredContent is the same { data, meta, page } envelope that is answered by POST/api/public/v1/metrics/query.

Call tools/call
{
  "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
    }
  }
}
Answer
{
  "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"
      }
    }
  }
}
MCPget_schedule_status
schedules:readreadOnlyHintidempotentHintREST: GET/schedules/status

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 · date
    A date, any day of the week: reads the crew schedules of the company's week that contains it. Give this or month, not both.
    pattern ^((\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\d|3[01])|(0[469]|11)-(0[1-9]|[12]\d|30)|(02)-(0[1-9]|1\d|2[0-8])))$
  • monthstring
    A month (YYYY-MM): reads the managers' schedules of that month. Give this or weekStart, not both.
    pattern ^(\d{4})-(0[1-9]|1[0-2])$
  • nodeIdstring
    Keeps the stores below this structure node.
    length 1–200
  • statusesarray<any>
    Keeps the stores in these statuses, as a comma list. Default: every status.
    items one of not_created draft submitted approveditems 1–4
  • limitinteger
    The size of a page.
    range 1–200default 50
  • cursorstring
    page.nextCursor of 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.

Call tools/call
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_schedule_status",
    "arguments": {
      "weekStart": "2026-11-11",
      "statuses": [
        "draft",
        "not_created"
      ]
    }
  }
}
Answer
{
  "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
      }
    }
  }
}
MCPget_store_week_schedule
schedules:readreadOnlyHintidempotentHintREST: GET/schedules/week

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

  • storeIdstringrequired
    The store (search_directory finds its id by name).
    length 1–200
  • weekStartstring · daterequired
    A date, any day of the week: reads the store's crew schedule of the company's week that contains it; period of the answer says which week that is.
    pattern ^((\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\d|3[01])|(0[469]|11)-(0[1-9]|[12]\d|30)|(02)-(0[1-9]|1\d|2[0-8])))$
  • daystring · date
    A day of that week: adds shifts, that day's shifts (with who works them only where people data reach the caller). Default: no shifts.
    pattern ^((\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\d|3[01])|(0[469]|11)-(0[1-9]|[12]\d|30)|(02)-(0[1-9]|1\d|2[0-8])))$

Result

structuredContent is the same { data, meta, page } envelope that is answered by GET/api/public/v1/schedules/week.

Call tools/call
{
  "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"
    }
  }
}
Answer
{
  "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"
      }
    }
  }
}
MCPget_action_plan_summary
team_development:readreadOnlyHintidempotentHintREST: GET/team-development/action-plans/summary

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

  • monthstring
    The month of the plans (YYYY-MM). Default: the current month — month of the answer says which.
    pattern ^(\d{4})-(0[1-9]|1[0-2])$
  • nodeIdstring
    Keeps the stores below this structure node.
    length 1–200
  • limitinteger
    The size of a page.
    range 1–200default 50
  • cursorstring
    page.nextCursor of 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.

Call tools/call
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_action_plan_summary",
    "arguments": {
      "month": "2026-11"
    }
  }
}
Answer
{
  "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
      }
    }
  }
}
MCPget_labor_report
analytics:readreadOnlyHintidempotentHintREST: GET/reports/labor

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 · daterequired
    The first day of the period (YYYY-MM-DD), included.
    pattern ^((\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\d|3[01])|(0[469]|11)-(0[1-9]|[12]\d|30)|(02)-(0[1-9]|1\d|2[0-8])))$
  • tostring · daterequired
    The last day of the period (YYYY-MM-DD), included. At most 62 days from from.
    pattern ^((\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\d|3[01])|(0[469]|11)-(0[1-9]|[12]\d|30)|(02)-(0[1-9]|1\d|2[0-8])))$
  • nodeIdstring
    The structure node to report on, with its direct children as items. Default: the company for a credential that sees all of it; otherwise the top nodes of the credential's reach.
    length 1–200
  • factShiftsany
    Which fact shifts the fact figures count: approved (default, as the dashboard shows them) or with_pending — the pending edits too.
    one of approved with_pendingdefault "approved"

Result

structuredContent is the same { data, meta, page } envelope that is answered by GET/api/public/v1/reports/labor.

Call tools/call
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_labor_report",
    "arguments": {
      "from": "2026-11-02",
      "to": "2026-11-08"
    }
  }
}
Answer
{
  "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"
      }
    }
  }
}
MCPget_managers_report
analytics:readreadOnlyHintidempotentHintREST: GET/reports/managers

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

  • monthstring
    The month of the report (YYYY-MM). Default: the current month by UTC — month of the answer says which.
    pattern ^(\d{4})-(0[1-9]|1[0-2])$
  • nodeIdstring
    The structure node to report on, with its direct children as items. Default: the company for a credential that sees all of it; otherwise the top nodes of the credential's reach.
    length 1–200
  • factShiftsany
    Which fact shifts the fact hours count: approved (default, as the dashboard shows them) or with_pending — the pending edits too.
    one of approved with_pendingdefault "approved"

Result

structuredContent is the same { data, meta, page } envelope that is answered by GET/api/public/v1/reports/managers.

Call tools/call
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_managers_report",
    "arguments": {
      "month": "2026-11"
    }
  }
}
Answer
{
  "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"
      }
    }
  }
}
MCPget_timesheet_approval_status
timesheets:readreadOnlyHintidempotentHintREST: GET/timesheets/approvals

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

  • monthstring
    The month of the time sheets (YYYY-MM). Default: the current month by UTC — month of the answer says which.
    pattern ^(\d{4})-(0[1-9]|1[0-2])$
  • nodeIdstring
    Keeps the stores below this structure node.
    length 1–200
  • limitinteger
    The size of a page.
    range 1–200default 50
  • cursorstring
    page.nextCursor of 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.

Call tools/call
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_timesheet_approval_status",
    "arguments": {
      "month": "2026-10"
    }
  }
}
Answer
{
  "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
      }
    }
  }
}
MCPget_timesheet
timesheets:readreadOnlyHintidempotentHintREST: GET/timesheets

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 · daterequired
    The first day of the period (YYYY-MM-DD), included.
    pattern ^((\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\d|3[01])|(0[469]|11)-(0[1-9]|[12]\d|30)|(02)-(0[1-9]|1\d|2[0-8])))$
  • tostring · daterequired
    The last day of the period (YYYY-MM-DD), included. At most 31 days from from.
    pattern ^((\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\d|3[01])|(0[469]|11)-(0[1-9]|[12]\d|30)|(02)-(0[1-9]|1\d|2[0-8])))$
  • nodeIdstring
    Keeps the stores below this structure node — or this store.
    length 1–200
  • viewany
    summary (default): one row per person and store with the shifts counted and the hours added up. shifts: one row per worked shift.
    one of summary shiftsdefault "summary"
  • limitinteger
    The size of a page.
    range 1–200default 50
  • cursorstring
    page.nextCursor of 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.

Call tools/call
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_timesheet",
    "arguments": {
      "from": "2026-11-01",
      "to": "2026-11-15"
    }
  }
}
Answer
{
  "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
      }
    }
  }
}
MCPget_absences
team:readreadOnlyHintidempotentHintREST: GET/absences

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 · daterequired
    The first day of the period (YYYY-MM-DD), included.
    pattern ^((\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\d|3[01])|(0[469]|11)-(0[1-9]|[12]\d|30)|(02)-(0[1-9]|1\d|2[0-8])))$
  • tostring · daterequired
    The last day of the period (YYYY-MM-DD), included. At most 92 days from from.
    pattern ^((\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\d|3[01])|(0[469]|11)-(0[1-9]|[12]\d|30)|(02)-(0[1-9]|1\d|2[0-8])))$
  • nodeIdstring
    Keeps the people of the stores below this structure node — or of this store.
    length 1–200
  • limitinteger
    The size of a page.
    range 1–200default 50
  • cursorstring
    page.nextCursor of 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.

Call tools/call
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_absences",
    "arguments": {
      "from": "2026-11-01",
      "to": "2026-11-30"
    }
  }
}
Answer
{
  "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
      }
    }
  }
}
MCPlist_action_items
team_development:readteam:readreadOnlyHintidempotentHintREST: GET/team-development/action-items

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

  • monthstring
    The month of the plans (YYYY-MM). Default: the current month by UTC — month of the answer says which.
    pattern ^(\d{4})-(0[1-9]|1[0-2])$
  • nodeIdstring
    Keeps the actions of the people of the stores below this structure node — or of this store.
    length 1–200
  • statusany
    Keeps the actions in this state: planned, in_progress, done, cancelled; open (planned or in progress) or overdue (open, the deadline passed). Default: every action of the month's plans.
    one of open overdue planned in_progress done cancelled
  • limitinteger
    The size of a page.
    range 1–200default 50
  • cursorstring
    page.nextCursor of 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.

Call tools/call
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "list_action_items",
    "arguments": {
      "month": "2026-11",
      "status": "open"
    }
  }
}
Answer
{
  "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
      }
    }
  }
}
MCPget_sales_planning_dataset
sales_plans:readreadOnlyHintidempotentHintREST: GET/sales-plans/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 · regexrequired
    The month to plan, YYYY-MM: the current month (UTC) or one of the next 12.
    pattern ^(\d{4})-(0[1-9]|1[0-2])$
  • nodeIdstring
    Keeps the stores below this structure node — or this store. Absent: every store of the reach.
    length 1–200

Result

structuredContent is the same { data, meta, page } envelope that is answered by GET/api/public/v1/sales-plans/dataset.

Call tools/call
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_sales_planning_dataset",
    "arguments": {
      "month": "2026-12"
    }
  }
}
Answer
{
  "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"
      }
    }
  }
}
MCPlist_sales_plans
sales_plans:readreadOnlyHintidempotentHintREST: GET/sales-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 · regex
    Keeps the plans of this month, YYYY-MM.
    pattern ^(\d{4})-(0[1-9]|1[0-2])$
  • statusany
    Keeps the plans in this state.
    one of draft ready applied
  • limitinteger
    The size of a page.
    range 1–200default 50
  • cursorstring
    page.nextCursor of 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.

Call tools/call
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "list_sales_plans",
    "arguments": {
      "month": "2026-12"
    }
  }
}
Answer
{
  "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
      }
    }
  }
}
MCPget_sales_plan
sales_plans:readreadOnlyHintidempotentHintREST: GET/sales-plans/{planId}

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 · uuidrequired
    The plan's id (list_sales_plans, or the answer that made it).
    pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$
  • includearray<any>
    daily adds the day-by-day split of every store's figures (daily): up to 31 rows a store.
    items one of daily

Result

structuredContent is the same { data, meta, page } envelope that is answered by GET/api/public/v1/sales-plans/{planId}.

Call tools/call
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_sales_plan",
    "arguments": {}
  }
}
Answer
{
  "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"
      }
    }
  }
}
MCPcreate_sales_plan_draft
sales_plans:writedestructiveHintREST: POST/sales-plans

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 · uuid
    A plan to give new figures to (one the caller may edit). Absent: a new plan.
    pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$
  • versioninteger
    With planId: the plan's version the figures were made against.
    range 0–9007199254740991
  • monthstring · regex
    A new plan's month, YYYY-MM: the current month or one of the next 12.
    pattern ^(\d{4})-(0[1-9]|1[0-2])$
  • scopeobject | object | object
    What a new plan covers: network (every store of the reach, at most 60), a structure node (its stores), or one store.
    Variants
    Variant 1
    • kind"network"required
    Variant 2
    • kind"node"required
    • nodeIdstringrequired
      length 1–200
    Variant 3
    • kind"store"required
    • storeIdstringrequired
      length 1–200
  • titlestring
    A new plan's title; a default names the store or node and the month.
    length ≤ 120
  • summarystring
    What the plan says as a whole, shown to the planner in the app.
    length ≤ 2000
  • storesarray<object>required
    The month's totals by store, each store of the plan at most once.
    items 1–60
    Fields
    • storeIdstringrequired
      A store of the plan.
      length 1–200
    • monthSalesnumberrequired
      The month's sales of the store, in whole currency units.
      range 0–1000000000000000
    • monthTransactionsnumberrequired
      The month's number of receipts.
      range 0–1000000000000000
    • confidenceanyrequired
      How sure the model is of the store's figures.
      one of low medium high
    • rationalestring
      Why these figures, in a few sentences.
      length ≤ 1000
    • assumptionsarray<string>
      What the figures take for granted, at most five short lines.
      items ≤ 5item length ≤ 200
    • risksarray<string>
      What could make them wrong, at most five short lines.
      items ≤ 5item length ≤ 200

Result

structuredContent is the same { data, meta, page } envelope that is answered by POST/api/public/v1/sales-plans.

Call tools/call
{
  "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"
          ]
        }
      ]
    }
  }
}
Answer
{
  "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"
      }
    }
  }
}
MCPstart_ai_sales_plan

Asks 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

  • promptstringrequired
    What the planner's model is asked: goals, context, or a correction of the plan (+10% in Tashkent), or the answers to its questions.
    length 1–2000
  • planIdstring · uuid
    A plan to refine (one the caller may edit). Absent: a new plan.
    pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$
  • monthstring · regex
    A new plan's month, YYYY-MM: the current month or one of the next 12.
    pattern ^(\d{4})-(0[1-9]|1[0-2])$
  • scopeobject | object | object
    What a new plan covers: network (every store of the reach, at most 60), a structure node (its stores), or one store.
    Variants
    Variant 1
    • kind"network"required
    Variant 2
    • kind"node"required
    • nodeIdstringrequired
      length 1–200
    Variant 3
    • kind"store"required
    • storeIdstringrequired
      length 1–200
  • titlestring
    A new plan's title; a default names the store or node and the month.
    length ≤ 120
  • languageany
    The language of the model's summary and reasons. Default: the company's.
    one of ru en he uz es pt de fr ja ar

Result

structuredContent is the same { data, meta, page } envelope that is answered by POST/api/public/v1/sales-plans/ai-runs.

Call tools/call
{
  "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"
      }
    }
  }
}
Answer
{
  "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"
      }
    }
  }
}
MCPestimate_required_hours
analytics:readreadOnlyHintidempotentHintREST: POST/staffing/estimates

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

  • storeIdstringrequired
    The store (search_directory finds its id by name).
    length 1–200
  • daysarray<object>required
    1 to 31 days, each at most once, none more than 30 days from another.
    items 1–31
    Fields
    • datestring · daterequired
      The day (YYYY-MM-DD).
      pattern ^((\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\d|3[01])|(0[469]|11)-(0[1-9]|[12]\d|30)|(02)-(0[1-9]|1\d|2[0-8])))$
    • salesnumberrequired
      The day's sales to staff for, in the company's currency.
      range 0–1000000000000000
    • transactionsnumberrequired
      The day's number of receipts to staff for.
      range 0–1000000000000000
    • menuItemsnumber
      The 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.
      range 0–1000000000000000

Result

structuredContent is the same { data, meta, page } envelope that is answered by POST/api/public/v1/staffing/estimates.

Call tools/call
{
  "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
        }
      ]
    }
  }
}
Answer
{
  "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"
      }
    }
  }
}

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.

PromptWhat it asks the assistant to doArguments
weekly_labor_reviewWeekly 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_readinessSchedule 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_actualForecast 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.

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.

HTTPAnswerWhen
401invalid_token, WWW-AuthenticateNo 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.
400invalid_requestA key or token in the request's address.
403access_deniedA key from an address that is not in “Allowed IP addresses”. The address list applies to keys only.
403invalid_requestA host name this server does not serve.
405—GET or DELETE: the server takes POST only.
400JSON-RPC -32700The body is not JSON.
413JSON-RPC -32600The body is too large.
429JSON-RPC -32000Too many requests from one address.

The answers with error are an OAuth error object, { "error", "error_description" }, not an RFC 9457 document.

A result with isError: true. The codes are those of REST, plus two that only connections get:

The two AI-credit codes reach only an assistant's connection (an OAuth token): a call with a key does not depend on credits.

StatusCodeMeaning
402AI_CREDITS_EXHAUSTEDAI 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.
403AI_CREDITS_LIMIT_REACHEDMonthly 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.
Answer isError
{
  "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 …).

  • 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 10 medium and 8 light calls wait per key or connection, within the call's time limit. CONCURRENCY_LIMITED comes 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.
What you seeCause and what to do
404 on every /api/public/ pathThe public API is not switched on on this server. With frequent retries a 429 may come instead of the 404.
401 UNAUTHENTICATEDThe key did not arrive: check the Authorization header (Bearer psk_…). Some proxies strip it — then use X-API-Key.
401 INVALID_CREDENTIALA typo, a key of another ProSchedule server, or an MCP token on REST.
403 API_ACCESS_DISABLED / API_CONSENT_REQUIREDAn administrator switches “External API access” on and accepts the consent.
403 ROLE_PERMISSION_REQUIREDThe 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_SCOPEIssue 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 existsIt is outside the key's reach. GET/api/public/v1/me shows the reach.
400 INVALID_CURSORThe cursor belongs to another list or other filters. Start without a cursor.
429Wait Retry-After seconds and send fewer calls at once.
504 OPERATION_TIMEOUTThe query is too heavy: shorten the period, drop a dimension or filter by stores.
meta.truncated: trueThere 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_EXHAUSTEDThe 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_REACHEDThe 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 again180 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.

Access

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 keyService key
Issued byAn employee whose role has the permission “Can connect AI assistants and API keys”A company administrator
Acts asIts owner — with the owner's role and place in the structure at the moment of each callA service — with the reach chosen when it was issued
ReachAn administrator — the whole company; anyone else — their structure nodes and everything below them“Whole company” or “Selected structure nodes” (up to 50)
Default / longest term90 / 365 days365 / 365 days
Active at onceup to 5 per employeeup to 20 per company
Stops working by itself whenThe employee is dismissed, removed or hidden; the role loses the permission—

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.

  • 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.

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.

ScopeIn the interfaceOpens
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.

  • 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_FOUND or NODE_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 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 is API_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”.

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.

#CheckAnswer
1A key in the request's address400 CREDENTIAL_IN_QUERY
2Neither Authorization nor X-API-Key401 UNAUTHENTICATED
3The key is not recognised or the secret does not match401 INVALID_CREDENTIAL
4The key is revoked or expired401 CREDENTIAL_REVOKED / CREDENTIAL_EXPIRED
5The request came from an address that is not in “Allowed IP addresses”403 IP_NOT_ALLOWED
6“External API access” is off403 API_ACCESS_DISABLED
7The current consent is not accepted403 API_CONSENT_REQUIRED
8Personal key: the owner is dismissed, removed or hidden403 PRINCIPAL_INACTIVE
9Personal key: the role lacks the permission, or the owner has no access to the manager app403 ROLE_PERMISSION_REQUIRED
10A scope is missing403 INSUFFICIENT_SCOPE
11The operation needs a data category the company has not opened403 DATA_CATEGORY_DISABLED
12The key's limit is spent429 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.

HeaderMeaning
WWW-AuthenticateThe 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.
WhatCost
The REST API with keysFree. 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_plan2 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 connection10 AI credits per successful call by default
MCP tools get_labor_report and get_managers_report through an assistant's connection20 AI credits per successful call by default
MCP tools with an API keyFree
  • 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/call is 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.

Conventions

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.

  • requestIdstringrequired
    The id of the call: the X-Request-Id the request carried, or one the API gave it.
  • generatedAtstring · date-timerequired
  • reachobject
    Whether the answer covers the whole company (full) or the part of its structure the credential reaches (nodes).
    Fields
    • kindstringrequired
      one of full nodes
  • periodobject
    The dates a metrics query was computed for, both included.
    Fields
    • fromstring · daterequired
    • tostring · daterequired
  • comparisonPeriodobject | null
    The dates of the comparison a metrics query asked for; null without one.
    Fields
    • fromstring · daterequired
    • tostring · daterequired
  • currencyany | null
    Always null: the system does not know the currency of money amounts.
  • truncatedboolean
    The table of a metrics query is not the whole answer: there were more rows than limit, 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.
  • weekStartsOnstring
    The first day of the weeks the answer is counted in.
    one of sunday monday tuesday
  • Names are camelCase and ids end in Id; enumeration values are lower case with underscores (not_created).
  • A date is YYYY-MM-DD, a month YYYY-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.currency is always null.
  • Answers are UTF-8; a POST body is application/json in UTF-8, otherwise UNSUPPORTED_MEDIA_TYPE.

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 · urirequired
    An identifier of the kind of problem, the same on every installation.
  • titlestringrequired
  • statusintegerrequired
    The HTTP status of the response.
  • detailstringrequired
    What was expected or what to do. It never repeats the request back.
  • codestringrequired
    one of INVALID_REQUEST MALFORMED_JSON INVALID_CURSOR CREDENTIAL_IN_QUERY UNAUTHENTICATED INVALID_CREDENTIAL CREDENTIAL_EXPIRED CREDENTIAL_REVOKED API_ACCESS_DISABLED API_CONSENT_REQUIRED PRINCIPAL_INACTIVE ROLE_PERMISSION_REQUIRED INSUFFICIENT_SCOPE DATA_CATEGORY_DISABLED APP_NOT_ALLOWED AI_TURN_NOT_COVERED AI_PLANNING_UNAVAILABLE IP_NOT_ALLOWED READ_ONLY_ACCOUNT FORBIDDEN NOT_FOUND STORE_NOT_FOUND NODE_NOT_FOUND SALES_PLAN_NOT_FOUND WEBHOOK_ENDPOINT_NOT_FOUND WEBHOOK_DELIVERY_NOT_FOUND VERSION_CONFLICT PLAN_RUN_IN_PROGRESS PLAN_NOT_READY WEBHOOK_ENDPOINT_LIMIT WEBHOOK_ENDPOINT_DISABLED IDEMPOTENCY_IN_PROGRESS CONFLICT PAYLOAD_TOO_LARGE UNSUPPORTED_MEDIA_TYPE INVALID_QUERY INVALID_PERIOD PERIOD_TOO_LONG WEBHOOK_URL_NOT_ALLOWED TOO_MANY_STORES DIMENSION_NOT_AVAILABLE IDEMPOTENCY_KEY_REUSED RATE_LIMITED CONCURRENCY_LIMITED CAPACITY_EXCEEDED COMPANY_WORK_LIMITED HEAVY_DAILY_LIMIT_REACHED INTERNAL_ERROR SERVICE_UNAVAILABLE OPERATION_TIMEOUT
  • requestIdstring | nullrequired
    The 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 | nullrequired
      A JSON Pointer (RFC 6901) into the request body; null when the entry is not about a body field.
    • parameterstring | nullrequired
      The query parameter; null when the entry is not about one.
    • codestringrequired
      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
    • detailstringrequired

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
Response 400 application/problem+json
{
  "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"
}
StatusCodeMeaning
400INVALID_REQUESTInvalid request. The request has an unknown or malformed parameter or field.
400MALFORMED_JSONMalformed JSON. The request body is not valid JSON.
400INVALID_CURSORInvalid cursor. The cursor is malformed or belongs to another query. Start again without a cursor.
400CREDENTIAL_IN_QUERYCredential 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.
401UNAUTHENTICATEDAuthentication required. Send an API key in the Authorization header as a Bearer token, or in X-API-Key.
401INVALID_CREDENTIALInvalid credential. The credential is not valid.
401CREDENTIAL_EXPIREDCredential expired. The API key has expired. Rotate it or issue a new one.
401CREDENTIAL_REVOKEDCredential revoked. The API key has been revoked.
403API_ACCESS_DISABLEDAPI access is switched off. An administrator of the company has not switched external API access on.
403PRINCIPAL_INACTIVEKey owner is not active. The person this key acts as is no longer active in the company.
403ROLE_PERMISSION_REQUIREDRole permission required. The role of the person this key acts as does not allow API access.
403INSUFFICIENT_SCOPEInsufficient scope. The credential lacks a scope this operation requires.
403DATA_CATEGORY_DISABLEDData category is not open. The company has not opened this category of data to the API.
403APP_NOT_ALLOWEDApplication not allowed. The company does not allow this application to connect. A company administrator can allow it in the API settings.
402AI_TURN_NOT_COVEREDAI 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.
403AI_PLANNING_UNAVAILABLEAI 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.
403IP_NOT_ALLOWEDAddress not allowed. This key cannot be used from the caller's address.
403READ_ONLY_ACCOUNTRead-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
403FORBIDDENForbidden. The credential is not allowed to do this. fallback code
404NOT_FOUNDNot found. The requested resource does not exist.
404STORE_NOT_FOUNDStore not found. No such store within the reach of this credential.
404NODE_NOT_FOUNDStructure node not found. No such structure node within the reach of this credential.
404SALES_PLAN_NOT_FOUNDSales plan not found. No such sales plan that this credential may read.
404WEBHOOK_ENDPOINT_NOT_FOUNDWebhook endpoint not found. No such webhook endpoint that this key manages.
404WEBHOOK_DELIVERY_NOT_FOUNDWebhook delivery not found. No such delivery of an endpoint that this key manages.
409VERSION_CONFLICTVersion conflict. The plan changed since the version the request names. Read it again and decide on what it holds now.
409PLAN_RUN_IN_PROGRESSA model turn is running. The plan has a model turn in flight. Wait for it to end, then try again.
409PLAN_NOT_READYPlan has no figures. The plan has no figures to write into the forecast yet.
409WEBHOOK_ENDPOINT_LIMITToo many webhook endpoints. The company has as many webhook endpoints as it may. Delete one first.
409WEBHOOK_ENDPOINT_DISABLEDWebhook endpoint switched off. The endpoint is switched off and is sent nothing. Switch it on first.
409IDEMPOTENCY_IN_PROGRESSRequest in progress. A request with this Idempotency-Key is still running. Retry shortly. not returned: kept for writing operations, none yet
409CONFLICTConflict. The request conflicts with the current state. fallback code
413PAYLOAD_TOO_LARGEPayload too large. The request body is larger than this API accepts.
415UNSUPPORTED_MEDIA_TYPEUnsupported media type. Send the request body as application/json in UTF-8.
422INVALID_QUERYInvalid query. The query cannot be run as it is written.
422INVALID_PERIODInvalid period. The period is not valid.
422PERIOD_TOO_LONGPeriod too long. The period is longer than this query allows.
422WEBHOOK_URL_NOT_ALLOWEDWebhook 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.
422TOO_MANY_STORESToo many stores. The call covers more stores than one call may read. Narrow it to a structure node.
422DIMENSION_NOT_AVAILABLEDimension not available. A requested dimension is not available for the requested measures. not returned in this version
422IDEMPOTENCY_KEY_REUSEDIdempotency key reused. This Idempotency-Key was already used with a different request. not returned: kept for writing operations, none yet
429RATE_LIMITEDToo many requests. The request limit is spent. Retry after the time in the Retry-After header.
429CONCURRENCY_LIMITEDToo many requests at once. This credential already runs as many requests at once as it may. Retry shortly.
429CAPACITY_EXCEEDEDCapacity exceeded. The API is busy. Retry shortly.
429COMPANY_WORK_LIMITEDCompany'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.
429HEAVY_DAILY_LIMIT_REACHEDDaily 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.
500INTERNAL_ERRORInternal error. The request failed on our side. Quote the requestId when you report it.
503SERVICE_UNAVAILABLEService unavailable. The API is temporarily unavailable. Retry shortly.
504OPERATION_TIMEOUTOperation 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.

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 | nullrequired
    Null 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.

HeaderMeaning

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”.

HeaderMeaning
ETagA weak validator of this answer. Send it back in If-None-Match.
Cache-Controlprivate, 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.

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.

HeaderMeaning
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.
Retry-AfterSeconds to wait before sending the call again.
  • The major version is in the address: /api/public/v1. The current contract version is 1.0 (info.version in OpenAPI).
  • Inside v1 changes 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.
REST reference

The reference below is built from the contract — an OpenAPI 3.1 document. Load it into Postman, Insomnia or a client generator.

The base address of every operation is https://api.proschedule.com/api/public/v1.

Who the credential acts as and what it can see.

GET/api/public/v1/me
get_context

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).

Response 200 { data, meta }

The data field:

  • companyobjectrequired
    Fields
    • namestring | nullrequired
    • localestringrequired
      one of ru en he uz es pt de fr ja ar
    • firstDayOfWeekstringrequired
      one of sunday monday tuesday
    • currencystring | nullrequired
    • timeZonestring | nullrequired
  • todayobjectrequired
    Fields
    • datestring · daterequired
    • basis"utc"required
  • businessDayobjectrequired
    Fields
    • startsAt"06:00"required
  • credentialobjectrequired
    Fields
    • kindstringrequired
      one of personal_key service_key oauth_token session
    • namestringrequired
    • keyIdstring | nullrequired
    • scopesarray<string>required
      items one of org:read analytics:read labor_cost:read schedules:read timesheets:read team:read team_development:read sales_plans:read sales_plans:write forecast:write webhooks:manage
    • expiresAtstring · date-timerequired
  • subjectobject | objectrequired
    Variants
    Variant 1
    • kind"person"required
    • namestring | nullrequired
    • roleobject | nullrequired
      Fields
      • idstringrequired
      • namestringrequired
    • isAdministratorbooleanrequired
    Variant 2
    • kind"service"required
  • reachobject | objectrequired
    Variants
    Variant 1
    • kind"full"required
    Variant 2
    • kind"nodes"required
    • rootsarray<object>required
      Fields
      • idstringrequired
      • namestringrequired
      • isStorebooleanrequired
  • accessobjectrequired
    Fields
    • peopleDatabooleanrequired
    • laborCostbooleanrequired

Response headers

  • 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.
Possible errors 400 401 403 404 429 500 503 504
400INVALID_REQUEST MALFORMED_JSON INVALID_CURSOR CREDENTIAL_IN_QUERY
401UNAUTHENTICATED INVALID_CREDENTIAL CREDENTIAL_EXPIRED CREDENTIAL_REVOKED
403API_ACCESS_DISABLED API_CONSENT_REQUIRED PRINCIPAL_INACTIVE ROLE_PERMISSION_REQUIRED INSUFFICIENT_SCOPE DATA_CATEGORY_DISABLED APP_NOT_ALLOWED AI_PLANNING_UNAVAILABLE IP_NOT_ALLOWED FORBIDDEN
404NOT_FOUND STORE_NOT_FOUND NODE_NOT_FOUND SALES_PLAN_NOT_FOUND WEBHOOK_ENDPOINT_NOT_FOUND WEBHOOK_DELIVERY_NOT_FOUND
429RATE_LIMITED CONCURRENCY_LIMITED CAPACITY_EXCEEDED COMPANY_WORK_LIMITED HEAVY_DAILY_LIMIT_REACHED
500INTERNAL_ERROR
503SERVICE_UNAVAILABLE
504OPERATION_TIMEOUT
Request
GET/api/public/v1/me
curl "https://api.proschedule.com/api/public/v1/me" \
  -H "Authorization: Bearer $PROSCHEDULE_API_KEY"
Response 200
{
  "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"
  }
}

Stores, structure nodes and reference values: the ids every other operation takes.

GET/api/public/v1/directory/search
search_directory

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.

Query parameters

  • qstringrequired
    The name to look for, or a part of it.
    length 1–100example чиланзар
  • typesarray<string>
    What to search, as a comma list. Default: every type.
    items one of store node position role store_concept order_channelitems 1–6default ["store","node","position","role","store_concept","order_channel"]example store
  • limitinteger
    The most results to return.
    range 1–50default 10

Response 200 { data, meta }

The data field:

  • resultsarray<object>required
    Fields
    • typestringrequired
      one of store node position role store_concept order_channel
    • idstringrequired
    • namestringrequired
    • contextstring | nullrequired
    • scorenumberrequired

Response headers

  • 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.
Possible errors 400 401 403 404 429 500 503 504
400INVALID_REQUEST MALFORMED_JSON INVALID_CURSOR CREDENTIAL_IN_QUERY
401UNAUTHENTICATED INVALID_CREDENTIAL CREDENTIAL_EXPIRED CREDENTIAL_REVOKED
403API_ACCESS_DISABLED API_CONSENT_REQUIRED PRINCIPAL_INACTIVE ROLE_PERMISSION_REQUIRED INSUFFICIENT_SCOPE DATA_CATEGORY_DISABLED APP_NOT_ALLOWED AI_PLANNING_UNAVAILABLE IP_NOT_ALLOWED FORBIDDEN
404NOT_FOUND STORE_NOT_FOUND NODE_NOT_FOUND SALES_PLAN_NOT_FOUND WEBHOOK_ENDPOINT_NOT_FOUND WEBHOOK_DELIVERY_NOT_FOUND
429RATE_LIMITED CONCURRENCY_LIMITED CAPACITY_EXCEEDED COMPANY_WORK_LIMITED HEAVY_DAILY_LIMIT_REACHED
500INTERNAL_ERROR
503SERVICE_UNAVAILABLE
504OPERATION_TIMEOUT
Request
GET/api/public/v1/directory/search
curl "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"
Response 200
{
  "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"
  }
}
GET/api/public/v1/stores
list_stores

The 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

  • nodeIdstring
    Keeps the stores below this structure node.
    length 1–200example n_tashkent
  • conceptIdstring
    Keeps the stores of this store concept.
    length 1–200
  • limitinteger
    The size of a page.
    range 1–200default 50example 50
  • cursorstring
    page.nextCursor of 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>required
    Fields
    • idstringrequired
    • namestringrequired
    • parentNodeIdstring | nullrequired
    • patharray<object>required
      Fields
      • idstringrequired
      • namestringrequired
    • conceptobject | nullrequired
      Fields
      • idstringrequired
      • namestringrequired
    • locationobject | nullrequired
      Fields
      • latitudenumberrequired
      • longitudenumberrequired

304 Not modified: If-None-Match named the current answer.

Response headers

  • 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.
  • 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.
  • Link The address of the next page, <…>; rel="next", while the list has more.
Possible errors 400 401 403 404 429 500 503 504
400INVALID_REQUEST MALFORMED_JSON INVALID_CURSOR CREDENTIAL_IN_QUERY
401UNAUTHENTICATED INVALID_CREDENTIAL CREDENTIAL_EXPIRED CREDENTIAL_REVOKED
403API_ACCESS_DISABLED API_CONSENT_REQUIRED PRINCIPAL_INACTIVE ROLE_PERMISSION_REQUIRED INSUFFICIENT_SCOPE DATA_CATEGORY_DISABLED APP_NOT_ALLOWED AI_PLANNING_UNAVAILABLE IP_NOT_ALLOWED FORBIDDEN
404NOT_FOUND STORE_NOT_FOUND NODE_NOT_FOUND SALES_PLAN_NOT_FOUND WEBHOOK_ENDPOINT_NOT_FOUND WEBHOOK_DELIVERY_NOT_FOUND
429RATE_LIMITED CONCURRENCY_LIMITED CAPACITY_EXCEEDED COMPANY_WORK_LIMITED HEAVY_DAILY_LIMIT_REACHED
500INTERNAL_ERROR
503SERVICE_UNAVAILABLE
504OPERATION_TIMEOUT
Request
GET/api/public/v1/stores
curl "https://api.proschedule.com/api/public/v1/stores?limit=50" \
  -H "Authorization: Bearer $PROSCHEDULE_API_KEY"
Response 200
{
  "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
  }
}
GET/api/public/v1/structure/nodes
list_structure_nodes

The 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

  • parentIdstring
    Keeps the direct children of this node.
    length 1–200example n_tashkent
  • kindstring
    Keeps the stores, or the groups (every node that is not a store).
    one of store groupexample store
  • limitinteger
    The size of a page.
    range 1–200default 50
  • cursorstring
    page.nextCursor of 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>required
    Fields
    • idstringrequired
    • namestringrequired
    • parentNodeIdstring | nullrequired
    • isStorebooleanrequired
    • levelintegerrequired
      range ≥ 0
    • patharray<object>required
      Fields
      • idstringrequired
      • namestringrequired

304 Not modified: If-None-Match named the current answer.

Response headers

  • 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.
  • 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.
  • Link The address of the next page, <…>; rel="next", while the list has more.
Possible errors 400 401 403 404 429 500 503 504
400INVALID_REQUEST MALFORMED_JSON INVALID_CURSOR CREDENTIAL_IN_QUERY
401UNAUTHENTICATED INVALID_CREDENTIAL CREDENTIAL_EXPIRED CREDENTIAL_REVOKED
403API_ACCESS_DISABLED API_CONSENT_REQUIRED PRINCIPAL_INACTIVE ROLE_PERMISSION_REQUIRED INSUFFICIENT_SCOPE DATA_CATEGORY_DISABLED APP_NOT_ALLOWED AI_PLANNING_UNAVAILABLE IP_NOT_ALLOWED FORBIDDEN
404NOT_FOUND STORE_NOT_FOUND NODE_NOT_FOUND SALES_PLAN_NOT_FOUND WEBHOOK_ENDPOINT_NOT_FOUND WEBHOOK_DELIVERY_NOT_FOUND
429RATE_LIMITED CONCURRENCY_LIMITED CAPACITY_EXCEEDED COMPANY_WORK_LIMITED HEAVY_DAILY_LIMIT_REACHED
500INTERNAL_ERROR
503SERVICE_UNAVAILABLE
504OPERATION_TIMEOUT
Request
GET/api/public/v1/structure/nodes
curl "https://api.proschedule.com/api/public/v1/structure/nodes?kind=store" \
  -H "Authorization: Bearer $PROSCHEDULE_API_KEY"
Response 200
{
  "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
  }
}

Aggregated sales, hours and productivity figures.

GET/api/public/v1/metrics/catalog
list_metrics

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.

Query parameters

  • langstring
    The language of the labels.
    one of en rudefault "en"example en

Response 200 { data, meta }

The data field:

  • measuresarray<object>required
    Fields
    • idstringrequired
      one of sales.revenue sales.transactions sales.items sales.avg_check sales.items_per_check forecast.revenue forecast.transactions schedule.hours schedule.shifts schedule.employees schedule.training_hours fact.hours fact.shifts fact.employees productivity.spmh productivity.tplh productivity.fact_spmh productivity.hours_variance team.headcount team.hires team.leavers
    • labelstringrequired
    • descriptionstringrequired
    • formatstringrequired
      one of count money hours percent decimal
    • additivebooleanrequired
    • higherIsBetterboolean | nullrequired
    • dimensionsarray<string>required
      items one of time.day time.week time.month time.quarter store node weekday hour order_channel store_concept position role employee
    • filtersarray<string>required
      items one of nodeIds storeIds storeConceptIds orderChannelIds positionIds roleIds employeeIds
  • dimensionsarray<object>required
    Fields
    • idstringrequired
      one of time.day time.week time.month time.quarter store node weekday hour order_channel store_concept position role employee
    • labelstringrequired
    • descriptionstringrequired
    • kindstringrequired
      one of time category
  • filtersarray<object>required
    Fields
    • keystringrequired
      one of nodeIds storeIds storeConceptIds orderChannelIds positionIds roleIds employeeIds
    • labelstringrequired
    • descriptionstringrequired
    • directoryTypestring | nullrequired
      one of store node position role store_concept order_channel
  • periodsarray<string>required
    items one of last_7d last_30d last_90d last_3_months last_12_months this_month prev_month this_year
  • comparisonsarray<string>required
    items one of previous_period same_period_last_year
  • limitsobjectrequired
    Fields
    • maxMeasuresintegerrequired
    • maxDimensionsintegerrequired
    • defaultRowsintegerrequired
    • maxRowsintegerrequired
    • maxCustomPeriodDaysintegerrequired
    • maxShiftBreakdownDaysintegerrequired
    • maxHourBreakdownDaysintegerrequired
    • maxFilterValuesintegerrequired

304 Not modified: If-None-Match named the current answer.

Response headers

  • 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.
  • 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.
Possible errors 400 401 403 404 429 500 503 504
400INVALID_REQUEST MALFORMED_JSON INVALID_CURSOR CREDENTIAL_IN_QUERY
401UNAUTHENTICATED INVALID_CREDENTIAL CREDENTIAL_EXPIRED CREDENTIAL_REVOKED
403API_ACCESS_DISABLED API_CONSENT_REQUIRED PRINCIPAL_INACTIVE ROLE_PERMISSION_REQUIRED INSUFFICIENT_SCOPE DATA_CATEGORY_DISABLED APP_NOT_ALLOWED AI_PLANNING_UNAVAILABLE IP_NOT_ALLOWED FORBIDDEN
404NOT_FOUND STORE_NOT_FOUND NODE_NOT_FOUND SALES_PLAN_NOT_FOUND WEBHOOK_ENDPOINT_NOT_FOUND WEBHOOK_DELIVERY_NOT_FOUND
429RATE_LIMITED CONCURRENCY_LIMITED CAPACITY_EXCEEDED COMPANY_WORK_LIMITED HEAVY_DAILY_LIMIT_REACHED
500INTERNAL_ERROR
503SERVICE_UNAVAILABLE
504OPERATION_TIMEOUT
Request
GET/api/public/v1/metrics/catalog
curl "https://api.proschedule.com/api/public/v1/metrics/catalog?lang=en" \
  -H "Authorization: Bearer $PROSCHEDULE_API_KEY"
Response 200
{
  "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"
  }
}
POST/api/public/v1/metrics/query
query_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.

Request body application/json

  • measuresarray<string>required
    What to compute: ids of measures from the metrics catalogue.
    items one of sales.revenue sales.transactions sales.items sales.avg_check sales.items_per_check forecast.revenue forecast.transactions schedule.hours schedule.shifts schedule.employees schedule.training_hours fact.hours fact.shifts fact.employees productivity.spmh productivity.tplh productivity.fact_spmh productivity.hours_variance team.headcount team.hires team.leaversitems 1–6
  • dimensionsarray<string>
    What to break the figures down by: ids of dimensions from the metrics catalogue. Default: none, one row of totals.
    items one of time.day time.week time.month time.quarter store node weekday hour order_channel store_concept position role employeeitems ≤ 3default []
  • periodobject | objectrequired
    A preset, counted from today, or the caller's own dates, both included.
    Variants
    Variant 1
    • presetstringrequired
      one of last_7d last_30d last_90d last_3_months last_12_months this_month prev_month this_year
    Variant 2
    • fromstring · daterequired
    • tostring · daterequired
  • compareWithstring | null
    Adds each measure once more, for the previous period or for the same period a year earlier.
    one of previous_period same_period_last_yeardefault null
  • filtersobject
    Keeps the figures of the listed ids; the metrics catalogue says what each filter takes.
    default {}
    Fields
    • nodeIdsarray<string>
      items ≤ 50item length 1–200
    • storeIdsarray<string>
      items ≤ 50item length 1–200
    • storeConceptIdsarray<string>
      items ≤ 50item length 1–200
    • orderChannelIdsarray<string>
      items ≤ 50item length 1–200
    • positionIdsarray<string>
      items ≤ 50item length 1–200
    • roleIdsarray<string>
      items ≤ 50item length 1–200
    • employeeIdsarray<string>
      items ≤ 50item length 1–200
  • sortobject | null
    The order of the rows: by a requested measure or by the label of the first dimension. Not taken with a time bucket.
    default null
    Fields
    • bystringrequired
      one of sales.revenue sales.transactions sales.items sales.avg_check sales.items_per_check forecast.revenue forecast.transactions schedule.hours schedule.shifts schedule.employees schedule.training_hours fact.hours fact.shifts fact.employees productivity.spmh productivity.tplh productivity.fact_spmh productivity.hours_variance team.headcount team.hires team.leavers label
    • directionstringrequired
      one of asc desc
  • limitinteger
    The most rows to return.
    range 1–200default 50
  • nodeLevelinteger | null
    With the dimension node: the level (GET /structure/nodes) of the nodes to group by. Default: each store's parent.
    default null
  • todaystring · date
    The caller's local date, which a preset is counted from. Default: the UTC date.

Response 200 { data, meta }

The data field:

  • columnsarray<object>required
    Fields
    • keystringrequired
    • rolestringrequired
      one of dimension measure comparison
    • labelstringrequired
    • formatstring | nullrequired
      one of count money hours percent decimal
  • rowsarray<array<object | number | null>>required

Response headers

  • 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.
Possible errors 400 401 403 404 413 415 422 429 500 503 504
400INVALID_REQUEST MALFORMED_JSON INVALID_CURSOR CREDENTIAL_IN_QUERY
401UNAUTHENTICATED INVALID_CREDENTIAL CREDENTIAL_EXPIRED CREDENTIAL_REVOKED
403API_ACCESS_DISABLED API_CONSENT_REQUIRED PRINCIPAL_INACTIVE ROLE_PERMISSION_REQUIRED INSUFFICIENT_SCOPE DATA_CATEGORY_DISABLED APP_NOT_ALLOWED AI_PLANNING_UNAVAILABLE IP_NOT_ALLOWED FORBIDDEN
404NOT_FOUND STORE_NOT_FOUND NODE_NOT_FOUND SALES_PLAN_NOT_FOUND WEBHOOK_ENDPOINT_NOT_FOUND WEBHOOK_DELIVERY_NOT_FOUND
413PAYLOAD_TOO_LARGE
415UNSUPPORTED_MEDIA_TYPE
422INVALID_QUERY INVALID_PERIOD PERIOD_TOO_LONG WEBHOOK_URL_NOT_ALLOWED TOO_MANY_STORES
429RATE_LIMITED CONCURRENCY_LIMITED CAPACITY_EXCEEDED COMPANY_WORK_LIMITED HEAVY_DAILY_LIMIT_REACHED
500INTERNAL_ERROR
503SERVICE_UNAVAILABLE
504OPERATION_TIMEOUT
Request
POST/api/public/v1/metrics/query
curl -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
  }'
Response 200
{
  "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"
  }
}

The state of the stores' schedules, and a store's crew schedule of a week.

GET/api/public/v1/schedules/status
get_schedule_status

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.

Query parameters

  • weekStartstring · date
    A date, any day of the week: reads the crew schedules of the company's week that contains it. Give this or month, not both.
    example 2026-11-11
  • monthstring
    A month (YYYY-MM): reads the managers' schedules of that month. Give this or weekStart, not both.
    pattern ^(\d{4})-(0[1-9]|1[0-2])$
  • nodeIdstring
    Keeps the stores below this structure node.
    length 1–200
  • statusesarray<string>
    Keeps the stores in these statuses, as a comma list. Default: every status.
    items one of not_created draft submitted approveditems 1–4example draft,not_created
  • limitinteger
    The size of a page.
    range 1–200default 50
  • cursorstring
    page.nextCursor of 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
    one of crew_week manager_month
  • periodobject | objectrequired
    Variants
    Variant 1
    • weekStartstring · daterequired
    • weekEndstring · daterequired
    • weekNumberintegerrequired
    • yearintegerrequired
    Variant 2
    • monthstringrequired
  • summaryobjectrequired
    Fields
    • notCreatedintegerrequired
      range ≥ 0
    • draftintegerrequired
      range ≥ 0
    • submittedintegerrequired
      range ≥ 0
    • approvedintegerrequired
      range ≥ 0
  • itemsarray<object>required
    Fields
    • storeIdstringrequired
    • storeNamestringrequired
    • statusstringrequired
      one of not_created draft submitted approved

Response headers

  • 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.
  • Link The address of the next page, <…>; rel="next", while the list has more.
Possible errors 400 401 403 404 429 500 503 504
400INVALID_REQUEST MALFORMED_JSON INVALID_CURSOR CREDENTIAL_IN_QUERY
401UNAUTHENTICATED INVALID_CREDENTIAL CREDENTIAL_EXPIRED CREDENTIAL_REVOKED
403API_ACCESS_DISABLED API_CONSENT_REQUIRED PRINCIPAL_INACTIVE ROLE_PERMISSION_REQUIRED INSUFFICIENT_SCOPE DATA_CATEGORY_DISABLED APP_NOT_ALLOWED AI_PLANNING_UNAVAILABLE IP_NOT_ALLOWED FORBIDDEN
404NOT_FOUND STORE_NOT_FOUND NODE_NOT_FOUND SALES_PLAN_NOT_FOUND WEBHOOK_ENDPOINT_NOT_FOUND WEBHOOK_DELIVERY_NOT_FOUND
429RATE_LIMITED CONCURRENCY_LIMITED CAPACITY_EXCEEDED COMPANY_WORK_LIMITED HEAVY_DAILY_LIMIT_REACHED
500INTERNAL_ERROR
503SERVICE_UNAVAILABLE
504OPERATION_TIMEOUT
Request
GET/api/public/v1/schedules/status
curl "https://api.proschedule.com/api/public/v1/schedules/status?weekStart=2026-11-11&statuses=draft%2Cnot_created" \
  -H "Authorization: Bearer $PROSCHEDULE_API_KEY"
Response 200
{
  "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/api/public/v1/schedules/week
get_store_week_schedule

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.

Query parameters

  • storeIdstringrequired
    The store (search_directory finds its id by name).
    length 1–200example n_184
  • weekStartstring · daterequired
    A date, any day of the week: reads the store's crew schedule of the company's week that contains it; period of the answer says which week that is.
    example 2026-11-16
  • daystring · date
    A day of that week: adds shifts, that day's shifts (with who works them only where people data reach the caller). Default: no shifts.
    example 2026-11-20

Response 200 { data, meta }

The data field:

  • storeIdstringrequired
  • storeNamestringrequired
  • periodobjectrequired
    Fields
    • weekStartstring · daterequired
    • weekEndstring · daterequired
    • weekNumberintegerrequired
    • yearintegerrequired
  • statusstringrequired
    one of not_created draft submitted approved
  • readyToApproveboolean | nullrequired
  • statusHistoryarray<object>required
    Fields
    • statusstringrequired
      one of not_created draft submitted approved
    • atstring · date-timerequired
  • laborCostbooleanrequired
  • peopleDatabooleanrequired
  • summaryobject | nullrequired
    Fields
    • hoursobjectrequired
      Fields
      • schedulednumberrequired
      • recommendednumberrequired
      • trainingnumberrequired
      • netnumberrequired
    • accuracynumberrequired
    • forecastobjectrequired
      Fields
      • salesnumberrequired
      • transactionsnumberrequired
    • shiftsintegerrequired
      range ≥ 0
    • alertsintegerrequired
      range ≥ 0
    • laborCostobject
      Fields
      • amountnumberrequired
      • colnumber | nullrequired
      • recommendedAmountnumberrequired
      • recommendedColnumber | nullrequired
  • daysarray<object>required
    Fields
    • datestring · daterequired
    • weekdaystringrequired
      one of monday tuesday wednesday thursday friday saturday sunday
    • openobject | nullrequired
      Fields
      • startstringrequired
      • endstringrequired
      • startsNextDaybooleanrequired
      • endsNextDaybooleanrequired
    • hoursobjectrequired
      Fields
      • schedulednumberrequired
      • recommendednumberrequired
      • trainingnumberrequired
    • accuracynumber | nullrequired
    • peakHoursCoveragenumber | nullrequired
    • forecastobjectrequired
      Fields
      • salesnumberrequired
      • transactionsnumberrequired
    • productivityobjectrequired
      Fields
      • salesPerHournumberrequired
      • transactionsPerHournumberrequired
    • shiftsintegerrequired
      range ≥ 0
    • positionsarray<object>required
      Fields
      • positionIdstringrequired
      • recommendedHoursnumberrequired
      • shortHoursnumberrequired
      • excessHoursnumberrequired
    • laborCostobject
      Fields
      • amountnumberrequired
      • colnumber | nullrequired
      • recommendedAmountnumberrequired
      • recommendedColnumber | nullrequired
  • alertsarray<object>required
    Fields
    • datestring · daterequired
    • codestringrequired
      one of absent day_blocked night_restricted over_weekly_hours insufficient_rest overlaps_other_position position_not_certified training_without_trainer certificate_expired other
    • positionIdstring | nullrequired
    • peopleintegerrequired
      range ≥ 0
    • employeesarray<object>
      Fields
      • idstringrequired
      • namestringrequired
  • positionsarray<object>required
    Fields
    • positionIdstringrequired
    • namestringrequired
  • shiftsarray<object> | nullrequired
    Fields
    • positionIdstringrequired
    • periodsarray<object>required
      Fields
      • startstringrequired
      • endstringrequired
      • startsNextDaybooleanrequired
      • endsNextDaybooleanrequired
    • hoursnumberrequired
    • trainingbooleanrequired
    • alertsarray<string>required
      items one of absent day_blocked night_restricted over_weekly_hours insufficient_rest overlaps_other_position position_not_certified training_without_trainer certificate_expired other
    • employeeobject
      Fields
      • idstringrequired
      • namestringrequired
  • peoplearray<object>
    Fields
    • employeeIdstringrequired
    • namestringrequired
    • roleobject | nullrequired
      Fields
      • idstringrequired
      • namestringrequired
    • shiftsintegerrequired
      range ≥ 0
    • hoursnumberrequired

Response headers

  • 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.
Possible errors 400 401 403 404 429 500 503 504
400INVALID_REQUEST MALFORMED_JSON INVALID_CURSOR CREDENTIAL_IN_QUERY
401UNAUTHENTICATED INVALID_CREDENTIAL CREDENTIAL_EXPIRED CREDENTIAL_REVOKED
403API_ACCESS_DISABLED API_CONSENT_REQUIRED PRINCIPAL_INACTIVE ROLE_PERMISSION_REQUIRED INSUFFICIENT_SCOPE DATA_CATEGORY_DISABLED APP_NOT_ALLOWED AI_PLANNING_UNAVAILABLE IP_NOT_ALLOWED FORBIDDEN
404NOT_FOUND STORE_NOT_FOUND NODE_NOT_FOUND SALES_PLAN_NOT_FOUND WEBHOOK_ENDPOINT_NOT_FOUND WEBHOOK_DELIVERY_NOT_FOUND
429RATE_LIMITED CONCURRENCY_LIMITED CAPACITY_EXCEEDED COMPANY_WORK_LIMITED HEAVY_DAILY_LIMIT_REACHED
500INTERNAL_ERROR
503SERVICE_UNAVAILABLE
504OPERATION_TIMEOUT
Request
GET/api/public/v1/schedules/week
curl "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"
Response 200
{
  "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"
  }
}

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.

GET/api/public/v1/team-development/action-plans/summary
get_action_plan_summary

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.

Query parameters

  • monthstring
    The month of the plans (YYYY-MM). Default: the current month — month of the answer says which.
    pattern ^(\d{4})-(0[1-9]|1[0-2])$example 2026-11
  • nodeIdstring
    Keeps the stores below this structure node.
    length 1–200
  • limitinteger
    The size of a page.
    range 1–200default 50
  • cursorstring
    page.nextCursor of 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
  • summaryobjectrequired
    Fields
    • storesintegerrequired
      range ≥ 0
    • storesWithActionsintegerrequired
      range ≥ 0
    • totalintegerrequired
      range ≥ 0
    • plannedintegerrequired
      range ≥ 0
    • inProgressintegerrequired
      range ≥ 0
    • doneInMonthintegerrequired
      range ≥ 0
    • cancelledInMonthintegerrequired
      range ≥ 0
    • closedLaterintegerrequired
      range ≥ 0
    • overdueintegerrequired
      range ≥ 0
    • carriedOverintegerrequired
      range ≥ 0
  • itemsarray<object>required
    Fields
    • storeIdstringrequired
    • storeNamestringrequired
    • totalintegerrequired
      range ≥ 0
    • plannedintegerrequired
      range ≥ 0
    • inProgressintegerrequired
      range ≥ 0
    • doneInMonthintegerrequired
      range ≥ 0
    • cancelledInMonthintegerrequired
      range ≥ 0
    • closedLaterintegerrequired
      range ≥ 0
    • overdueintegerrequired
      range ≥ 0
    • carriedOverintegerrequired
      range ≥ 0

Response headers

  • 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.
  • Link The address of the next page, <…>; rel="next", while the list has more.
Possible errors 400 401 403 404 429 500 503 504
400INVALID_REQUEST MALFORMED_JSON INVALID_CURSOR CREDENTIAL_IN_QUERY
401UNAUTHENTICATED INVALID_CREDENTIAL CREDENTIAL_EXPIRED CREDENTIAL_REVOKED
403API_ACCESS_DISABLED API_CONSENT_REQUIRED PRINCIPAL_INACTIVE ROLE_PERMISSION_REQUIRED INSUFFICIENT_SCOPE DATA_CATEGORY_DISABLED APP_NOT_ALLOWED AI_PLANNING_UNAVAILABLE IP_NOT_ALLOWED FORBIDDEN
404NOT_FOUND STORE_NOT_FOUND NODE_NOT_FOUND SALES_PLAN_NOT_FOUND WEBHOOK_ENDPOINT_NOT_FOUND WEBHOOK_DELIVERY_NOT_FOUND
429RATE_LIMITED CONCURRENCY_LIMITED CAPACITY_EXCEEDED COMPANY_WORK_LIMITED HEAVY_DAILY_LIMIT_REACHED
500INTERNAL_ERROR
503SERVICE_UNAVAILABLE
504OPERATION_TIMEOUT
Request
GET/api/public/v1/team-development/action-plans/summary
curl "https://api.proschedule.com/api/public/v1/team-development/action-plans/summary?month=2026-11" \
  -H "Authorization: Bearer $PROSCHEDULE_API_KEY"
Response 200
{
  "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/api/public/v1/team-development/action-items
list_action_items
team_development:readteam:readweight: lightpaginatedMCP: list_action_items

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.

Query parameters

  • monthstring
    The month of the plans (YYYY-MM). Default: the current month by UTC — month of the answer says which.
    pattern ^(\d{4})-(0[1-9]|1[0-2])$example 2026-11
  • nodeIdstring
    Keeps the actions of the people of the stores below this structure node — or of this store.
    length 1–200
  • statusstring
    Keeps the actions in this state: planned, in_progress, done, cancelled; open (planned or in progress) or overdue (open, the deadline passed). Default: every action of the month's plans.
    one of open overdue planned in_progress done cancelledexample open
  • limitinteger
    The size of a page.
    range 1–200default 50
  • cursorstring
    page.nextCursor of 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
  • summaryobjectrequired
    Fields
    • itemsintegerrequired
      range ≥ 0
  • itemsarray<object>required
    Fields
    • idstringrequired
    • storeIdstringrequired
    • storeNamestringrequired
    • employeeobjectrequired
      Fields
      • idstringrequired
      • namestringrequired
    • textstringrequired
    • textCutbooleanrequired
    • deadlinestring · date | nullrequired
    • statusstringrequired
      one of planned in_progress done cancelled
    • overduebooleanrequired
    • carriedOverbooleanrequired
    • closedMonthstring | nullrequired
      pattern ^(\d{4})-(0[1-9]|1[0-2])$
    • assigneeobject | nullrequired
      Fields
      • idstringrequired
      • namestringrequired

Response headers

  • 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.
  • Link The address of the next page, <…>; rel="next", while the list has more.
Possible errors 400 401 403 404 429 500 503 504
400INVALID_REQUEST MALFORMED_JSON INVALID_CURSOR CREDENTIAL_IN_QUERY
401UNAUTHENTICATED INVALID_CREDENTIAL CREDENTIAL_EXPIRED CREDENTIAL_REVOKED
403API_ACCESS_DISABLED API_CONSENT_REQUIRED PRINCIPAL_INACTIVE ROLE_PERMISSION_REQUIRED INSUFFICIENT_SCOPE DATA_CATEGORY_DISABLED APP_NOT_ALLOWED AI_PLANNING_UNAVAILABLE IP_NOT_ALLOWED FORBIDDEN
404NOT_FOUND STORE_NOT_FOUND NODE_NOT_FOUND SALES_PLAN_NOT_FOUND WEBHOOK_ENDPOINT_NOT_FOUND WEBHOOK_DELIVERY_NOT_FOUND
429RATE_LIMITED CONCURRENCY_LIMITED CAPACITY_EXCEEDED COMPANY_WORK_LIMITED HEAVY_DAILY_LIMIT_REACHED
500INTERNAL_ERROR
503SERVICE_UNAVAILABLE
504OPERATION_TIMEOUT
Request
GET/api/public/v1/team-development/action-items
curl "https://api.proschedule.com/api/public/v1/team-development/action-items?month=2026-11&status=open" \
  -H "Authorization: Bearer $PROSCHEDULE_API_KEY"
Response 200
{
  "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
  }
}

The heavy reports of the dashboards: labour, managers' hours, sales and productivity by structure node.

GET/api/public/v1/reports/labor
get_labor_report

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.

Query parameters

  • fromstring · daterequired
    The first day of the period (YYYY-MM-DD), included.
    example 2026-11-02
  • tostring · daterequired
    The last day of the period (YYYY-MM-DD), included. At most 62 days from from.
    example 2026-11-08
  • nodeIdstring
    The structure node to report on, with its direct children as items. Default: the company for a credential that sees all of it; otherwise the top nodes of the credential's reach.
    length 1–200
  • factShiftsstring
    Which fact shifts the fact figures count: approved (default, as the dashboard shows them) or with_pending — the pending edits too.
    one of approved with_pendingdefault "approved"

Response 200 { data, meta }

The data field:

  • fromstring · daterequired
  • tostring · daterequired
  • factShiftsstringrequired
    one of approved with_pending
  • computedAtstring · date-timerequired
  • laborCostbooleanrequired
  • summaryobject | nullrequired
    Fields
    • nodeIdstring | nullrequired
    • namestring | nullrequired
    • kindstringrequired
      one of company node store
    • salesobjectrequired
      Fields
      • forecastnumberrequired
      • factnumberrequired
    • transactionsobjectrequired
      Fields
      • forecastnumberrequired
      • factnumberrequired
    • hoursobjectrequired
      Fields
      • forecastnumberrequired
      • deploymentnumberrequired
      • factnumberrequired
    • nohHoursobjectrequired
      Fields
      • forecastnumberrequired
      • deploymentnumberrequired
      • factnumberrequired
    • trainingHoursnumberrequired
    • hoursCapacitynumber | nullrequired
    • spmhobjectrequired
      Fields
      • forecastnumberrequired
      • deploymentnumberrequired
      • factnumberrequired
    • tplhobjectrequired
      Fields
      • forecastnumberrequired
      • deploymentnumberrequired
      • factnumberrequired
    • iplhobjectrequired
      Fields
      • forecastnumberrequired
      • deploymentnumberrequired
      • factnumberrequired
    • accuracynumberrequired
    • laborCostobject
      Fields
      • crewobjectrequired
        Fields
        • colobjectrequired
          Fields
          • forecastnumberrequired
          • deploymentnumberrequired
          • deploymentVsFactSalesnumberrequired
          • factnumberrequired
        • amountobjectrequired
          Fields
          • forecastnumberrequired
          • deploymentnumberrequired
          • factnumberrequired
      • managersobjectrequired
        Fields
        • colobjectrequired
          Fields
          • forecastnumberrequired
          • deploymentnumberrequired
          • deploymentVsFactSalesnumberrequired
          • factnumberrequired
        • amountobjectrequired
          Fields
          • forecastnumberrequired
          • deploymentnumberrequired
          • factnumberrequired
  • itemsarray<object>required
    Fields
    • nodeIdstring | nullrequired
    • namestring | nullrequired
    • kindstringrequired
      one of company node store
    • salesobjectrequired
      Fields
      • forecastnumberrequired
      • factnumberrequired
    • transactionsobjectrequired
      Fields
      • forecastnumberrequired
      • factnumberrequired
    • hoursobjectrequired
      Fields
      • forecastnumberrequired
      • deploymentnumberrequired
      • factnumberrequired
    • nohHoursobjectrequired
      Fields
      • forecastnumberrequired
      • deploymentnumberrequired
      • factnumberrequired
    • trainingHoursnumberrequired
    • hoursCapacitynumber | nullrequired
    • spmhobjectrequired
      Fields
      • forecastnumberrequired
      • deploymentnumberrequired
      • factnumberrequired
    • tplhobjectrequired
      Fields
      • forecastnumberrequired
      • deploymentnumberrequired
      • factnumberrequired
    • iplhobjectrequired
      Fields
      • forecastnumberrequired
      • deploymentnumberrequired
      • factnumberrequired
    • accuracynumberrequired
    • laborCostobject
      Fields
      • crewobjectrequired
        Fields
        • colobjectrequired
          Fields
          • forecastnumberrequired
          • deploymentnumberrequired
          • deploymentVsFactSalesnumberrequired
          • factnumberrequired
        • amountobjectrequired
          Fields
          • forecastnumberrequired
          • deploymentnumberrequired
          • factnumberrequired
      • managersobjectrequired
        Fields
        • colobjectrequired
          Fields
          • forecastnumberrequired
          • deploymentnumberrequired
          • deploymentVsFactSalesnumberrequired
          • factnumberrequired
        • amountobjectrequired
          Fields
          • forecastnumberrequired
          • deploymentnumberrequired
          • factnumberrequired

Response headers

  • 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.
Possible errors 400 401 403 404 429 500 503 504
400INVALID_REQUEST MALFORMED_JSON INVALID_CURSOR CREDENTIAL_IN_QUERY
401UNAUTHENTICATED INVALID_CREDENTIAL CREDENTIAL_EXPIRED CREDENTIAL_REVOKED
403API_ACCESS_DISABLED API_CONSENT_REQUIRED PRINCIPAL_INACTIVE ROLE_PERMISSION_REQUIRED INSUFFICIENT_SCOPE DATA_CATEGORY_DISABLED APP_NOT_ALLOWED AI_PLANNING_UNAVAILABLE IP_NOT_ALLOWED FORBIDDEN
404NOT_FOUND STORE_NOT_FOUND NODE_NOT_FOUND SALES_PLAN_NOT_FOUND WEBHOOK_ENDPOINT_NOT_FOUND WEBHOOK_DELIVERY_NOT_FOUND
429RATE_LIMITED CONCURRENCY_LIMITED CAPACITY_EXCEEDED COMPANY_WORK_LIMITED HEAVY_DAILY_LIMIT_REACHED
500INTERNAL_ERROR
503SERVICE_UNAVAILABLE
504OPERATION_TIMEOUT
Request
GET/api/public/v1/reports/labor
curl "https://api.proschedule.com/api/public/v1/reports/labor?from=2026-11-02&to=2026-11-08" \
  -H "Authorization: Bearer $PROSCHEDULE_API_KEY"
Response 200
{
  "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/api/public/v1/reports/managers
get_managers_report

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.

Query parameters

  • monthstring
    The month of the report (YYYY-MM). Default: the current month by UTC — month of the answer says which.
    pattern ^(\d{4})-(0[1-9]|1[0-2])$example 2026-11
  • nodeIdstring
    The structure node to report on, with its direct children as items. Default: the company for a credential that sees all of it; otherwise the top nodes of the credential's reach.
    length 1–200
  • factShiftsstring
    Which fact shifts the fact hours count: approved (default, as the dashboard shows them) or with_pending — the pending edits too.
    one of approved with_pendingdefault "approved"

Response 200 { data, meta }

The data field:

  • monthstringrequired
  • factShiftsstringrequired
    one of approved with_pending
  • computedAtstring · date-timerequired
  • laborCostbooleanrequired
  • summaryobject | nullrequired
    Fields
    • nodeIdstring | nullrequired
    • namestring | nullrequired
    • kindstringrequired
      one of company node store
    • hoursobjectrequired
      Fields
      • schedulednumberrequired
      • normnumberrequired
      • factnumberrequired
    • overNormHoursnumberrequired
    • underNormHoursnumberrequired
    • overHoursYearToDatenumberrequired
    • salesobjectrequired
      Fields
      • plannumberrequired
      • factnumberrequired
    • accuracynumberrequired
    • laborCostobject
      Fields
      • colobjectrequired
        Fields
        • schedulednumberrequired
        • normnumberrequired
        • normVsFactSalesnumberrequired
        • factnumberrequired
  • itemsarray<object>required
    Fields
    • nodeIdstring | nullrequired
    • namestring | nullrequired
    • kindstringrequired
      one of company node store
    • hoursobjectrequired
      Fields
      • schedulednumberrequired
      • normnumberrequired
      • factnumberrequired
    • overNormHoursnumberrequired
    • underNormHoursnumberrequired
    • overHoursYearToDatenumberrequired
    • salesobjectrequired
      Fields
      • plannumberrequired
      • factnumberrequired
    • accuracynumberrequired
    • laborCostobject
      Fields
      • colobjectrequired
        Fields
        • schedulednumberrequired
        • normnumberrequired
        • normVsFactSalesnumberrequired
        • factnumberrequired

Response headers

  • 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.
Possible errors 400 401 403 404 429 500 503 504
400INVALID_REQUEST MALFORMED_JSON INVALID_CURSOR CREDENTIAL_IN_QUERY
401UNAUTHENTICATED INVALID_CREDENTIAL CREDENTIAL_EXPIRED CREDENTIAL_REVOKED
403API_ACCESS_DISABLED API_CONSENT_REQUIRED PRINCIPAL_INACTIVE ROLE_PERMISSION_REQUIRED INSUFFICIENT_SCOPE DATA_CATEGORY_DISABLED APP_NOT_ALLOWED AI_PLANNING_UNAVAILABLE IP_NOT_ALLOWED FORBIDDEN
404NOT_FOUND STORE_NOT_FOUND NODE_NOT_FOUND SALES_PLAN_NOT_FOUND WEBHOOK_ENDPOINT_NOT_FOUND WEBHOOK_DELIVERY_NOT_FOUND
429RATE_LIMITED CONCURRENCY_LIMITED CAPACITY_EXCEEDED COMPANY_WORK_LIMITED HEAVY_DAILY_LIMIT_REACHED
500INTERNAL_ERROR
503SERVICE_UNAVAILABLE
504OPERATION_TIMEOUT
Request
GET/api/public/v1/reports/managers
curl "https://api.proschedule.com/api/public/v1/reports/managers?month=2026-11" \
  -H "Authorization: Bearer $PROSCHEDULE_API_KEY"
Response 200
{
  "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"
  }
}

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.

GET/api/public/v1/timesheets/approvals
get_timesheet_approval_status

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.

Query parameters

  • monthstring
    The month of the time sheets (YYYY-MM). Default: the current month by UTC — month of the answer says which.
    pattern ^(\d{4})-(0[1-9]|1[0-2])$example 2026-10
  • nodeIdstring
    Keeps the stores below this structure node.
    length 1–200
  • limitinteger
    The size of a page.
    range 1–200default 50
  • cursorstring
    page.nextCursor of 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
  • summaryobjectrequired
    Fields
    • storesintegerrequired
      range ≥ 0
    • byHighestApprovedLevelobjectrequired
      Fields
      • noneintegerrequired
        range ≥ 0
      • level1integerrequired
        range ≥ 0
      • level2integerrequired
        range ≥ 0
      • level3integerrequired
        range ≥ 0
    • pendingEditsintegerrequired
      range ≥ 0
  • itemsarray<object>required
    Fields
    • storeIdstringrequired
    • storeNamestringrequired
    • highestApprovedLevel1 | 2 | 3 | nullrequired
    • levelsarray<object>required
      Fields
      • level1 | 2 | 3required
      • approvedbooleanrequired
      • changedOnstring · date | nullrequired
      • approvedThroughstring · date | nullrequired
    • pendingEditsintegerrequired
      range ≥ 0

Response headers

  • 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.
  • Link The address of the next page, <…>; rel="next", while the list has more.
Possible errors 400 401 403 404 429 500 503 504
400INVALID_REQUEST MALFORMED_JSON INVALID_CURSOR CREDENTIAL_IN_QUERY
401UNAUTHENTICATED INVALID_CREDENTIAL CREDENTIAL_EXPIRED CREDENTIAL_REVOKED
403API_ACCESS_DISABLED API_CONSENT_REQUIRED PRINCIPAL_INACTIVE ROLE_PERMISSION_REQUIRED INSUFFICIENT_SCOPE DATA_CATEGORY_DISABLED APP_NOT_ALLOWED AI_PLANNING_UNAVAILABLE IP_NOT_ALLOWED FORBIDDEN
404NOT_FOUND STORE_NOT_FOUND NODE_NOT_FOUND SALES_PLAN_NOT_FOUND WEBHOOK_ENDPOINT_NOT_FOUND WEBHOOK_DELIVERY_NOT_FOUND
429RATE_LIMITED CONCURRENCY_LIMITED CAPACITY_EXCEEDED COMPANY_WORK_LIMITED HEAVY_DAILY_LIMIT_REACHED
500INTERNAL_ERROR
503SERVICE_UNAVAILABLE
504OPERATION_TIMEOUT
Request
GET/api/public/v1/timesheets/approvals
curl "https://api.proschedule.com/api/public/v1/timesheets/approvals?month=2026-10" \
  -H "Authorization: Bearer $PROSCHEDULE_API_KEY"
Response 200
{
  "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/api/public/v1/timesheets
get_timesheet

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.

Query parameters

  • fromstring · daterequired
    The first day of the period (YYYY-MM-DD), included.
    example 2026-11-01
  • tostring · daterequired
    The last day of the period (YYYY-MM-DD), included. At most 31 days from from.
    example 2026-11-15
  • nodeIdstring
    Keeps the stores below this structure node — or this store.
    length 1–200
  • viewstring
    summary (default): one row per person and store with the shifts counted and the hours added up. shifts: one row per worked shift.
    one of summary shiftsdefault "summary"
  • limitinteger
    The size of a page.
    range 1–200default 50
  • cursorstring
    page.nextCursor of 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
    one of summary shifts
  • peoplearray<object>
    With view=summary.
    Fields
    • storeIdstringrequired
    • storeNamestringrequired
    • employeeIdstringrequired
    • namestringrequired
    • roleobject | nullrequired
      Fields
      • idstringrequired
      • namestringrequired
    • shiftsobjectrequired
      Fields
      • totalintegerrequired
        range ≥ 0
      • approvedintegerrequired
        range ≥ 0
      • pendingintegerrequired
        range ≥ 0
      • rejectedintegerrequired
        range ≥ 0
    • hoursobjectrequired
      Hours 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>
    With view=shifts.
    Fields
    • shiftIdstringrequired
    • datestring · daterequired
    • storeIdstringrequired
    • storeNamestringrequired
    • employeeIdstringrequired
    • namestringrequired
    • startstringrequired
    • endstringrequired
    • startsNextDaybooleanrequired
    • endsNextDaybooleanrequired
    • statusstringrequired
      one of approved pending rejected
    • beforeHireDatebooleanrequired
    • hoursobjectrequired
      Hours 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-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.
  • Link The address of the next page, <…>; rel="next", while the list has more.
Possible errors 400 401 403 404 429 500 503 504
400INVALID_REQUEST MALFORMED_JSON INVALID_CURSOR CREDENTIAL_IN_QUERY
401UNAUTHENTICATED INVALID_CREDENTIAL CREDENTIAL_EXPIRED CREDENTIAL_REVOKED
403API_ACCESS_DISABLED API_CONSENT_REQUIRED PRINCIPAL_INACTIVE ROLE_PERMISSION_REQUIRED INSUFFICIENT_SCOPE DATA_CATEGORY_DISABLED APP_NOT_ALLOWED AI_PLANNING_UNAVAILABLE IP_NOT_ALLOWED FORBIDDEN
404NOT_FOUND STORE_NOT_FOUND NODE_NOT_FOUND SALES_PLAN_NOT_FOUND WEBHOOK_ENDPOINT_NOT_FOUND WEBHOOK_DELIVERY_NOT_FOUND
429RATE_LIMITED CONCURRENCY_LIMITED CAPACITY_EXCEEDED COMPANY_WORK_LIMITED HEAVY_DAILY_LIMIT_REACHED
500INTERNAL_ERROR
503SERVICE_UNAVAILABLE
504OPERATION_TIMEOUT
Request
GET/api/public/v1/timesheets
curl "https://api.proschedule.com/api/public/v1/timesheets?from=2026-11-01&to=2026-11-15" \
  -H "Authorization: Bearer $PROSCHEDULE_API_KEY"
Response 200
{
  "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
  }
}

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.

GET/api/public/v1/absences
get_absences

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.

Query parameters

  • fromstring · daterequired
    The first day of the period (YYYY-MM-DD), included.
    example 2026-11-01
  • tostring · daterequired
    The last day of the period (YYYY-MM-DD), included. At most 92 days from from.
    example 2026-11-30
  • nodeIdstring
    Keeps the people of the stores below this structure node — or of this store.
    length 1–200
  • limitinteger
    The size of a page.
    range 1–200default 50
  • cursorstring
    page.nextCursor of 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
  • summaryobjectrequired
    Fields
    • absencesintegerrequired
      range ≥ 0
    • peopleintegerrequired
      range ≥ 0
  • itemsarray<object>required
    Fields
    • storeIdstringrequired
    • storeNamestringrequired
    • employeeIdstringrequired
    • namestringrequired
    • fromstring · daterequired
    • tostring · daterequired
    • kindstringrequired
      one of vacation absence

Response headers

  • 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.
  • Link The address of the next page, <…>; rel="next", while the list has more.
Possible errors 400 401 403 404 429 500 503 504
400INVALID_REQUEST MALFORMED_JSON INVALID_CURSOR CREDENTIAL_IN_QUERY
401UNAUTHENTICATED INVALID_CREDENTIAL CREDENTIAL_EXPIRED CREDENTIAL_REVOKED
403API_ACCESS_DISABLED API_CONSENT_REQUIRED PRINCIPAL_INACTIVE ROLE_PERMISSION_REQUIRED INSUFFICIENT_SCOPE DATA_CATEGORY_DISABLED APP_NOT_ALLOWED AI_PLANNING_UNAVAILABLE IP_NOT_ALLOWED FORBIDDEN
404NOT_FOUND STORE_NOT_FOUND NODE_NOT_FOUND SALES_PLAN_NOT_FOUND WEBHOOK_ENDPOINT_NOT_FOUND WEBHOOK_DELIVERY_NOT_FOUND
429RATE_LIMITED CONCURRENCY_LIMITED CAPACITY_EXCEEDED COMPANY_WORK_LIMITED HEAVY_DAILY_LIMIT_REACHED
500INTERNAL_ERROR
503SERVICE_UNAVAILABLE
504OPERATION_TIMEOUT
Request
GET/api/public/v1/absences
curl "https://api.proschedule.com/api/public/v1/absences?from=2026-11-01&to=2026-11-30" \
  -H "Authorization: Bearer $PROSCHEDULE_API_KEY"
Response 200
{
  "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
  }
}

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.

GET/api/public/v1/sales-plans/dataset
get_sales_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.

Query parameters

  • monthstring · regexrequired
    The month to plan, YYYY-MM: the current month (UTC) or one of the next 12.
    pattern ^(\d{4})-(0[1-9]|1[0-2])$example 2026-12
  • nodeIdstring
    Keeps the stores below this structure node — or this store. Absent: every store of the reach.
    length 1–200example n_184

Response 200 { data, meta }

The data field:

  • monthstringrequired
  • currencystring | nullrequired
  • calendarobjectrequired
    Fields
    • daysintegerrequired
      range ≥ 0
    • closedDaysarray<string · date>required
    • holidaysarray<object>required
      Fields
      • datestring · daterequired
      • namestring | nullrequired
  • storesarray<object>required
    Fields
    • storeIdstringrequired
    • namestringrequired
    • patharray<object>required
      Fields
      • idstringrequired
      • namestringrequired
    • conceptstring | nullrequired
    • locationobject | nullrequired
      Fields
      • latitudenumberrequired
      • longitudenumberrequired
    • openHoursarray<object>required
      Fields
      • weekdaystringrequired
        one of monday tuesday wednesday thursday friday saturday sunday
      • startstringrequired
      • endstringrequired
      • endsNextDaybooleanrequired
    • lastSaleDatestring · date | nullrequired
    • weekdayMeanSalesobjectrequired
      Fields
      • mondaynumberrequired
        range ≥ 0
      • tuesdaynumberrequired
        range ≥ 0
      • wednesdaynumberrequired
        range ≥ 0
      • thursdaynumberrequired
        range ≥ 0
      • fridaynumberrequired
        range ≥ 0
      • saturdaynumberrequired
        range ≥ 0
      • sundaynumberrequired
        range ≥ 0
    • currentForecastobject | nullrequired
      Fields
      • salesnumberrequired
        range ≥ 0
      • transactionsintegerrequired
        range ≥ 0
      • daysFilledintegerrequired
        range ≥ 0
  • monthlySalesobjectrequired
    Columns storeId, month (YYYY-MM), sales, transactions, days (days with sales).
    Fields
    • columnsarray<string>required
    • rowsarray<array<string | number>>required
  • weeklySalesobjectrequired
    Columns storeId, weekStart (a Monday), sales, transactions.
    Fields
    • columnsarray<string>required
    • rowsarray<array<string | number>>required

Response headers

  • 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.
Possible errors 400 401 403 404 429 500 503 504
400INVALID_REQUEST MALFORMED_JSON INVALID_CURSOR CREDENTIAL_IN_QUERY
401UNAUTHENTICATED INVALID_CREDENTIAL CREDENTIAL_EXPIRED CREDENTIAL_REVOKED
403API_ACCESS_DISABLED API_CONSENT_REQUIRED PRINCIPAL_INACTIVE ROLE_PERMISSION_REQUIRED INSUFFICIENT_SCOPE DATA_CATEGORY_DISABLED APP_NOT_ALLOWED AI_PLANNING_UNAVAILABLE IP_NOT_ALLOWED FORBIDDEN
404NOT_FOUND STORE_NOT_FOUND NODE_NOT_FOUND SALES_PLAN_NOT_FOUND WEBHOOK_ENDPOINT_NOT_FOUND WEBHOOK_DELIVERY_NOT_FOUND
429RATE_LIMITED CONCURRENCY_LIMITED CAPACITY_EXCEEDED COMPANY_WORK_LIMITED HEAVY_DAILY_LIMIT_REACHED
500INTERNAL_ERROR
503SERVICE_UNAVAILABLE
504OPERATION_TIMEOUT
Request
GET/api/public/v1/sales-plans/dataset
curl "https://api.proschedule.com/api/public/v1/sales-plans/dataset?month=2026-12" \
  -H "Authorization: Bearer $PROSCHEDULE_API_KEY"
Response 200
{
  "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"
  }
}
GET/api/public/v1/sales-plans
list_sales_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.

Query parameters

  • monthstring · regex
    Keeps the plans of this month, YYYY-MM.
    pattern ^(\d{4})-(0[1-9]|1[0-2])$example 2026-12
  • statusstring
    Keeps the plans in this state.
    one of draft ready applied
  • limitinteger
    The size of a page.
    range 1–200default 50
  • cursorstring
    page.nextCursor of 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>required
    Fields
    • planIdstringrequired
    • titlestringrequired
    • monthstringrequired
    • statusstringrequired
      one of draft ready applied
    • scopeobject | object | objectrequired
      What 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
      range ≥ 0
    • storesWithFiguresintegerrequired
      range ≥ 0
    • totalSalesnumberrequired
      range ≥ 0
    • totalTransactionsnumberrequired
      range ≥ 0
    • runningbooleanrequired
    • minebooleanrequired
    • versionintegerrequired
      range ≥ 0
    • createdAtstring · date-timerequired
    • updatedAtstring · date-timerequired

Response headers

  • 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.
  • Link The address of the next page, <…>; rel="next", while the list has more.
Possible errors 400 401 403 404 429 500 503 504
400INVALID_REQUEST MALFORMED_JSON INVALID_CURSOR CREDENTIAL_IN_QUERY
401UNAUTHENTICATED INVALID_CREDENTIAL CREDENTIAL_EXPIRED CREDENTIAL_REVOKED
403API_ACCESS_DISABLED API_CONSENT_REQUIRED PRINCIPAL_INACTIVE ROLE_PERMISSION_REQUIRED INSUFFICIENT_SCOPE DATA_CATEGORY_DISABLED APP_NOT_ALLOWED AI_PLANNING_UNAVAILABLE IP_NOT_ALLOWED FORBIDDEN
404NOT_FOUND STORE_NOT_FOUND NODE_NOT_FOUND SALES_PLAN_NOT_FOUND WEBHOOK_ENDPOINT_NOT_FOUND WEBHOOK_DELIVERY_NOT_FOUND
429RATE_LIMITED CONCURRENCY_LIMITED CAPACITY_EXCEEDED COMPANY_WORK_LIMITED HEAVY_DAILY_LIMIT_REACHED
500INTERNAL_ERROR
503SERVICE_UNAVAILABLE
504OPERATION_TIMEOUT
Request
GET/api/public/v1/sales-plans
curl "https://api.proschedule.com/api/public/v1/sales-plans?month=2026-12" \
  -H "Authorization: Bearer $PROSCHEDULE_API_KEY"
Response 200
{
  "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
  }
}
POST/api/public/v1/sales-plans
create_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.

Request body application/json

  • planIdstring · uuid
    A plan to give new figures to (one the caller may edit). Absent: a new plan.
    pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$
  • versioninteger
    With planId: the plan's version the figures were made against.
    range ≥ 0
  • monthstring · regex
    A new plan's month, YYYY-MM: the current month or one of the next 12.
    pattern ^(\d{4})-(0[1-9]|1[0-2])$
  • scopeobject | object | object
    What a new plan covers: network (every store of the reach, at most 60), a structure node (its stores), or one store.
    Variants
    Variant 1
    • kind"network"required
    Variant 2
    • kind"node"required
    • nodeIdstringrequired
      length 1–200
    Variant 3
    • kind"store"required
    • storeIdstringrequired
      length 1–200
  • titlestring
    A new plan's title; a default names the store or node and the month.
    length ≤ 120
  • summarystring
    What the plan says as a whole, shown to the planner in the app.
    length ≤ 2000
  • storesarray<object>required
    The month's totals by store, each store of the plan at most once.
    items 1–60
    Fields
    • storeIdstringrequired
      A store of the plan.
      length 1–200
    • monthSalesnumberrequired
      The month's sales of the store, in whole currency units.
      range 0–1000000000000000
    • monthTransactionsnumberrequired
      The month's number of receipts.
      range 0–1000000000000000
    • confidencestringrequired
      How sure the model is of the store's figures.
      one of low medium high
    • rationalestring
      Why these figures, in a few sentences.
      length ≤ 1000
    • assumptionsarray<string>
      What the figures take for granted, at most five short lines.
      items ≤ 5item length ≤ 200
    • risksarray<string>
      What could make them wrong, at most five short lines.
      items ≤ 5item length ≤ 200

Response 200 { data, meta }

The data field:

  • planIdstringrequired
  • titlestringrequired
  • monthstringrequired
  • statusstringrequired
    one of draft ready applied
  • scopeobject | object | objectrequired
    What 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
    range ≥ 0
  • minebooleanrequired
  • summarystringrequired
  • runobject | nullrequired
    The plan's model turn: running while one is in flight; else how the last one ended — plan (figures), questions (the model asks before it plans; questions lists them), refusal or error. Null when no model turn was ever made.
    Fields
    • statusstringrequired
      one of running plan questions refusal error
    • questionsarray<string>required
  • storesarray<object>required
    Fields
    • storeIdstringrequired
    • namestringrequired
    • monthSalesnumberrequired
      range ≥ 0
    • monthTransactionsnumberrequired
      range ≥ 0
    • confidencestringrequired
      one of low medium high
    • sourcestringrequired
      one of model manual external
    • rationalestringrequired
    • assumptionsarray<string>required
    • risksarray<string>required
    • referenceobjectrequired
      Fields
      • lastMonthobject | nullrequired
        Fields
        • salesnumberrequired
          range ≥ 0
        • transactionsnumberrequired
          range ≥ 0
        • monthstringrequired
      • sameMonthLastYearobject | nullrequired
        Fields
        • salesnumberrequired
          range ≥ 0
        • transactionsnumberrequired
          range ≥ 0
      • forecastWhenPlannedobject | nullrequired
        Fields
        • salesnumberrequired
          range ≥ 0
        • transactionsnumberrequired
          range ≥ 0
  • storesWithoutFiguresarray<string>required
  • dailyobject | nullrequired
    Columns storeId, date, sales, transactions; null unless include=daily.
    Fields
    • columnsarray<string>required
    • rowsarray<array<string | number>>required
  • appliedobject | nullrequired
    Fields
    • atstring · date-timerequired
    • storesarray<object>required
      Fields
      • storeIdstringrequired
      • openDaysintegerrequired
        range ≥ 0
      • lockedDaysintegerrequired
        range ≥ 0
    • skippedarray<object>required
      Fields
      • storeIdstringrequired
      • reasonstringrequired
        one of fully_locked no_figures
  • createdAtstring · date-timerequired
  • updatedAtstring · date-timerequired

Response headers

  • 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.
Possible errors 400 401 403 404 409 413 415 422 429 500 503 504
400INVALID_REQUEST MALFORMED_JSON INVALID_CURSOR CREDENTIAL_IN_QUERY
401UNAUTHENTICATED INVALID_CREDENTIAL CREDENTIAL_EXPIRED CREDENTIAL_REVOKED
403API_ACCESS_DISABLED API_CONSENT_REQUIRED PRINCIPAL_INACTIVE ROLE_PERMISSION_REQUIRED INSUFFICIENT_SCOPE DATA_CATEGORY_DISABLED APP_NOT_ALLOWED AI_PLANNING_UNAVAILABLE IP_NOT_ALLOWED FORBIDDEN
404NOT_FOUND STORE_NOT_FOUND NODE_NOT_FOUND SALES_PLAN_NOT_FOUND WEBHOOK_ENDPOINT_NOT_FOUND WEBHOOK_DELIVERY_NOT_FOUND
409VERSION_CONFLICT PLAN_RUN_IN_PROGRESS PLAN_NOT_READY WEBHOOK_ENDPOINT_LIMIT WEBHOOK_ENDPOINT_DISABLED CONFLICT
413PAYLOAD_TOO_LARGE
415UNSUPPORTED_MEDIA_TYPE
422INVALID_QUERY INVALID_PERIOD PERIOD_TOO_LONG WEBHOOK_URL_NOT_ALLOWED TOO_MANY_STORES
429RATE_LIMITED CONCURRENCY_LIMITED CAPACITY_EXCEEDED COMPANY_WORK_LIMITED HEAVY_DAILY_LIMIT_REACHED
500INTERNAL_ERROR
503SERVICE_UNAVAILABLE
504OPERATION_TIMEOUT
Request
POST/api/public/v1/sales-plans
curl -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"
        ]
      }
    ]
  }'
Response 200
{
  "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"
  }
}
GET/api/public/v1/sales-plans/{planId}
get_sales_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.

Query parameters

  • planIdstring · uuidrequired
    The plan's id (list_sales_plans, or the answer that made it).
    pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$example 5b0f6a3e-2d1c-4f8e-9a7b-1c2d3e4f5a6b
  • includearray<string>
    daily adds the day-by-day split of every store's figures (daily): up to 31 rows a store.
    items one of daily

Response 200 { data, meta }

The data field:

  • planIdstringrequired
  • titlestringrequired
  • monthstringrequired
  • statusstringrequired
    one of draft ready applied
  • scopeobject | object | objectrequired
    What 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
    range ≥ 0
  • minebooleanrequired
  • summarystringrequired
  • runobject | nullrequired
    The plan's model turn: running while one is in flight; else how the last one ended — plan (figures), questions (the model asks before it plans; questions lists them), refusal or error. Null when no model turn was ever made.
    Fields
    • statusstringrequired
      one of running plan questions refusal error
    • questionsarray<string>required
  • storesarray<object>required
    Fields
    • storeIdstringrequired
    • namestringrequired
    • monthSalesnumberrequired
      range ≥ 0
    • monthTransactionsnumberrequired
      range ≥ 0
    • confidencestringrequired
      one of low medium high
    • sourcestringrequired
      one of model manual external
    • rationalestringrequired
    • assumptionsarray<string>required
    • risksarray<string>required
    • referenceobjectrequired
      Fields
      • lastMonthobject | nullrequired
        Fields
        • salesnumberrequired
          range ≥ 0
        • transactionsnumberrequired
          range ≥ 0
        • monthstringrequired
      • sameMonthLastYearobject | nullrequired
        Fields
        • salesnumberrequired
          range ≥ 0
        • transactionsnumberrequired
          range ≥ 0
      • forecastWhenPlannedobject | nullrequired
        Fields
        • salesnumberrequired
          range ≥ 0
        • transactionsnumberrequired
          range ≥ 0
  • storesWithoutFiguresarray<string>required
  • dailyobject | nullrequired
    Columns storeId, date, sales, transactions; null unless include=daily.
    Fields
    • columnsarray<string>required
    • rowsarray<array<string | number>>required
  • appliedobject | nullrequired
    Fields
    • atstring · date-timerequired
    • storesarray<object>required
      Fields
      • storeIdstringrequired
      • openDaysintegerrequired
        range ≥ 0
      • lockedDaysintegerrequired
        range ≥ 0
    • skippedarray<object>required
      Fields
      • storeIdstringrequired
      • reasonstringrequired
        one of fully_locked no_figures
  • createdAtstring · date-timerequired
  • updatedAtstring · date-timerequired

Response headers

  • 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.
Possible errors 400 401 403 404 429 500 503 504
400INVALID_REQUEST MALFORMED_JSON INVALID_CURSOR CREDENTIAL_IN_QUERY
401UNAUTHENTICATED INVALID_CREDENTIAL CREDENTIAL_EXPIRED CREDENTIAL_REVOKED
403API_ACCESS_DISABLED API_CONSENT_REQUIRED PRINCIPAL_INACTIVE ROLE_PERMISSION_REQUIRED INSUFFICIENT_SCOPE DATA_CATEGORY_DISABLED APP_NOT_ALLOWED AI_PLANNING_UNAVAILABLE IP_NOT_ALLOWED FORBIDDEN
404NOT_FOUND STORE_NOT_FOUND NODE_NOT_FOUND SALES_PLAN_NOT_FOUND WEBHOOK_ENDPOINT_NOT_FOUND WEBHOOK_DELIVERY_NOT_FOUND
429RATE_LIMITED CONCURRENCY_LIMITED CAPACITY_EXCEEDED COMPANY_WORK_LIMITED HEAVY_DAILY_LIMIT_REACHED
500INTERNAL_ERROR
503SERVICE_UNAVAILABLE
504OPERATION_TIMEOUT
Request
GET/api/public/v1/sales-plans/{planId}
curl "https://api.proschedule.com/api/public/v1/sales-plans/{planId}" \
  -H "Authorization: Bearer $PROSCHEDULE_API_KEY"
Response 200
{
  "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"
  }
}
POST/api/public/v1/sales-plans/ai-runs
start_ai_sales_plan

Asks 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

  • promptstringrequired
    What the planner's model is asked: goals, context, or a correction of the plan (+10% in Tashkent), or the answers to its questions.
    length 1–2000
  • planIdstring · uuid
    A plan to refine (one the caller may edit). Absent: a new plan.
    pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$
  • monthstring · regex
    A new plan's month, YYYY-MM: the current month or one of the next 12.
    pattern ^(\d{4})-(0[1-9]|1[0-2])$
  • scopeobject | object | object
    What a new plan covers: network (every store of the reach, at most 60), a structure node (its stores), or one store.
    Variants
    Variant 1
    • kind"network"required
    Variant 2
    • kind"node"required
    • nodeIdstringrequired
      length 1–200
    Variant 3
    • kind"store"required
    • storeIdstringrequired
      length 1–200
  • titlestring
    A new plan's title; a default names the store or node and the month.
    length ≤ 120
  • languagestring
    The language of the model's summary and reasons. Default: the company's.
    one of ru en he uz es pt de fr ja ar

Response 200 { data, meta }

The data field:

  • planIdstringrequired
  • turnintegerrequired
    range ≥ 1
  • status"running"required
  • estimatedCreditsintegerrequired
    What the turn is expected to cost the company's AI credits; the charge settles when it ends.
    range ≥ 0
  • pollAfterSecondsintegerrequired
    range ≥ 1

Response headers

  • 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.
Possible errors 400 401 402 403 404 409 413 415 422 429 500 503 504
400INVALID_REQUEST MALFORMED_JSON INVALID_CURSOR CREDENTIAL_IN_QUERY
401UNAUTHENTICATED INVALID_CREDENTIAL CREDENTIAL_EXPIRED CREDENTIAL_REVOKED
402AI_TURN_NOT_COVERED
403API_ACCESS_DISABLED API_CONSENT_REQUIRED PRINCIPAL_INACTIVE ROLE_PERMISSION_REQUIRED INSUFFICIENT_SCOPE DATA_CATEGORY_DISABLED APP_NOT_ALLOWED AI_PLANNING_UNAVAILABLE IP_NOT_ALLOWED FORBIDDEN
404NOT_FOUND STORE_NOT_FOUND NODE_NOT_FOUND SALES_PLAN_NOT_FOUND WEBHOOK_ENDPOINT_NOT_FOUND WEBHOOK_DELIVERY_NOT_FOUND
409VERSION_CONFLICT PLAN_RUN_IN_PROGRESS PLAN_NOT_READY WEBHOOK_ENDPOINT_LIMIT WEBHOOK_ENDPOINT_DISABLED CONFLICT
413PAYLOAD_TOO_LARGE
415UNSUPPORTED_MEDIA_TYPE
422INVALID_QUERY INVALID_PERIOD PERIOD_TOO_LONG WEBHOOK_URL_NOT_ALLOWED TOO_MANY_STORES
429RATE_LIMITED CONCURRENCY_LIMITED CAPACITY_EXCEEDED COMPANY_WORK_LIMITED HEAVY_DAILY_LIMIT_REACHED
500INTERNAL_ERROR
503SERVICE_UNAVAILABLE
504OPERATION_TIMEOUT
Request
POST/api/public/v1/sales-plans/ai-runs
curl -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"
    }
  }'
Response 200
{
  "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"
  }
}
POST/api/public/v1/sales-plans/{planId}/apply
apply_sales_plan
forecast:writeweight: write

Writes 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 · uuidrequired
    The plan to write into the forecast.
    pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$example 5b0f6a3e-2d1c-4f8e-9a7b-1c2d3e4f5a6b

Request body application/json

  • versionintegerrequired
    The plan's version the caller reviewed: a plan changed since is not written (409 VERSION_CONFLICT).
    range ≥ 0
  • storeIdsarray<string>
    Writes only these stores of the plan. Absent: every store with figures.
    items 1–60item length 1–200

Response 200 { data, meta }

The data field:

  • planIdstringrequired
  • titlestringrequired
  • monthstringrequired
  • statusstringrequired
    one of draft ready applied
  • scopeobject | object | objectrequired
    What 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
    range ≥ 0
  • minebooleanrequired
  • summarystringrequired
  • runobject | nullrequired
    The plan's model turn: running while one is in flight; else how the last one ended — plan (figures), questions (the model asks before it plans; questions lists them), refusal or error. Null when no model turn was ever made.
    Fields
    • statusstringrequired
      one of running plan questions refusal error
    • questionsarray<string>required
  • storesarray<object>required
    Fields
    • storeIdstringrequired
    • namestringrequired
    • monthSalesnumberrequired
      range ≥ 0
    • monthTransactionsnumberrequired
      range ≥ 0
    • confidencestringrequired
      one of low medium high
    • sourcestringrequired
      one of model manual external
    • rationalestringrequired
    • assumptionsarray<string>required
    • risksarray<string>required
    • referenceobjectrequired
      Fields
      • lastMonthobject | nullrequired
        Fields
        • salesnumberrequired
          range ≥ 0
        • transactionsnumberrequired
          range ≥ 0
        • monthstringrequired
      • sameMonthLastYearobject | nullrequired
        Fields
        • salesnumberrequired
          range ≥ 0
        • transactionsnumberrequired
          range ≥ 0
      • forecastWhenPlannedobject | nullrequired
        Fields
        • salesnumberrequired
          range ≥ 0
        • transactionsnumberrequired
          range ≥ 0
  • storesWithoutFiguresarray<string>required
  • dailyobject | nullrequired
    Columns storeId, date, sales, transactions; null unless include=daily.
    Fields
    • columnsarray<string>required
    • rowsarray<array<string | number>>required
  • appliedobject | nullrequired
    Fields
    • atstring · date-timerequired
    • storesarray<object>required
      Fields
      • storeIdstringrequired
      • openDaysintegerrequired
        range ≥ 0
      • lockedDaysintegerrequired
        range ≥ 0
    • skippedarray<object>required
      Fields
      • storeIdstringrequired
      • reasonstringrequired
        one of fully_locked no_figures
  • createdAtstring · date-timerequired
  • updatedAtstring · date-timerequired

Response headers

  • 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.
Possible errors 400 401 403 404 409 413 415 422 429 500 503 504
400INVALID_REQUEST MALFORMED_JSON INVALID_CURSOR CREDENTIAL_IN_QUERY
401UNAUTHENTICATED INVALID_CREDENTIAL CREDENTIAL_EXPIRED CREDENTIAL_REVOKED
403API_ACCESS_DISABLED API_CONSENT_REQUIRED PRINCIPAL_INACTIVE ROLE_PERMISSION_REQUIRED INSUFFICIENT_SCOPE DATA_CATEGORY_DISABLED APP_NOT_ALLOWED AI_PLANNING_UNAVAILABLE IP_NOT_ALLOWED FORBIDDEN
404NOT_FOUND STORE_NOT_FOUND NODE_NOT_FOUND SALES_PLAN_NOT_FOUND WEBHOOK_ENDPOINT_NOT_FOUND WEBHOOK_DELIVERY_NOT_FOUND
409VERSION_CONFLICT PLAN_RUN_IN_PROGRESS PLAN_NOT_READY WEBHOOK_ENDPOINT_LIMIT WEBHOOK_ENDPOINT_DISABLED CONFLICT
413PAYLOAD_TOO_LARGE
415UNSUPPORTED_MEDIA_TYPE
422INVALID_QUERY INVALID_PERIOD PERIOD_TOO_LONG WEBHOOK_URL_NOT_ALLOWED TOO_MANY_STORES
429RATE_LIMITED CONCURRENCY_LIMITED CAPACITY_EXCEEDED COMPANY_WORK_LIMITED HEAVY_DAILY_LIMIT_REACHED
500INTERNAL_ERROR
503SERVICE_UNAVAILABLE
504OPERATION_TIMEOUT
Request
POST/api/public/v1/sales-plans/{planId}/apply
curl -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
  }'
Response 200
{
  "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"
  }
}

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.

POST/api/public/v1/staffing/estimates
estimate_required_hours

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.

Request body application/json

  • storeIdstringrequired
    The store (search_directory finds its id by name).
    length 1–200
  • daysarray<object>required
    1 to 31 days, each at most once, none more than 30 days from another.
    items 1–31
    Fields
    • datestring · daterequired
      The day (YYYY-MM-DD).
    • salesnumberrequired
      The day's sales to staff for, in the company's currency.
      range 0–1000000000000000
    • transactionsnumberrequired
      The day's number of receipts to staff for.
      range 0–1000000000000000
    • menuItemsnumber
      The 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.
      range 0–1000000000000000

Response 200 { data, meta }

The data field:

  • storeIdstringrequired
  • storeNamestringrequired
  • positionsarray<object>required
    Fields
    • positionIdstringrequired
    • namestringrequired
    • measurestringrequired
      one of sales transactions menu_items
    • weeklybooleanrequired
  • daysarray<object>required
    Fields
    • datestring · daterequired
    • weekdaystringrequired
      one of monday tuesday wednesday thursday friday saturday sunday
    • openobject | nullrequired
      Fields
      • startstringrequired
      • endstringrequired
      • startsNextDaybooleanrequired
      • endsNextDaybooleanrequired
    • closedstring | nullrequired
      one of store company
    • profilestring | nullrequired
      one of sales_history even
    • estimateobjectrequired
      Fields
      • salesnumberrequired
      • transactionsnumberrequired
      • menuItemsnumber | nullrequired
      • hoursnumberrequired
    • savedobjectrequired
      Fields
      • salesnumberrequired
      • transactionsnumberrequired
      • menuItemsnumber | nullrequired
      • hoursnumberrequired
    • positionsarray<object>required
      Fields
      • positionIdstringrequired
      • hoursnumberrequired
      • savedHoursnumberrequired
  • totalsobjectrequired
    Fields
    • estimateobjectrequired
      Fields
      • salesnumberrequired
      • transactionsnumberrequired
      • hoursnumberrequired
    • savedobjectrequired
      Fields
      • salesnumberrequired
      • transactionsnumberrequired
      • hoursnumberrequired

Response headers

  • 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.
Possible errors 400 401 403 404 413 415 422 429 500 503 504
400INVALID_REQUEST MALFORMED_JSON INVALID_CURSOR CREDENTIAL_IN_QUERY
401UNAUTHENTICATED INVALID_CREDENTIAL CREDENTIAL_EXPIRED CREDENTIAL_REVOKED
403API_ACCESS_DISABLED API_CONSENT_REQUIRED PRINCIPAL_INACTIVE ROLE_PERMISSION_REQUIRED INSUFFICIENT_SCOPE DATA_CATEGORY_DISABLED APP_NOT_ALLOWED AI_PLANNING_UNAVAILABLE IP_NOT_ALLOWED FORBIDDEN
404NOT_FOUND STORE_NOT_FOUND NODE_NOT_FOUND SALES_PLAN_NOT_FOUND WEBHOOK_ENDPOINT_NOT_FOUND WEBHOOK_DELIVERY_NOT_FOUND
413PAYLOAD_TOO_LARGE
415UNSUPPORTED_MEDIA_TYPE
422INVALID_QUERY INVALID_PERIOD PERIOD_TOO_LONG WEBHOOK_URL_NOT_ALLOWED TOO_MANY_STORES
429RATE_LIMITED CONCURRENCY_LIMITED CAPACITY_EXCEEDED COMPANY_WORK_LIMITED HEAVY_DAILY_LIMIT_REACHED
500INTERNAL_ERROR
503SERVICE_UNAVAILABLE
504OPERATION_TIMEOUT
Request
POST/api/public/v1/staffing/estimates
curl -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
      }
    ]
  }'
Response 200
{
  "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"
  }
}

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.

GET/api/public/v1/webhooks/endpoints
list_webhook_endpoints
webhooks:manageweight: light

The 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>required
    Fields
    • idstring · uuidrequired
      pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$
    • urlstringrequired
    • descriptionstringrequired
    • eventTypesarray<string>required
      items one of schedule.week.submitted schedule.week.approved schedule.week.returned schedule.month.submitted schedule.month.approved schedule.month.returned timesheet.month.approved sales_plan.ready sales_plan.applied forecast.updated ai_credits.low
    • enabledbooleanrequired
      Off: 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 | objectrequired
      Variants
      Variant 1
      • kind"administrators"required
      Variant 2
      • kind"service_key"required
      • keyIdstring | nullrequired
      • keyNamestring | nullrequired
    • secretobjectrequired
      Fields
      • createdAtstring · date-timerequired
        When the current signing secret was made.
      • previousExpiresAtstring · date-time | nullrequired
        Until when the secret before the last rotation still signs; null when there is none.
    • createdAtstring · date-timerequired
    • updatedAtstring · date-timerequired
    • lastSucceededAtstring · date-time | nullrequired
      The last attempt the receiver answered with a 2xx.
    • lastFailedAtstring · date-time | nullrequired
      The last attempt that failed.
    • failingSincestring · date-time | nullrequired
      The first failed attempt since the last success; null while the receiver takes messages. Five days of it switch the endpoint off.
    • disabledReasonstring | nullrequired
      Why 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/retry sends again what failed.
      one of failing
    • disabledAtstring · date-time | nullrequired
      When it switched itself off; null otherwise.

Response headers

  • 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.
Possible errors 400 401 403 404 429 500 503 504
400INVALID_REQUEST MALFORMED_JSON INVALID_CURSOR CREDENTIAL_IN_QUERY
401UNAUTHENTICATED INVALID_CREDENTIAL CREDENTIAL_EXPIRED CREDENTIAL_REVOKED
403API_ACCESS_DISABLED API_CONSENT_REQUIRED PRINCIPAL_INACTIVE ROLE_PERMISSION_REQUIRED INSUFFICIENT_SCOPE DATA_CATEGORY_DISABLED APP_NOT_ALLOWED AI_PLANNING_UNAVAILABLE IP_NOT_ALLOWED FORBIDDEN
404NOT_FOUND STORE_NOT_FOUND NODE_NOT_FOUND SALES_PLAN_NOT_FOUND WEBHOOK_ENDPOINT_NOT_FOUND WEBHOOK_DELIVERY_NOT_FOUND
429RATE_LIMITED CONCURRENCY_LIMITED CAPACITY_EXCEEDED COMPANY_WORK_LIMITED HEAVY_DAILY_LIMIT_REACHED
500INTERNAL_ERROR
503SERVICE_UNAVAILABLE
504OPERATION_TIMEOUT
Request
GET/api/public/v1/webhooks/endpoints
curl "https://api.proschedule.com/api/public/v1/webhooks/endpoints" \
  -H "Authorization: Bearer $PROSCHEDULE_API_KEY"
Response 200
{
  "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"
  }
}
POST/api/public/v1/webhooks/endpoints
create_webhook_endpoint
webhooks:manageweight: light

Adds 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

  • urlstringrequired
    Where 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.
    length 1–2048
  • descriptionstring
    A note for people: what receives it.
    length ≤ 200
  • eventTypesarray<string>required
    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:read and 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.
    items one of schedule.week.submitted schedule.week.approved schedule.week.returned schedule.month.submitted schedule.month.approved schedule.month.returned timesheet.month.approved sales_plan.ready sales_plan.applied forecast.updated ai_credits.lowitems 1–11

Response 200 { data, meta }

The data field:

  • endpointobjectrequired
    Fields
    • idstring · uuidrequired
      pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$
    • urlstringrequired
    • descriptionstringrequired
    • eventTypesarray<string>required
      items one of schedule.week.submitted schedule.week.approved schedule.week.returned schedule.month.submitted schedule.month.approved schedule.month.returned timesheet.month.approved sales_plan.ready sales_plan.applied forecast.updated ai_credits.low
    • enabledbooleanrequired
      Off: 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 | objectrequired
      Variants
      Variant 1
      • kind"administrators"required
      Variant 2
      • kind"service_key"required
      • keyIdstring | nullrequired
      • keyNamestring | nullrequired
    • secretobjectrequired
      Fields
      • createdAtstring · date-timerequired
        When the current signing secret was made.
      • previousExpiresAtstring · date-time | nullrequired
        Until when the secret before the last rotation still signs; null when there is none.
    • createdAtstring · date-timerequired
    • updatedAtstring · date-timerequired
    • lastSucceededAtstring · date-time | nullrequired
      The last attempt the receiver answered with a 2xx.
    • lastFailedAtstring · date-time | nullrequired
      The last attempt that failed.
    • failingSincestring · date-time | nullrequired
      The first failed attempt since the last success; null while the receiver takes messages. Five days of it switch the endpoint off.
    • disabledReasonstring | nullrequired
      Why 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/retry sends again what failed.
      one of failing
    • disabledAtstring · date-time | nullrequired
      When it switched itself off; null otherwise.
  • secretstring | nullrequired
    The 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-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.
Possible errors 400 401 403 404 409 413 415 422 429 500 503 504
400INVALID_REQUEST MALFORMED_JSON INVALID_CURSOR CREDENTIAL_IN_QUERY
401UNAUTHENTICATED INVALID_CREDENTIAL CREDENTIAL_EXPIRED CREDENTIAL_REVOKED
403API_ACCESS_DISABLED API_CONSENT_REQUIRED PRINCIPAL_INACTIVE ROLE_PERMISSION_REQUIRED INSUFFICIENT_SCOPE DATA_CATEGORY_DISABLED APP_NOT_ALLOWED AI_PLANNING_UNAVAILABLE IP_NOT_ALLOWED FORBIDDEN
404NOT_FOUND STORE_NOT_FOUND NODE_NOT_FOUND SALES_PLAN_NOT_FOUND WEBHOOK_ENDPOINT_NOT_FOUND WEBHOOK_DELIVERY_NOT_FOUND
409VERSION_CONFLICT PLAN_RUN_IN_PROGRESS PLAN_NOT_READY WEBHOOK_ENDPOINT_LIMIT WEBHOOK_ENDPOINT_DISABLED CONFLICT
413PAYLOAD_TOO_LARGE
415UNSUPPORTED_MEDIA_TYPE
422INVALID_QUERY INVALID_PERIOD PERIOD_TOO_LONG WEBHOOK_URL_NOT_ALLOWED TOO_MANY_STORES
429RATE_LIMITED CONCURRENCY_LIMITED CAPACITY_EXCEEDED COMPANY_WORK_LIMITED HEAVY_DAILY_LIMIT_REACHED
500INTERNAL_ERROR
503SERVICE_UNAVAILABLE
504OPERATION_TIMEOUT
Request
POST/api/public/v1/webhooks/endpoints
curl -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"
    ]
  }'
Response 200
{
  "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"
  }
}
GET/api/public/v1/webhooks/endpoints/{endpointId}
get_webhook_endpoint
webhooks:manageweight: light

One 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 · uuidrequired
    The endpoint, as id of an endpoint names it.
    pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$example 0b8f2c4e-6a1d-4c3b-9e7f-5a2d1c0b9e8f

Response 200 { data, meta }

The data field:

  • idstring · uuidrequired
    pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$
  • urlstringrequired
  • descriptionstringrequired
  • eventTypesarray<string>required
    items one of schedule.week.submitted schedule.week.approved schedule.week.returned schedule.month.submitted schedule.month.approved schedule.month.returned timesheet.month.approved sales_plan.ready sales_plan.applied forecast.updated ai_credits.low
  • enabledbooleanrequired
    Off: 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 | objectrequired
    Variants
    Variant 1
    • kind"administrators"required
    Variant 2
    • kind"service_key"required
    • keyIdstring | nullrequired
    • keyNamestring | nullrequired
  • secretobjectrequired
    Fields
    • createdAtstring · date-timerequired
      When the current signing secret was made.
    • previousExpiresAtstring · date-time | nullrequired
      Until when the secret before the last rotation still signs; null when there is none.
  • createdAtstring · date-timerequired
  • updatedAtstring · date-timerequired
  • lastSucceededAtstring · date-time | nullrequired
    The last attempt the receiver answered with a 2xx.
  • lastFailedAtstring · date-time | nullrequired
    The last attempt that failed.
  • failingSincestring · date-time | nullrequired
    The first failed attempt since the last success; null while the receiver takes messages. Five days of it switch the endpoint off.
  • disabledReasonstring | nullrequired
    Why 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/retry sends again what failed.
    one of failing
  • disabledAtstring · date-time | nullrequired
    When it switched itself off; null otherwise.

Response headers

  • 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.
Possible errors 400 401 403 404 429 500 503 504
400INVALID_REQUEST MALFORMED_JSON INVALID_CURSOR CREDENTIAL_IN_QUERY
401UNAUTHENTICATED INVALID_CREDENTIAL CREDENTIAL_EXPIRED CREDENTIAL_REVOKED
403API_ACCESS_DISABLED API_CONSENT_REQUIRED PRINCIPAL_INACTIVE ROLE_PERMISSION_REQUIRED INSUFFICIENT_SCOPE DATA_CATEGORY_DISABLED APP_NOT_ALLOWED AI_PLANNING_UNAVAILABLE IP_NOT_ALLOWED FORBIDDEN
404NOT_FOUND STORE_NOT_FOUND NODE_NOT_FOUND SALES_PLAN_NOT_FOUND WEBHOOK_ENDPOINT_NOT_FOUND WEBHOOK_DELIVERY_NOT_FOUND
429RATE_LIMITED CONCURRENCY_LIMITED CAPACITY_EXCEEDED COMPANY_WORK_LIMITED HEAVY_DAILY_LIMIT_REACHED
500INTERNAL_ERROR
503SERVICE_UNAVAILABLE
504OPERATION_TIMEOUT
Request
GET/api/public/v1/webhooks/endpoints/{endpointId}
curl "https://api.proschedule.com/api/public/v1/webhooks/endpoints/{endpointId}" \
  -H "Authorization: Bearer $PROSCHEDULE_API_KEY"
Response 200
{
  "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"
  }
}
PATCH/api/public/v1/webhooks/endpoints/{endpointId}
update_webhook_endpoint
webhooks:manageweight: light

Changes 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 · uuidrequired
    The endpoint, as id of an endpoint names it.
    pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$example 0b8f2c4e-6a1d-4c3b-9e7f-5a2d1c0b9e8f

Request body application/json

  • urlstring
    Where 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.
    length 1–2048
  • descriptionstring
    A note for people: what receives it.
    length ≤ 200
  • 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:read and 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.
    items one of schedule.week.submitted schedule.week.approved schedule.week.returned schedule.month.submitted schedule.month.approved schedule.month.returned timesheet.month.approved sales_plan.ready sales_plan.applied forecast.updated ai_credits.lowitems 1–11
  • enabledboolean
    Off: nothing is sent, and what waits for it waits; on again, it goes on.

Response 200 { data, meta }

The data field:

  • idstring · uuidrequired
    pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$
  • urlstringrequired
  • descriptionstringrequired
  • eventTypesarray<string>required
    items one of schedule.week.submitted schedule.week.approved schedule.week.returned schedule.month.submitted schedule.month.approved schedule.month.returned timesheet.month.approved sales_plan.ready sales_plan.applied forecast.updated ai_credits.low
  • enabledbooleanrequired
    Off: 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 | objectrequired
    Variants
    Variant 1
    • kind"administrators"required
    Variant 2
    • kind"service_key"required
    • keyIdstring | nullrequired
    • keyNamestring | nullrequired
  • secretobjectrequired
    Fields
    • createdAtstring · date-timerequired
      When the current signing secret was made.
    • previousExpiresAtstring · date-time | nullrequired
      Until when the secret before the last rotation still signs; null when there is none.
  • createdAtstring · date-timerequired
  • updatedAtstring · date-timerequired
  • lastSucceededAtstring · date-time | nullrequired
    The last attempt the receiver answered with a 2xx.
  • lastFailedAtstring · date-time | nullrequired
    The last attempt that failed.
  • failingSincestring · date-time | nullrequired
    The first failed attempt since the last success; null while the receiver takes messages. Five days of it switch the endpoint off.
  • disabledReasonstring | nullrequired
    Why 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/retry sends again what failed.
    one of failing
  • disabledAtstring · date-time | nullrequired
    When it switched itself off; null otherwise.

Response headers

  • 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.
Possible errors 400 401 403 404 413 415 422 429 500 503 504
400INVALID_REQUEST MALFORMED_JSON INVALID_CURSOR CREDENTIAL_IN_QUERY
401UNAUTHENTICATED INVALID_CREDENTIAL CREDENTIAL_EXPIRED CREDENTIAL_REVOKED
403API_ACCESS_DISABLED API_CONSENT_REQUIRED PRINCIPAL_INACTIVE ROLE_PERMISSION_REQUIRED INSUFFICIENT_SCOPE DATA_CATEGORY_DISABLED APP_NOT_ALLOWED AI_PLANNING_UNAVAILABLE IP_NOT_ALLOWED FORBIDDEN
404NOT_FOUND STORE_NOT_FOUND NODE_NOT_FOUND SALES_PLAN_NOT_FOUND WEBHOOK_ENDPOINT_NOT_FOUND WEBHOOK_DELIVERY_NOT_FOUND
413PAYLOAD_TOO_LARGE
415UNSUPPORTED_MEDIA_TYPE
422INVALID_QUERY INVALID_PERIOD PERIOD_TOO_LONG WEBHOOK_URL_NOT_ALLOWED TOO_MANY_STORES
429RATE_LIMITED CONCURRENCY_LIMITED CAPACITY_EXCEEDED COMPANY_WORK_LIMITED HEAVY_DAILY_LIMIT_REACHED
500INTERNAL_ERROR
503SERVICE_UNAVAILABLE
504OPERATION_TIMEOUT
Request
PATCH/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
  }'
Response 200
{
  "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"
  }
}
DELETE/api/public/v1/webhooks/endpoints/{endpointId}
delete_webhook_endpoint
webhooks:manageweight: light

Deletes 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 · uuidrequired
    The endpoint, as id of an endpoint names it.
    pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$example 0b8f2c4e-6a1d-4c3b-9e7f-5a2d1c0b9e8f

Response 200 { data, meta }

The data field:

  • idstring · uuidrequired
    pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$
  • deletedtruerequired

Response headers

  • 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.
Possible errors 400 401 403 404 429 500 503 504
400INVALID_REQUEST MALFORMED_JSON INVALID_CURSOR CREDENTIAL_IN_QUERY
401UNAUTHENTICATED INVALID_CREDENTIAL CREDENTIAL_EXPIRED CREDENTIAL_REVOKED
403API_ACCESS_DISABLED API_CONSENT_REQUIRED PRINCIPAL_INACTIVE ROLE_PERMISSION_REQUIRED INSUFFICIENT_SCOPE DATA_CATEGORY_DISABLED APP_NOT_ALLOWED AI_PLANNING_UNAVAILABLE IP_NOT_ALLOWED FORBIDDEN
404NOT_FOUND STORE_NOT_FOUND NODE_NOT_FOUND SALES_PLAN_NOT_FOUND WEBHOOK_ENDPOINT_NOT_FOUND WEBHOOK_DELIVERY_NOT_FOUND
429RATE_LIMITED CONCURRENCY_LIMITED CAPACITY_EXCEEDED COMPANY_WORK_LIMITED HEAVY_DAILY_LIMIT_REACHED
500INTERNAL_ERROR
503SERVICE_UNAVAILABLE
504OPERATION_TIMEOUT
Request
DELETE/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"
Response 200
{
  "data": {
    "id": "0b8f2c4e-6a1d-4c3b-9e7f-5a2d1c0b9e8f",
    "deleted": true
  },
  "meta": {
    "requestId": "5f0c2b9e-7c1d-4a57-9d43-2f6f5a1f0b3c",
    "generatedAt": "2026-11-12T09:30:00.000Z"
  }
}
POST/api/public/v1/webhooks/endpoints/{endpointId}/rotate-secret
rotate_webhook_secret
webhooks:manageweight: light

Makes 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 · uuidrequired
    The endpoint, as id of an endpoint names it.
    pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$example 0b8f2c4e-6a1d-4c3b-9e7f-5a2d1c0b9e8f

Request body application/json

  • overlapHoursinteger
    How long the secret it replaces still signs too, in hours. Default 24.
    range 1–168

Response 200 { data, meta }

The data field:

  • endpointobjectrequired
    Fields
    • idstring · uuidrequired
      pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$
    • urlstringrequired
    • descriptionstringrequired
    • eventTypesarray<string>required
      items one of schedule.week.submitted schedule.week.approved schedule.week.returned schedule.month.submitted schedule.month.approved schedule.month.returned timesheet.month.approved sales_plan.ready sales_plan.applied forecast.updated ai_credits.low
    • enabledbooleanrequired
      Off: 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 | objectrequired
      Variants
      Variant 1
      • kind"administrators"required
      Variant 2
      • kind"service_key"required
      • keyIdstring | nullrequired
      • keyNamestring | nullrequired
    • secretobjectrequired
      Fields
      • createdAtstring · date-timerequired
        When the current signing secret was made.
      • previousExpiresAtstring · date-time | nullrequired
        Until when the secret before the last rotation still signs; null when there is none.
    • createdAtstring · date-timerequired
    • updatedAtstring · date-timerequired
    • lastSucceededAtstring · date-time | nullrequired
      The last attempt the receiver answered with a 2xx.
    • lastFailedAtstring · date-time | nullrequired
      The last attempt that failed.
    • failingSincestring · date-time | nullrequired
      The first failed attempt since the last success; null while the receiver takes messages. Five days of it switch the endpoint off.
    • disabledReasonstring | nullrequired
      Why 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/retry sends again what failed.
      one of failing
    • disabledAtstring · date-time | nullrequired
      When it switched itself off; null otherwise.
  • secretstring | nullrequired
    The 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-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.
Possible errors 400 401 403 404 409 413 415 422 429 500 503 504
400INVALID_REQUEST MALFORMED_JSON INVALID_CURSOR CREDENTIAL_IN_QUERY
401UNAUTHENTICATED INVALID_CREDENTIAL CREDENTIAL_EXPIRED CREDENTIAL_REVOKED
403API_ACCESS_DISABLED API_CONSENT_REQUIRED PRINCIPAL_INACTIVE ROLE_PERMISSION_REQUIRED INSUFFICIENT_SCOPE DATA_CATEGORY_DISABLED APP_NOT_ALLOWED AI_PLANNING_UNAVAILABLE IP_NOT_ALLOWED FORBIDDEN
404NOT_FOUND STORE_NOT_FOUND NODE_NOT_FOUND SALES_PLAN_NOT_FOUND WEBHOOK_ENDPOINT_NOT_FOUND WEBHOOK_DELIVERY_NOT_FOUND
409VERSION_CONFLICT PLAN_RUN_IN_PROGRESS PLAN_NOT_READY WEBHOOK_ENDPOINT_LIMIT WEBHOOK_ENDPOINT_DISABLED CONFLICT
413PAYLOAD_TOO_LARGE
415UNSUPPORTED_MEDIA_TYPE
422INVALID_QUERY INVALID_PERIOD PERIOD_TOO_LONG WEBHOOK_URL_NOT_ALLOWED TOO_MANY_STORES
429RATE_LIMITED CONCURRENCY_LIMITED CAPACITY_EXCEEDED COMPANY_WORK_LIMITED HEAVY_DAILY_LIMIT_REACHED
500INTERNAL_ERROR
503SERVICE_UNAVAILABLE
504OPERATION_TIMEOUT
Request
POST/api/public/v1/webhooks/endpoints/{endpointId}/rotate-secret
curl -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
  }'
Response 200
{
  "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"
  }
}
POST/api/public/v1/webhooks/endpoints/{endpointId}/test
send_webhook_test
webhooks:manageweight: light

Queues 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 · uuidrequired
    The endpoint, as id of an endpoint names it.
    pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$example 0b8f2c4e-6a1d-4c3b-9e7f-5a2d1c0b9e8f

Request body application/json

Response 200 { data, meta }

The data field:

  • queuedtruerequired

Response headers

  • 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.
Possible errors 400 401 403 404 409 413 415 422 429 500 503 504
400INVALID_REQUEST MALFORMED_JSON INVALID_CURSOR CREDENTIAL_IN_QUERY
401UNAUTHENTICATED INVALID_CREDENTIAL CREDENTIAL_EXPIRED CREDENTIAL_REVOKED
403API_ACCESS_DISABLED API_CONSENT_REQUIRED PRINCIPAL_INACTIVE ROLE_PERMISSION_REQUIRED INSUFFICIENT_SCOPE DATA_CATEGORY_DISABLED APP_NOT_ALLOWED AI_PLANNING_UNAVAILABLE IP_NOT_ALLOWED FORBIDDEN
404NOT_FOUND STORE_NOT_FOUND NODE_NOT_FOUND SALES_PLAN_NOT_FOUND WEBHOOK_ENDPOINT_NOT_FOUND WEBHOOK_DELIVERY_NOT_FOUND
409VERSION_CONFLICT PLAN_RUN_IN_PROGRESS PLAN_NOT_READY WEBHOOK_ENDPOINT_LIMIT WEBHOOK_ENDPOINT_DISABLED CONFLICT
413PAYLOAD_TOO_LARGE
415UNSUPPORTED_MEDIA_TYPE
422INVALID_QUERY INVALID_PERIOD PERIOD_TOO_LONG WEBHOOK_URL_NOT_ALLOWED TOO_MANY_STORES
429RATE_LIMITED CONCURRENCY_LIMITED CAPACITY_EXCEEDED COMPANY_WORK_LIMITED HEAVY_DAILY_LIMIT_REACHED
500INTERNAL_ERROR
503SERVICE_UNAVAILABLE
504OPERATION_TIMEOUT
Request
POST/api/public/v1/webhooks/endpoints/{endpointId}/test
curl -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 '{}'
Response 200
{
  "data": {
    "queued": true
  },
  "meta": {
    "requestId": "5f0c2b9e-7c1d-4a57-9d43-2f6f5a1f0b3c",
    "generatedAt": "2026-11-12T09:30:00.000Z"
  }
}
GET/api/public/v1/webhooks/endpoints/{endpointId}/deliveries
list_webhook_deliveries
webhooks:manageweight: lightpaginated

The 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 · uuidrequired
    The endpoint, as id of an endpoint names it.
    pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$example 0b8f2c4e-6a1d-4c3b-9e7f-5a2d1c0b9e8f
  • statusarray<string>
    Keeps the deliveries in these states, as a comma list. Default: every state.
    items one of pending sending succeeded faileditems 1–4example failed
  • limitinteger
    The size of a page.
    range 1–200default 50
  • cursorstring
    page.nextCursor of 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>required
    Fields
    • idstringrequired
      The webhook-id every attempt of it carried: the receiver drops a repeat by it.
    • eventTypestringrequired
      one of schedule.week.submitted schedule.week.approved schedule.week.returned schedule.month.submitted schedule.month.approved schedule.month.returned timesheet.month.approved sales_plan.ready sales_plan.applied forecast.updated ai_credits.low webhook.test
    • createdAtstring · date-timerequired
    • statusstringrequired
      pending (waits for its next attempt), sending, succeeded (answered 2xx), failed (out of attempts, or not allowed).
      one of pending sending succeeded failed
    • attemptsintegerrequired
      range ≥ 0
    • nextAttemptAtstring · date-time | nullrequired
    • finishedAtstring · date-time | nullrequired
    • recentAttemptsarray<object>required
      The last ten attempts, newest first. The receiver's answer body is never kept.
      Fields
      • atstring · date-timerequired
      • durationMsintegerrequired
        range ≥ 0
      • httpStatusinteger | nullrequired
        The receiver's status code; null when no answer came.
      • errorstring | nullrequired
        Null 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).
        one of timeout dns blocked_address tls connection redirect http_4xx http_5xx not_allowed

Response headers

  • 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.
  • Link The address of the next page, <…>; rel="next", while the list has more.
Possible errors 400 401 403 404 429 500 503 504
400INVALID_REQUEST MALFORMED_JSON INVALID_CURSOR CREDENTIAL_IN_QUERY
401UNAUTHENTICATED INVALID_CREDENTIAL CREDENTIAL_EXPIRED CREDENTIAL_REVOKED
403API_ACCESS_DISABLED API_CONSENT_REQUIRED PRINCIPAL_INACTIVE ROLE_PERMISSION_REQUIRED INSUFFICIENT_SCOPE DATA_CATEGORY_DISABLED APP_NOT_ALLOWED AI_PLANNING_UNAVAILABLE IP_NOT_ALLOWED FORBIDDEN
404NOT_FOUND STORE_NOT_FOUND NODE_NOT_FOUND SALES_PLAN_NOT_FOUND WEBHOOK_ENDPOINT_NOT_FOUND WEBHOOK_DELIVERY_NOT_FOUND
429RATE_LIMITED CONCURRENCY_LIMITED CAPACITY_EXCEEDED COMPANY_WORK_LIMITED HEAVY_DAILY_LIMIT_REACHED
500INTERNAL_ERROR
503SERVICE_UNAVAILABLE
504OPERATION_TIMEOUT
Request
GET/api/public/v1/webhooks/endpoints/{endpointId}/deliveries
curl "https://api.proschedule.com/api/public/v1/webhooks/endpoints/{endpointId}/deliveries?status=failed" \
  -H "Authorization: Bearer $PROSCHEDULE_API_KEY"
Response 200
{
  "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
  }
}
POST/api/public/v1/webhooks/deliveries/{deliveryId}/retry
retry_webhook_delivery
webhooks:manageweight: light

Tries 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 · regexrequired
    The delivery, by the webhook-id its attempts carried (msg_…).
    pattern ^msg_[0-9a-f]{32}$example msg_5b0f6a3e2d1c4f8e9a7b1c2d3e4f5a6b

Request body application/json

Response 200 { data, meta }

The data field:

  • requeuedbooleanrequired
    False while an attempt of it is in flight this moment: it goes on by itself.

Response headers

  • 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.
Possible errors 400 401 403 404 409 413 415 422 429 500 503 504
400INVALID_REQUEST MALFORMED_JSON INVALID_CURSOR CREDENTIAL_IN_QUERY
401UNAUTHENTICATED INVALID_CREDENTIAL CREDENTIAL_EXPIRED CREDENTIAL_REVOKED
403API_ACCESS_DISABLED API_CONSENT_REQUIRED PRINCIPAL_INACTIVE ROLE_PERMISSION_REQUIRED INSUFFICIENT_SCOPE DATA_CATEGORY_DISABLED APP_NOT_ALLOWED AI_PLANNING_UNAVAILABLE IP_NOT_ALLOWED FORBIDDEN
404NOT_FOUND STORE_NOT_FOUND NODE_NOT_FOUND SALES_PLAN_NOT_FOUND WEBHOOK_ENDPOINT_NOT_FOUND WEBHOOK_DELIVERY_NOT_FOUND
409VERSION_CONFLICT PLAN_RUN_IN_PROGRESS PLAN_NOT_READY WEBHOOK_ENDPOINT_LIMIT WEBHOOK_ENDPOINT_DISABLED CONFLICT
413PAYLOAD_TOO_LARGE
415UNSUPPORTED_MEDIA_TYPE
422INVALID_QUERY INVALID_PERIOD PERIOD_TOO_LONG WEBHOOK_URL_NOT_ALLOWED TOO_MANY_STORES
429RATE_LIMITED CONCURRENCY_LIMITED CAPACITY_EXCEEDED COMPANY_WORK_LIMITED HEAVY_DAILY_LIMIT_REACHED
500INTERNAL_ERROR
503SERVICE_UNAVAILABLE
504OPERATION_TIMEOUT
Request
POST/api/public/v1/webhooks/deliveries/{deliveryId}/retry
curl -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 '{}'
Response 200
{
  "data": {
    "requeued": true
  },
  "meta": {
    "requestId": "5f0c2b9e-7c1d-4a57-9d43-2f6f5a1f0b3c",
    "generatedAt": "2026-11-12T09:30:00.000Z"
  }
}
POST/api/public/v1/webhooks/endpoints/{endpointId}/retry
retry_webhook_deliveries
webhooks:manageweight: light

After 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 · uuidrequired
    The endpoint, as id of an endpoint names it.
    pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$example 0b8f2c4e-6a1d-4c3b-9e7f-5a2d1c0b9e8f

Request body application/json

  • sincestring · date-timerequired
    Every 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
    range ≥ 0

Response headers

  • 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.
Possible errors 400 401 403 404 409 413 415 422 429 500 503 504
400INVALID_REQUEST MALFORMED_JSON INVALID_CURSOR CREDENTIAL_IN_QUERY
401UNAUTHENTICATED INVALID_CREDENTIAL CREDENTIAL_EXPIRED CREDENTIAL_REVOKED
403API_ACCESS_DISABLED API_CONSENT_REQUIRED PRINCIPAL_INACTIVE ROLE_PERMISSION_REQUIRED INSUFFICIENT_SCOPE DATA_CATEGORY_DISABLED APP_NOT_ALLOWED AI_PLANNING_UNAVAILABLE IP_NOT_ALLOWED FORBIDDEN
404NOT_FOUND STORE_NOT_FOUND NODE_NOT_FOUND SALES_PLAN_NOT_FOUND WEBHOOK_ENDPOINT_NOT_FOUND WEBHOOK_DELIVERY_NOT_FOUND
409VERSION_CONFLICT PLAN_RUN_IN_PROGRESS PLAN_NOT_READY WEBHOOK_ENDPOINT_LIMIT WEBHOOK_ENDPOINT_DISABLED CONFLICT
413PAYLOAD_TOO_LARGE
415UNSUPPORTED_MEDIA_TYPE
422INVALID_QUERY INVALID_PERIOD PERIOD_TOO_LONG WEBHOOK_URL_NOT_ALLOWED TOO_MANY_STORES
429RATE_LIMITED CONCURRENCY_LIMITED CAPACITY_EXCEEDED COMPANY_WORK_LIMITED HEAVY_DAILY_LIMIT_REACHED
500INTERNAL_ERROR
503SERVICE_UNAVAILABLE
504OPERATION_TIMEOUT
Request
POST/api/public/v1/webhooks/endpoints/{endpointId}/retry
curl -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"
  }'
Response 200
{
  "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.

MeasureMeaningFormatDimensions
Sales
sales.revenue
Revenue
Sales revenue (the sum of sales) from the sales history. 'Выручка', 'продажи', 'оборот'.money
additive: yes
time.day time.week time.month time.quarter store node weekday hour order_channel store_concept
sales.transactions
Transactions
Number of transactions (checks, orders). 'Чеки', 'транзакции', 'заказы', 'трафик'.count
additive: yes
time.day time.week time.month time.quarter store node weekday hour order_channel store_concept
sales.items
Items sold
Number of menu items sold. 'Блюда', 'позиции в чеках'.count
additive: yes
time.day time.week time.month time.quarter store node weekday hour order_channel store_concept
sales.avg_check
Average check
Revenue / transactions. 'Средний чек'.money
additive: no
time.day time.week time.month time.quarter store node weekday hour order_channel store_concept
sales.items_per_check
Items per check
Menu items sold / transactions. 'Наполненность чека'.decimal
additive: no
time.day time.week time.month time.quarter store node weekday hour order_channel store_concept
Forecast
forecast.revenue
Forecast revenue
The revenue forecast stored per store and day (the plan the schedules are built on). Compare with sales.revenue for 'план-факт' / 'прогноз против факта'.money
additive: yes
time.day time.week time.month time.quarter store node weekday store_concept
forecast.transactions
Forecast transactions
The forecast number of transactions per store and day.count
additive: yes
time.day time.week time.month time.quarter store node weekday store_concept
Schedule
schedule.hours
Scheduled hours
Hours of shifts in the crew schedules (every schedule status; gross, breaks not deducted). 'Плановые часы', 'часы по графику', 'сколько запланировано'.hours
additive: yes
time.day time.week time.month time.quarter store node weekday store_concept
schedule.shifts
Scheduled shifts
Number of scheduled shifts (an employee's shifts on one day count once).count
additive: yes
time.day time.week time.month time.quarter store node weekday store_concept
schedule.employees
Scheduled employees
Distinct employees with at least one scheduled shift.count
additive: no
time.day time.week time.month time.quarter store node weekday store_concept
schedule.training_hours
Training hours
Scheduled hours of trainee (training) shifts.hours
additive: yes
time.day time.week time.month time.quarter store node weekday store_concept
Actuals
fact.hours
Worked hours
Hours actually worked (approved time records; a shift's latest record counts). 'Факт', 'отработано', 'табель'.hours
additive: yes
time.day time.week time.month time.quarter store node weekday store_concept
fact.shifts
Worked shifts
Number of worked (approved) shifts.count
additive: yes
time.day time.week time.month time.quarter store node weekday store_concept
fact.employees
Employees who worked
Distinct employees with at least one worked shift.count
additive: no
time.day time.week time.month time.quarter store node weekday store_concept
Productivity
productivity.spmh
SPMH
Sales per scheduled labour hour: revenue / scheduled hours of the same stores and days. 'SPMH', 'выручка на час'.money
additive: no
time.day time.week time.month time.quarter store node weekday store_concept
productivity.tplh
TPLH
Transactions per scheduled labour hour: transactions / scheduled hours. 'TPLH', 'чеков на час'.decimal
additive: no
time.day time.week time.month time.quarter store node weekday store_concept
productivity.fact_spmh
SPMH (worked)
Revenue / worked (approved) hours.money
additive: no
time.day time.week time.month time.quarter store node weekday store_concept
productivity.hours_variance
Hours: worked − scheduled
Worked hours minus scheduled hours (positive = more worked than planned). 'Переработки', 'отклонение от графика'.hours
additive: yes
time.day time.week time.month time.quarter store node weekday store_concept
Team
team.headcount
Headcount
Employees on the roster as of the period's last day (hired by then, not dismissed). No time breakdown.count
additive: yes
store node store_concept
team.hires
Hires
Employees whose hire date falls in the period. Time grain: month or quarter.count
additive: yes
time.month time.quarter store node store_concept
team.leavers
Leavers
Employees dismissed (removed from the roster) in the period. Time grain: month or quarter. 'Текучесть'.count
additive: yes
time.month time.quarter store node store_concept
DimensionKindMeaning
time.day
Day
timeCalendar day. The id of a cell is the date, YYYY-MM-DD.
time.week
Week
timeISO 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.month
Month
timeCalendar month. The id of a cell is YYYY-MM.
time.quarter
Quarter
timeCalendar quarter. The id of a cell is YYYY-Qn.
store
Store
categoryThe store the figure belongs to. The id of a cell is the store's id, as in GET /stores.
node
Structure node
categoryA 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.
weekday
Weekday
categoryDay of the week. The id of a cell is monday … sunday.
hour
Hour
categoryHour 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_channel
Sales channel
categoryThe sales channel (dine-in, takeaway, delivery, …) as the company names them. Sales measures only.
store_concept
Store concept
categoryThe store's concept or format.
FilterSearch typeMeaning
nodeIds
Structure nodes
nodeIds of structure nodes (GET /structure/nodes, or the directory search with types=node): the stores at and below each of them.
storeIds
Stores
storeIds of stores (GET /stores, or the directory search with types=store).
storeConceptIds
Store concepts
store_conceptIds of store concepts (the directory search with types=store_concept): the stores of these concepts.
orderChannelIds
Sales channels
order_channelIds of sales channels (the directory search with types=order_channel). Sales measures only.
last_7d last_30d last_90d last_3_months last_12_months this_month prev_month this_year

Comparisons (compareWith): previous_period same_period_last_year

Measures in one query, at most6
Dimensions, at most3
Rows by default50
Rows, at most200
Days in a custom period, at most1830
Days in a breakdown by position or role, at most92
Days in a breakdown by hour, at most92
Values in one filter, at most50