Операции REST API — документация PayBot
К содержимому

Документация / Справочник (создан из кода)

На этой странице
  1. Группы
  2. Access
  3. agent
  4. AI connections
  5. API keys
  6. Approvals
  7. audit
  8. auth
  9. Billing
  10. Bitrix24
  11. builder
  12. Catalog
  13. Client errors
  14. contacts
  15. Course students
  16. Courses
  17. Dashboard
  18. Devices
  19. Domains
  20. Generator
  21. invites
  22. Kaspi accounts
  23. legal-profile
  24. Live pages
  25. MCP
  26. members
  27. merchants
  28. Notifications
  29. Orders
  30. Own site
  31. Payments
  32. Plans
  33. Promo codes
  34. Public pages
  35. Rules
  36. Site
  37. Statistics
  38. Subscriptions
  39. Telegram
  40. Templates
  41. Uploads
  42. Webhooks

Операции REST API

Всего операций: 294, групп: 41. Полные схемы запросов и ответов — в openapi.yaml.

КолонкаЗначение
ПраваКакие права ключа нужны: read, write, money. Пусто — права не нужны.
Idempotency-Key«обязателен» — без него 400 idempotency_key_required; «можно» — повтор безопасен и так; «нельзя» — ответ содержит одноразовый секрет, заголовок отклоняется.
Авторизация«ключ API или кабинет» — подходит ключ pb_...; «только кабинет» — сессия человека, ключ не примут; «без авторизации» — публичный.

Группы#

Access#

МетодПутьoperationIdПраваIdempotency-KeyАвторизацияЧто делает
GET/v1/access/grantsaccess-grant-listread—ключ API или кабинетList access grants, newest first
POST/v1/access/grants/{id}/revokeaccess-grant-revokewriteможноключ API или кабинетRevoke a grant by hand: remove the subscriber from the channel
POST/v1/access/products/{id}/compaccess-product-compwriteможноключ API или кабинетGive a known subscriber free access for N days, or extend theirs
POST/v1/access/products/{id}/remove-subscriberaccess-product-remove-subscriberwriteможноключ API или кабинетRemove a subscriber: end the subscription and take them out of the channel
POST/v1/access/products/{id}/start-link/rotateaccess-product-start-link-rotatewriteнельзяключ API или кабинетReplace the public start link of a deployment for one mode
POST/v1/access/products/{id}/stop-salesaccess-product-stop-saleswriteможноключ API или кабинетStop selling the plan of a channel
GET/v1/access/products/{id}/subscribersaccess-product-subscribersread—ключ API или кабинетList the subscribers of a channel's plan, newest first
POST/v1/access/start-linksaccess-start-link-createwriteнельзяключ API или кабинетCreate a personal start link: works once, for a link sent to one person

agent#

МетодПутьoperationIdПраваIdempotency-KeyАвторизацияЧто делает
POST/v1/agent/actions/{id}/rejectagent-action-rejectwriteможноключ API или кабинетReject a proposed action
GET/v1/agent/eventsagent-eventsread—ключ API или кабинетStream the agent's events (server-sent events)
POST/v1/agent/messagesagent-message-sendwriteможноключ API или кабинетSend the agent a message
POST/v1/agent/runs/{id}/cancelagent-run-cancelwriteможноключ API или кабинетStop a running run
POST/v1/agent/runs/{id}/continueagent-run-continuewriteможноключ API или кабинетContinue an interrupted run
GET/v1/agent/threadagent-thread-getread—ключ API или кабинетThe business's agent conversation

AI connections#

МетодПутьoperationIdПраваIdempotency-KeyАвторизацияЧто делает
POST/v1/oauth/authorization/decisionoauth-authorization-decision—нельзятолько кабинетAllow or refuse an AI application
POST/v1/oauth/authorization/previewoauth-authorization-preview—нельзятолько кабинетWhat an AI application asks for, and the businesses that can be connected
GET/v1/oauth/grantsoauth-list-grantsread—ключ API или кабинетConnected AI applications
DELETE/v1/oauth/grants/{id}oauth-disconnect-grantwriteможноключ API или кабинетDisconnect an AI application

API keys#

МетодПутьoperationIdПраваIdempotency-KeyАвторизацияЧто делает
GET/v1/api-keyslist-api-keysread—ключ API или кабинетList API keys
POST/v1/api-keyscreate-api-keywriteнельзяключ API или кабинетCreate an API key
DELETE/v1/api-keys/{id}revoke-api-keywriteможноключ API или кабинетRevoke an API key
POST/v1/api-keys/{id}/rotaterotate-api-keywriteнельзяключ API или кабинетRotate an API key

Approvals#

МетодПутьoperationIdПраваIdempotency-KeyАвторизацияЧто делает
GET/v1/approvalsapprovals-listread—ключ API или кабинетList approvals, newest first
GET/v1/approvals/settingsapproval-settings-getmoney—ключ API или кабинетThe merchant's refund limits
PUT/v1/approvals/settingsapproval-settings-putmoneyможноключ API или кабинетChange the merchant's refund limits
GET/v1/approvals/{id}approval-getread—ключ API или кабинетGet an approval
POST/v1/approvals/{id}/approveapproval-approvemoneyможноключ API или кабинетApprove and execute
POST/v1/approvals/{id}/rejectapproval-rejectmoneyможноключ API или кабинетReject

audit#

МетодПутьoperationIdПраваIdempotency-KeyАвторизацияЧто делает
GET/v1/audit-loglist-audit-logread—ключ API или кабинетThe selected merchant's audit log, newest first

auth#

МетодПутьoperationIdПраваIdempotency-KeyАвторизацияЧто делает
GET/v1/auth/csrfauth-csrf——только кабинетIssue a fresh CSRF token for the current session
POST/v1/auth/handoffauth-handoff-start—можнотолько кабинетOpen the web cabinet without signing in again
POST/v1/auth/handoff/exchangeauth-handoff-exchange—можнотолько кабинетTrade a hand-off token for a cabinet session
POST/v1/auth/link/phone/requestauth-link-phone-request—можнотолько кабинетSend a code to a phone to link it to the signed-in account
POST/v1/auth/link/phone/verifyauth-link-phone-verify—можнотолько кабинетLink a phone to the signed-in account with its code
POST/v1/auth/link/telegram/callbackauth-link-telegram-callback—можнотолько кабинетFinish linking Telegram with the code and state from the redirect
POST/v1/auth/link/telegram/startauth-link-telegram-start—можнотолько кабинетStart linking a Telegram account to the signed-in account
POST/v1/auth/link/whatsapp/pollauth-link-whatsapp-poll—можнотолько кабинетPoll a WhatsApp phone link
POST/v1/auth/link/whatsapp/startauth-link-whatsapp-start—можнотолько кабинетStart linking a phone to the signed-in account by WhatsApp
POST/v1/auth/logoutauth-logout—можнотолько кабинетRevoke the current session
POST/v1/auth/logout-allauth-logout-all—можнотолько кабинетSign out everywhere
POST/v1/auth/otp/requestauth-otp-request—можнобез авторизацииSend a sign-in code to a phone
POST/v1/auth/otp/verifyauth-otp-verify—нельзябез авторизацииSign in with a phone and code
POST/v1/auth/reauth/requestauth-reauth-request—можнотолько кабинетSend a confirmation code to the signed-in user's own phone
POST/v1/auth/reauth/telegramauth-reauth-telegram—можнотолько кабинетConfirm identity with a fresh Telegram Login payload
POST/v1/auth/reauth/telegram/oidc/callbackauth-reauth-telegram-oidc-callback—можнотолько кабинетFinish confirming identity with the code and state from the Telegram redirect
POST/v1/auth/reauth/telegram/oidc/startauth-reauth-telegram-oidc-start—можнотолько кабинетStart confirming identity with Log In With Telegram (OpenID Connect)
POST/v1/auth/reauth/verifyauth-reauth-verify—можнотолько кабинетConfirm identity with the code; unlocks dangerous actions for 5 minutes
GET/v1/auth/security-eventsauth-security-events——только кабинетThe account's recent sign-in events
GET/v1/auth/sessionsauth-sessions-list——только кабинетList the caller's signed-in devices and browsers
POST/v1/auth/sessions/revoke-othersauth-sessions-revoke-others—можнотолько кабинетSign every other session out
DELETE/v1/auth/sessions/{id}auth-sessions-revoke—можнотолько кабинетSign one session out
POST/v1/auth/telegramauth-telegram—нельзябез авторизацииSign in with the legacy Telegram Login widget
POST/v1/auth/telegram/oidc/callbackauth-telegram-oidc-callback—нельзябез авторизацииFinish a Telegram sign-in with the code and state from the redirect
POST/v1/auth/telegram/oidc/startauth-telegram-oidc-start—нельзябез авторизацииStart a Telegram sign-in (Log In With Telegram, OpenID Connect)
POST/v1/auth/whatsapp/pollauth-whatsapp-poll—нельзябез авторизацииPoll a WhatsApp sign-in; signs in once the button is pressed
POST/v1/auth/whatsapp/startauth-whatsapp-start—нельзябез авторизацииStart a WhatsApp sign-in: send a confirmation to the phone
GET/v1/meget-me——только кабинетThe signed-in user and their merchants
DELETE/v1/meme-delete—обязателентолько кабинетDelete the caller's account
GET/v1/me/deletionme-deletion-preview——только кабинетWhat deleting the account would do
GET/v1/me/loginsme-logins——только кабинетThe caller's sign-in history
POST/v1/me/logins/{id}/not-meme-logins-not-me—обязателентолько кабинетThis sign-in was not me: close its session

Billing#

МетодПутьoperationIdПраваIdempotency-KeyАвторизацияЧто делает
GET/v1/billingbilling-summaryread—ключ API или кабинетThe merchant's PayBot plan and usage against its limits
POST/v1/billing/checkoutbilling-checkoutmoneyобязателенключ API или кабинетBuy a PayBot plan
GET/v1/billing/ordersbilling-ordersread—ключ API или кабинетThe merchant's plan orders, newest first (at most 100)
GET/v1/billing/orders/{id}billing-order-getread—ключ API или кабинетOne plan order with its payment
GET/v1/billing/plansbilling-plansread—ключ API или кабинетPayBot plans and their limits

Bitrix24#

МетодПутьoperationIdПраваIdempotency-KeyАвторизацияЧто делает
GET/v1/integrations/bitrix24bitrix24-statusread—ключ API или кабинетThe Bitrix24 connection and the state of the sync
POST/v1/integrations/bitrix24bitrix24-connectwriteнельзяключ API или кабинетConnect a Bitrix24 portal by its inbound webhook
DELETE/v1/integrations/bitrix24bitrix24-disconnectwriteможноключ API или кабинетDisconnect Bitrix24: forget the webhook, the links and the sync log
POST/v1/integrations/bitrix24/inbound-tokenbitrix24-inbound-tokenwriteнельзяключ API или кабинетIssue a token for the reverse endpoint (a deal changed stage in Bitrix24)
GET/v1/integrations/bitrix24/itemsbitrix24-itemsread—ключ API или кабинетThe last 100 sync items, newest first
POST/v1/integrations/bitrix24/items/{id}/retrybitrix24-item-retrywriteобязателенключ API или кабинетPush a failed or dead item again
GET/v1/integrations/bitrix24/optionsbitrix24-optionsread—ключ API или кабинетThe portal's deal pipelines with their stages, and its sources (read live)
POST/v1/integrations/bitrix24/retry-failedbitrix24-retry-failedwriteобязателенключ API или кабинетPush every failed or dead item again
PATCH/v1/integrations/bitrix24/settingsbitrix24-settingswriteможноключ API или кабинетChange what is synced and where
POST/v1/integrations/bitrix24/testbitrix24-testwriteможноключ API или кабинетCheck the stored connection (who the webhook is, whether it has the CRM right)

builder#

МетодПутьoperationIdПраваIdempotency-KeyАвторизацияЧто делает
GET/v1/builder/projectbuilder-project-getread—ключ API или кабинетThe business's site project
GET/v1/builder/project/eventsbuilder-eventsread—ключ API или кабинетStream the project's events (server-sent events)
POST/v1/builder/project/messagesbuilder-message-sendwriteможноключ API или кабинетAsk the builder for a change
POST/v1/builder/project/preview-tokenbuilder-preview-tokenreadможноключ API или кабинетThe URL of the project's live preview
POST/v1/builder/project/publishbuilder-project-publishwriteможноключ API или кабинетPublish the current version
PATCH/v1/builder/project/settingsbuilder-project-settingswriteможноключ API или кабинетChange the site's settings
GET/v1/builder/project/versionsbuilder-versions-listread—ключ API или кабинетThe project's versions, newest first (at most 50)
POST/v1/builder/project/versions/{id}/restorebuilder-version-restorewriteможноключ API или кабинетGo back to an earlier version
POST/v1/builder/projectsbuilder-project-createwriteможноключ API или кабинетCreate the business's site project
PUT/v1/builder/subdomainbuilder-set-subdomain—можнотолько кабинетRename the business subdomain

Catalog#

МетодПутьoperationIdПраваIdempotency-KeyАвторизацияЧто делает
GET/v1/catalog/delivery-optionscatalog-delivery-listread—ключ API или кабинетList delivery options
PUT/v1/catalog/delivery-options/{code}catalog-delivery-putwriteможноключ API или кабинетCreate or replace a delivery option
DELETE/v1/catalog/delivery-options/{code}catalog-delivery-archivewriteможноключ API или кабинетArchive a delivery option
POST/v1/catalog/importcatalog-importwriteможноключ API или кабинетImport a catalogue CSV (or validate it with dry_run)
GET/v1/catalog/productscatalog-product-listread—ключ API или кабинетList products, newest first
POST/v1/catalog/productscatalog-product-createwriteобязателенключ API или кабинетCreate a product with its variants
GET/v1/catalog/products/{id}catalog-product-getread—ключ API или кабинетGet a product
PATCH/v1/catalog/products/{id}catalog-product-updatewriteможноключ API или кабинетChange a product's title or description
DELETE/v1/catalog/products/{id}catalog-product-archivewriteможноключ API или кабинетArchive a product (take it off sale); orders keep their snapshot
POST/v1/catalog/products/{id}/variantscatalog-variant-createwriteобязателенключ API или кабинетAdd a variant to a product
PATCH/v1/catalog/variants/{id}catalog-variant-updatewriteможноключ API или кабинетChange a variant's title or price
DELETE/v1/catalog/variants/{id}catalog-variant-archivewriteможноключ API или кабинетArchive a variant (take it off sale)
POST/v1/catalog/variants/{id}/stockcatalog-variant-stock-adjustwriteобязателенключ API или кабинетAdjust a variant's stock by a delta

Client errors#

МетодПутьoperationIdПраваIdempotency-KeyАвторизацияЧто делает
POST/v1/client-errorsclient-errors-report—нельзябез авторизацииReport a crash of the app

contacts#

МетодПутьoperationIdПраваIdempotency-KeyАвторизацияЧто делает
GET/v1/contactscontact-listread—ключ API или кабинетThe business's clients
GET/v1/contacts/{id}contact-getread—ключ API или кабинетOne client with their leads and consents
PATCH/v1/contacts/{id}contact-patchwriteобязателенключ API или кабинетEdit a client's name, notes and tags
POST/v1/contacts/{id}/erasecontact-erasewriteобязателенключ API или кабинетErase a client's personal data on their request
POST/v1/contacts/{id}/mergecontact-mergewriteобязателенключ API или кабинетMerge a duplicate client into this one

Course students#

МетодПутьoperationIdПраваIdempotency-KeyАвторизацияЧто делает
POST/v1/public/courses/accesscourse-access-claim—можнобез авторизацииClaim the student key a paid payment bought
POST/v1/public/courses/learn/exchangecourse-learn-exchange—можнобез авторизацииTrade the one-time code of the bot's «Учиться» button for the student key
POST/v1/public/courses/login/startcourse-login-start—обязателенбез авторизацииSend a sign-in code to the phone a course was bought with
POST/v1/public/courses/login/verifycourse-login-verify—обязателенбез авторизацииTrade a correct sign-in code for the student's keys
GET/v1/public/courses/mecourse-student-outline——без авторизацииThe student's course: modules and lessons with their drip state and progress
GET/v1/public/courses/me/lessons/{lesson_id}course-student-lesson——без авторизацииAn open lesson's content
GET/v1/public/courses/me/lessons/{lesson_id}/attachments/{attachment_id}course-student-attachment——без авторизацииA short-lived download of a lesson attachment
POST/v1/public/courses/me/lessons/{lesson_id}/completecourse-student-complete—можнобез авторизацииMark an open lesson done
PUT/v1/public/courses/me/lessons/{lesson_id}/positioncourse-student-position—обязателенбез авторизацииRemember where the student stopped in a lesson's video
POST/v1/public/courses/me/phone/confirmcourse-student-phone-confirm—обязателенбез авторизацииLink the phone to this course with the code it received
POST/v1/public/courses/me/phone/startcourse-student-phone-start—обязателенбез авторизацииSend a code to a phone the student wants to sign in with later
POST/v1/public/courses/me/telegram-linkcourse-student-telegram-link—можнобез авторизацииA one-time Telegram link that brings the student's course into the business's bot
GET/v1/public/courses/pages/{slug}/previewcourse-page-preview——без авторизацииThe free preview lessons of a published course page

Courses#

МетодПутьoperationIdПраваIdempotency-KeyАвторизацияЧто делает
GET/v1/coursescourse-listread—ключ API или кабинетList courses, newest first
POST/v1/coursescourse-createwriteобязателенключ API или кабинетCreate a draft course
GET/v1/courses/{course_id}course-getread—ключ API или кабинетGet a course with its modules and lessons
PATCH/v1/courses/{course_id}course-updatewriteможноключ API или кабинетChange a course's title or description
DELETE/v1/courses/{course_id}course-deletewriteможноключ API или кабинетDelete a course that has no page and no students
GET/v1/courses/{course_id}/enrollmentscourse-enrollment-listread—ключ API или кабинетList a course's enrollments, newest first
POST/v1/courses/{course_id}/enrollments/{enrollment_id}/extendcourse-enrollment-extendwriteобязателенключ API или кабинетExtend a student's access by a number of days
POST/v1/courses/{course_id}/enrollments/{enrollment_id}/reset-phonecourse-enrollment-reset-phonewriteобязателенключ API или кабинетClear a student's confirmed phone and end their sign-ins
POST/v1/courses/{course_id}/enrollments/{enrollment_id}/revokecourse-enrollment-revokewriteможноключ API или кабинетRevoke a student's access; their key stops working at once
POST/v1/courses/{course_id}/enrollments/{enrollment_id}/tokencourse-enrollment-tokenwriteнельзяключ API или кабинетIssue a new student key for an enrollment (the old one stops working)
POST/v1/courses/{course_id}/lessonscourse-lesson-createwriteобязателенключ API или кабинетAppend a lesson to a module
PUT/v1/courses/{course_id}/lessons/{lesson_id}course-lesson-replacewriteможноключ API или кабинетReplace a lesson's title, content and drip
DELETE/v1/courses/{course_id}/lessons/{lesson_id}course-lesson-deletewriteможноключ API или кабинетDelete a lesson
POST/v1/courses/{course_id}/lessons/{lesson_id}/attachmentscourse-lesson-attachment-uploadwriteнельзяключ API или кабинетGet a presigned upload URL for a file attached to a lesson
DELETE/v1/courses/{course_id}/lessons/{lesson_id}/attachments/{attachment_id}course-lesson-attachment-deletewriteможноключ API или кабинетRemove an attachment
POST/v1/courses/{course_id}/lessons/{lesson_id}/attachments/{attachment_id}/confirmcourse-lesson-attachment-confirmwriteобязателенключ API или кабинетConfirm an attachment's upload
POST/v1/courses/{course_id}/lessons/{lesson_id}/uploadcourse-lesson-uploadwriteнельзяключ API или кабинетGet a presigned upload URL for a lesson's file; the lesson becomes a file lesson
POST/v1/courses/{course_id}/lessons/{lesson_id}/upload/confirmcourse-lesson-upload-confirmwriteобязателенключ API или кабинетConfirm the lesson's uploaded file; the lesson switches to it now
PUT/v1/courses/{course_id}/module-ordercourse-module-orderwriteможноключ API или кабинетSet the order of a course's modules
POST/v1/courses/{course_id}/modulescourse-module-createwriteобязателенключ API или кабинетAppend a module to a course
PATCH/v1/courses/{course_id}/modules/{module_id}course-module-updatewriteможноключ API или кабинетRename a module
DELETE/v1/courses/{course_id}/modules/{module_id}course-module-deletewriteможноключ API или кабинетDelete a module and its lessons
PUT/v1/courses/{course_id}/modules/{module_id}/lesson-ordercourse-lesson-orderwriteможноключ API или кабинетSet the order of a module's lessons
POST/v1/courses/{course_id}/publishcourse-publishwriteможноключ API или кабинетPublish a course: a course page may sell it
POST/v1/courses/{course_id}/unpublishcourse-unpublishwriteможноключ API или кабинетStop selling a course (students keep their access)

Dashboard#

МетодПутьoperationIdПраваIdempotency-KeyАвторизацияЧто делает
GET/v1/dashboarddashboardread—ключ API или кабинетRevenue, payments, invoice conversion and subscribers over a range of days
GET/v1/exports/{entity}exportread—ключ API или кабинетDownload a list as an Excel file (or CSV)
GET/v1/stats/overviewstats-overviewread—ключ API или кабинетRevenue, payments, average check, new and repeat customers over a period
GET/v1/stats/sourcesstats-sourcesread—ключ API или кабинетWhere visitors, leads and money come from: by source and campaign

Devices#

МетодПутьoperationIdПраваIdempotency-KeyАвторизацияЧто делает
PUT/v1/devicesdevices-putwriteможноключ API или кабинетRegister a device push token
DELETE/v1/devices/{id}devices-deletewriteможноключ API или кабинетRevoke a device push token

Domains#

МетодПутьoperationIdПраваIdempotency-KeyАвторизацияЧто делает
GET/v1/domainsdomain-listread—ключ API или кабинетList the business's own domains
POST/v1/domainsdomain-createwriteобязателенключ API или кабинетConnect a domain
GET/v1/domains/targetsdomain-targetsread—ключ API или кабинетWhat a domain can open: the site and the public pages
GET/v1/domains/{id}domain-getread—ключ API или кабинетOne domain
PATCH/v1/domains/{id}domain-updatewriteобязателенключ API или кабинетChange what a domain opens, or its www redirect
DELETE/v1/domains/{id}domain-deletewriteможноключ API или кабинетRemove a domain
POST/v1/domains/{id}/checkdomain-checkwriteобязателенключ API или кабинетCheck the DNS now

Generator#

МетодПутьoperationIdПраваIdempotency-KeyАвторизацияЧто делает
GET/v1/generator/creditsgenerator-creditsread—ключ API или кабинетGeneration credits: balance and latest usage
POST/v1/generator/imagesgenerator-images-createwriteможноключ API или кабинетGenerate pictures for a page or a product
POST/v1/generator/importsgenerator-import-createwriteможноключ API или кабинетPropose catalogue items from a messy price list
GET/v1/generator/imports/{id}generator-import-getread—ключ API или кабинетRead an import proposal
POST/v1/generator/imports/{id}/applygenerator-import-applywriteможноключ API или кабинетImport the picked items of an import proposal
GET/v1/generator/requests/{id}generator-request-getread—ключ API или кабинетProgress of a generator request

invites#

МетодПутьoperationIdПраваIdempotency-KeyАвторизацияЧто делает
GET/v1/inviteslist-invitesread—ключ API или кабинетThe selected merchant's invites
POST/v1/invitescreate-invitewriteнельзяключ API или кабинетInvite a person by phone or email
DELETE/v1/invites/{id}revoke-invitewriteможноключ API или кабинетRevoke an invite
POST/v1/invites/{token}/acceptaccept-invite—можнотолько кабинетAccept an invite and join its merchant

Kaspi accounts#

МетодПутьoperationIdПраваIdempotency-KeyАвторизацияЧто делает
GET/v1/kaspi/accountskaspi-accounts-listread—ключ API или кабинетList connected Kaspi accounts
POST/v1/kaspi/accounts/loginkaspi-account-login-startwriteобязателенключ API или кабинетStart connecting a Kaspi cashier account (sends an SMS code)
GET/v1/kaspi/accounts/{id}kaspi-account-getread—ключ API или кабинетGet a Kaspi account
DELETE/v1/kaspi/accounts/{id}kaspi-account-deletewriteобязателенключ API или кабинетDisconnect a Kaspi account and erase its keys
POST/v1/kaspi/accounts/{id}/checkkaspi-account-checkwriteобязателенключ API или кабинетCheck the account's Kaspi session now
POST/v1/kaspi/accounts/{id}/defaultkaspi-account-set-defaultwriteобязателенключ API или кабинетUse this account for new payments
POST/v1/kaspi/accounts/{id}/disablekaspi-account-disablewriteобязателенключ API или кабинетStop using this account
POST/v1/kaspi/accounts/{id}/verifykaspi-account-login-verifywriteобязателенключ API или кабинетFinish connecting a Kaspi account with the SMS code
МетодПутьoperationIdПраваIdempotency-KeyАвторизацияЧто делает
GET/v1/merchants/{id}/legal-profilelegal-profile-getread—ключ API или кабинетThe seller's legal profile
PUT/v1/merchants/{id}/legal-profilelegal-profile-putwriteможноключ API или кабинетCreate or replace the seller's legal profile
POST/v1/merchants/{id}/legal-profile/documentslegal-profile-documentsreadобязателенключ API или кабинетDraft the offer and the privacy policy from the profile
GET/v1/public/{slug}/termspublic-terms-get——без авторизацииThe seller's details and offer for buyers

Live pages#

МетодПутьoperationIdПраваIdempotency-KeyАвторизацияЧто делает
GET/v1/live/pages/{page_id}live-page-getread—ключ API или кабинетA live page with its lots
PUT/v1/live/pages/{page_id}/currentlive-current-setwriteможноключ API или кабинетPut a lot on air
POST/v1/live/pages/{page_id}/lotslive-lot-createwriteобязателенключ API или кабинетAdd a lot to a live page
PATCH/v1/live/pages/{page_id}/lots/{lot_id}live-lot-updatewriteможноключ API или кабинетChange an open lot
DELETE/v1/live/pages/{page_id}/lots/{lot_id}live-lot-deletewriteможноключ API или кабинетDelete a lot nobody checked out
POST/v1/live/pages/{page_id}/lots/{lot_id}/closelive-lot-closewriteможноключ API или кабинетStop selling a lot

MCP#

МетодПутьoperationIdПраваIdempotency-KeyАвторизацияЧто делает
GET/v1/mcp/connectionmcp-connectionread—ключ API или кабинетHow to connect the merchant's own AI (MCP address, tool list)

members#

МетодПутьoperationIdПраваIdempotency-KeyАвторизацияЧто делает
GET/v1/memberslist-membersread—ключ API или кабинетThe people of the selected merchant
PATCH/v1/members/{user_id}change-member-rolewriteможноключ API или кабинетChange a member's role
DELETE/v1/members/{user_id}remove-memberreadможноключ API или кабинетRemove a member (or leave the merchant)

merchants#

МетодПутьoperationIdПраваIdempotency-KeyАвторизацияЧто делает
GET/v1/merchantslist-merchants——только кабинетThe caller's merchants
POST/v1/merchantscreate-merchant—обязателентолько кабинетRegister a merchant; the caller becomes its owner
GET/v1/merchants/{id}get-merchant——только кабинетA merchant the caller is a member of
PATCH/v1/merchants/{id}update-merchant—можнотолько кабинетRename a merchant, change its timezone or set its logo

Notifications#

МетодПутьoperationIdПраваIdempotency-KeyАвторизацияЧто делает
GET/v1/notifications/preferencesnotifications-preferences-getread—ключ API или кабинетGet what the caller is told about, and where
PUT/v1/notifications/preferencesnotifications-preferences-putwriteможноключ API или кабинетChange what the caller is told about, and where
POST/v1/notifications/push/testnotifications-push-testwriteобязателенключ API или кабинетSend a test push to the caller's phones
GET/v1/notifications/settingsnotifications-settings-getread—ключ API или кабинетGet notification settings
PUT/v1/notifications/settingsnotifications-settings-putwriteможноключ API или кабинетReplace notification settings
POST/v1/notifications/telegram/linknotifications-telegram-linkwriteобязателенключ API или кабинетLink Telegram for notifications

Orders#

МетодПутьoperationIdПраваIdempotency-KeyАвторизацияЧто делает
GET/v1/ordersorder-listread—ключ API или кабинетList orders, newest first
GET/v1/orders/{id}order-getread—ключ API или кабинетGet an order with its history and the buyer's phone
POST/v1/orders/{id}/transitionorder-transitionwriteможноключ API или кабинетMove an order to another status

Own site#

МетодПутьoperationIdПраваIdempotency-KeyАвторизацияЧто делает
POST/v1/site/uploadsite-uploadwriteможноключ API или кабинетUpload a static site (zip, tar or tar.gz) as the raw request body
GET/v1/site/versionssite-versionsread—ключ API или кабинетList the uploaded versions of the site
POST/v1/site/versions/{id}/publishsite-version-publishwriteможноключ API или кабинетPut an uploaded version live (also a rollback to an earlier one)

Payments#

МетодПутьoperationIdПраваIdempotency-KeyАвторизацияЧто делает
GET/v1/pay/healthpay-healthread—ключ API или кабинетCan buyers pay right now? The Kaspi status for the cabinet header and the app
GET/v1/pay/problemspay-problems-listread—ключ API или кабинетThe problems to look at on Today
POST/v1/pay/problems/refused/resolvepay-problems-resolve-refusedwriteобязателенключ API или кабинетMark all refused checkouts as dealt with
POST/v1/pay/problems/{id}/resolvepay-problem-resolvewriteобязателенключ API или кабинетMark a problem done
POST/v1/pay/reconcilepay-reconcilewriteобязателенключ API или кабинетCheck the payments against the Kaspi history now
GET/v1/paymentspayments-listread—ключ API или кабинетList payments, newest first
POST/v1/payments/invoicespayment-invoice-createwriteобязателенключ API или кабинетSend a Kaspi invoice to a payer's phone
POST/v1/payments/qrpayment-qr-createwriteобязателенключ API или кабинетCreate a Kaspi QR payment
GET/v1/payments/{id}payment-getread—ключ API или кабинетGet a payment
POST/v1/payments/{id}/cancelpayment-cancelwriteможноключ API или кабинетStop waiting for a pending payment
GET/v1/payments/{id}/eventspayment-eventsread—ключ API или кабинетStream a payment's status (server-sent events)
GET/v1/payments/{id}/historypayment-historyread—ключ API или кабинетStatus history of a payment, oldest first
POST/v1/payments/{id}/refundpayment-refund-requestmoneyобязателенключ API или кабинетAsk for a refund (creates an approval)
GET/v1/payments/{id}/refundspayment-refundsread—ключ API или кабинетRefund requests of a payment and where each one stands

Plans#

МетодПутьoperationIdПраваIdempotency-KeyАвторизацияЧто делает
GET/v1/plansplan-listread—ключ API или кабинетList plans, newest first
POST/v1/plansplan-createwriteобязателенключ API или кабинетCreate a subscription plan
GET/v1/plans/{id}plan-getread—ключ API или кабинетGet a plan
PATCH/v1/plans/{id}plan-updatewriteможноключ API или кабинетChange a plan; a running period keeps the terms it started with
POST/v1/plans/{id}/archiveplan-archivewriteможноключ API или кабинетArchive a plan: it takes no new subscribers; existing subscribers keep renewing on their terms

Promo codes#

МетодПутьoperationIdПраваIdempotency-KeyАвторизацияЧто делает
GET/v1/promo-codespromo-listread—ключ API или кабинетList promo codes, newest first
POST/v1/promo-codespromo-createwriteобязателенключ API или кабинетCreate a promo code
PATCH/v1/promo-codes/{id}promo-set-activewriteобязателенключ API или кабинетSwitch a promo code on or off

Public pages#

МетодПутьoperationIdПраваIdempotency-KeyАвторизацияЧто делает
GET/v1/public/live/{slug}/eventspublic-live-events——без авторизацииStream a live page's state (server-sent events)
GET/v1/public/live/{slug}/overlaypublic-live-overlay——без авторизацииA live page's state as compact JSON, for an OBS overlay
GET/v1/public/orders/{token}public-order-get——без авторизацииA buyer's order page
GET/v1/public/payments/receipts/{token}public-payment-receipt——без авторизацииThe buyer's payment confirmation
GET/v1/public/{slug}public-page-get——без авторизацииA published page, as JSON
POST/v1/public/{slug}/checkoutpublic-page-checkout—можнобез авторизацииStart a payment for one item of a page
POST/v1/public/{slug}/leadspublic-store-lead—можнобез авторизацииLeave a lead (a contact request) with a business
POST/v1/public/{slug}/notify-payablepublic-notify-payable—можнобез авторизацииAsk the seller to tell me when I can pay
GET/v1/public/{slug}/offerspublic-store-offers——без авторизацииWhat a business sells: store products, published courses and channel plans
POST/v1/public/{slug}/orderspublic-store-order—можнобез авторизацииPlace a store order (a cart) and start its payment
GET/v1/public/{slug}/payments/{payment_id}public-page-payment-status——без авторизацииThe status of a payment started on a page
POST/v1/public/{slug}/promo-previewpublic-page-promo-preview—обязателенбез авторизацииWhat a promo code would take off, before paying
POST/v1/public/{slug}/seenpublic-page-seen—можнобез авторизацииCount the opening of a product on a page

Rules#

МетодПутьoperationIdПраваIdempotency-KeyАвторизацияЧто делает
GET/v1/rulesrule-listread—ключ API или кабинетList rules
POST/v1/rulesrule-createwriteобязателенключ API или кабинетCreate a rule
GET/v1/rules/catalogrule-catalogread—ключ API или кабинетDescribe the triggers, condition fields, operators and actions a rule can use
GET/v1/rules/{id}rule-getread—ключ API или кабинетGet a rule
PATCH/v1/rules/{id}rule-updatewriteможноключ API или кабинетChange a rule's name, trigger, conditions, actions or stop_on_failure
DELETE/v1/rules/{id}rule-deletewriteможноключ API или кабинетDelete a rule, its runs and its queued actions
POST/v1/rules/{id}/disablerule-disablewriteможноключ API или кабинетSwitch a rule off (actions already queued still run)
POST/v1/rules/{id}/enablerule-enablewriteможноключ API или кабинетSwitch a rule on
GET/v1/rules/{id}/runsrule-runsread—ключ API или кабинетList a rule's runs and the state of their actions, newest first

Site#

МетодПутьoperationIdПраваIdempotency-KeyАвторизацияЧто делает
POST/v1/public/leadspublic-leads-create—нельзябез авторизацииLeave a request on the PayBot site

Statistics#

МетодПутьoperationIdПраваIdempotency-KeyАвторизацияЧто делает
GET/v1/contacts/{id}/activitycontact-activityread—ключ API или кабинетWhat a client did: bot start, lead, orders, consents, channel access
GET/v1/stats/objectsstats-objectsread—ключ API или кабинетThe business's objects with their numbers for a period
GET/v1/stats/objects/{kind}/{id}stats-objectread—ключ API или кабинетThe statistics of one store, course, channel or bot

Subscriptions#

МетодПутьoperationIdПраваIdempotency-KeyАвторизацияЧто делает
GET/v1/subscriptionssubscription-listread—ключ API или кабинетList subscriptions, newest first
POST/v1/subscriptionssubscription-createwriteможноключ API или кабинетStart or renew a subscription: returns the subscription and the payment for its next period
GET/v1/subscriptions/{id}subscription-getread—ключ API или кабинетGet a subscription
POST/v1/subscriptions/{id}/cancelsubscription-cancelwriteможноключ API или кабинетCancel a subscription at the end of its period (no refund)

Telegram#

МетодПутьoperationIdПраваIdempotency-KeyАвторизацияЧто делает
GET/v1/telegram/botstelegram-bot-listread—ключ API или кабинетList Telegram bots
POST/v1/telegram/botstelegram-bot-connectwriteнельзяключ API или кабинетConnect a Telegram bot
GET/v1/telegram/bots/{id}telegram-bot-getread—ключ API или кабинетGet a Telegram bot
DELETE/v1/telegram/bots/{id}telegram-bot-disconnectwriteможноключ API или кабинетDisconnect a Telegram bot
POST/v1/telegram/bots/{id}/channel-sessiontelegram-bot-channel-sessionwriteможноключ API или кабинетStart a short connect session for adding the bot to a channel
GET/v1/telegram/bots/{id}/channelstelegram-channel-listread—ключ API или кабинетList a bot's channels
POST/v1/telegram/bots/{id}/channelstelegram-channel-addwriteможноключ API или кабинетAdd a channel the bot grants access to
DELETE/v1/telegram/channels/{id}telegram-channel-removewriteможноключ API или кабинетRemove a channel
POST/v1/telegram/channels/{id}/checktelegram-channel-checkwriteможноключ API или кабинетCheck the bot's rights in a channel again
POST/v1/telegram/channels/{id}/confirmtelegram-channel-confirmwriteможноключ API или кабинетConfirm a pending channel: the merchant recognises it and wants to use it
POST/v1/telegram/channels/{id}/rejecttelegram-channel-rejectwriteможноключ API или кабинетReject a pending channel: discard it and make the bot leave the chat

Templates#

МетодПутьoperationIdПраваIdempotency-KeyАвторизацияЧто делает
GET/v1/deploymentsdeployments-listread—ключ API или кабинетList the merchant's deployments, most recently changed first
GET/v1/deployments/{template}/{subject}/statsdeployment-statsread—ключ API или кабинетPayments and figures of one page
GET/v1/slugs/checkslug-checkread—ключ API или кабинетIs an address free for a public page?
GET/v1/templatestemplate-listread—ключ API или кабинетList the templates that can be deployed
POST/v1/templates/access_channel/deploytemplate-access-channel-deploywriteнельзяключ API или кабинетDeploy the access_channel template: one plan, one closed channel, the messages around them
GET/v1/templates/{id}template-getread—ключ API или кабинетDescribe a template: configuration schema, UI schema and deploy plan
POST/v1/templates/{id}/deploymentstemplate-deployment-createwriteнельзяключ API или кабинетDeploy a template: create a deployment
POST/v1/templates/{id}/deployments/{subject}/archivetemplate-deployment-archivewriteнельзяключ API или кабинетArchive a deployment for good
POST/v1/templates/{id}/deployments/{subject}/deploytemplate-deployment-deploywriteнельзяключ API или кабинетDeploy a new configuration of an existing deployment
POST/v1/templates/{id}/deployments/{subject}/preview/rotatetemplate-deployment-preview-rotatewriteнельзяключ API или кабинетReplace a deployment's preview token
POST/v1/templates/{id}/deployments/{subject}/publishtemplate-deployment-publishwriteнельзяключ API или кабинетPublish a draft or paused deployment
POST/v1/templates/{id}/deployments/{subject}/rollbacktemplate-deployment-rollbackwriteнельзяключ API или кабинетRoll a deployment back to an earlier configuration version
POST/v1/templates/{id}/deployments/{subject}/unpublishtemplate-deployment-unpublishwriteнельзяключ API или кабинетTake a deployment's page down (pause)
GET/v1/templates/{id}/deployments/{subject}/versionstemplate-deployment-versionsread—ключ API или кабинетList the configuration versions of a deployment, oldest first

Uploads#

МетодПутьoperationIdПраваIdempotency-KeyАвторизацияЧто делает
GET/v1/public/files/{id}public-file——без авторизацииA ready uploaded file: a redirect to storage
POST/v1/uploadsupload-createwriteнельзяключ API или кабинетRequest an upload: a presigned PUT for one image or document
GET/v1/uploads/{id}upload-getread—ключ API или кабинетGet an upload
POST/v1/uploads/{id}/confirmupload-confirmwriteможноключ API или кабинетConfirm an upload once the file is in storage

Webhooks#

МетодПутьoperationIdПраваIdempotency-KeyАвторизацияЧто делает
GET/v1/webhookswebhook-listread—ключ API или кабинетList webhook endpoints
POST/v1/webhookswebhook-createwriteнельзяключ API или кабинетRegister a webhook endpoint
POST/v1/webhooks/deliveries/{id}/replaywebhook-delivery-replaywriteобязателенключ API или кабинетSend a delivery again
GET/v1/webhooks/{id}webhook-getread—ключ API или кабинетGet a webhook endpoint
PATCH/v1/webhooks/{id}webhook-updatewriteможноключ API или кабинетChange a webhook endpoint's URL, event filter, description or active flag
DELETE/v1/webhooks/{id}webhook-deletewriteможноключ API или кабинетDelete a webhook endpoint and its delivery log
GET/v1/webhooks/{id}/deliverieswebhook-deliveriesread—ключ API или кабинетList an endpoint's deliveries, newest first
POST/v1/webhooks/{id}/rotate-secretwebhook-rotate-secretwriteнельзяключ API или кабинетReplace the signing secret
POST/v1/webhooks/{id}/testwebhook-testwriteобязателенключ API или кабинетSend a test event now