Министерство цифрового развития · v1
Стройте на государственной мобильной платформе
API приложения «Моя Вейра»: цифровые документы с динамическим QR-кодом, 83 госуслуг, налоги, штрафы и уведомления. Вход через Veyra ID.
- Base URL
https://moya-veyra-api-production.up.railway.app/v1- Вход
- OAuth 2.0 + PKCE
- Формат
- JSON, EN / RU
Быстрый старт
- Получите токен
curl -X POST https://moya-veyra-api-production.up.railway.app/v1/auth/login \ -H 'Content-Type: application/json' \ -d '{"login":"you@mail.vy","password":"…"}'
- Прочитайте кошелёк
curl https://moya-veyra-api-production.up.railway.app/v1/documents \ -H 'Authorization: Bearer va_…' -H 'Accept-Language: ru'
- Подайте заявку
curl -X POST https://moya-veyra-api-production.up.railway.app/v1/applications \ -H 'Authorization: Bearer va_…' -H 'Content-Type: application/json' \ -d '{"service":"cert-no-record","data":{"purpose":"employer"},"password":"…"}'
Ответ
{
"items": [
{
"id": "5f0c…",
"type": "id_card",
"title": "Удостоверение личности",
"number": "012400001",
"status": "valid",
"expires_at": "2036-12-01",
"verify_code": "VHR8KXNWSY",
"wallet": true
}
]
}
У каждого документа есть 10-значный verify_code. Проверить его может любой на eveyra-production.up.railway.app/verify.
Аутентификация
Собственное приложение
Приложение «Моя Вейра» входит напрямую логином и паролем (плюс TOTP-код, если включена двухэтапная проверка).
POST /v1/auth/login → access_token, refresh_token
Партнёры: OAuth 2.0 + PKCE
- Перенаправьте пользователя на
https://veyra-id-production.up.railway.app/oauth/authorize?client_id=moya-veyra&response_type=code&redirect_uri=https://moya-veyra-api-production.up.railway.app/oauth/callback&code_challenge=…&code_challenge_method=S256 - Гражданин входит через Veyra ID и возвращается с
?code= - Обменяйте его на
https://veyra-id-production.up.railway.app/oauth/tokenвместе сcode_verifier
Discovery: /.well-known/openid-configuration
Подпись
Подача или подтверждение заявления требует пароль Veyra ID в запросе — это электронная подпись гражданина по Закону «О госуслугах», ст. 6.
Справочник
AuthSign-in, registration and tokens
- POST
/v1/auth/loginSign in with email, phone or personal numberпубличный - POST
/v1/auth/registerCreate a Veyra ID and receive a personal numberпубличный - POST
/v1/auth/refreshExchange a refresh token (rotated on every use)публичный - POST
/v1/auth/logoutRevoke the current token
ProfileThe signed-in citizen
- GET
/v1/meCurrent citizen, address and clinic - GET
/v1/me/photoPhoto used on documents (binary) - GET
/v1/dashboardHome screen: counters and wallet cards - GET
/v1/notificationsNotifications - POST
/v1/notifications/readMark notifications as read - PUT
/v1/me/signatureSave the hand-drawn signature printed on ID card, passport and licence - DELETE
/v1/me/signatureRemove the signature - GET
/v1/me/signature.svgThe saved signature as SVG
Credit bureau (lenders)For connected banks, MFOs and credit unions. Authenticate with a participant key: `Authorization: Bearer vcb_live_…`
- GET
/bureau/v1/meParticipant code, type and portfolio summary - GET
/bureau/v1/bans/{pn}Whether a voluntary ban on loans is in force. No consent needed: check it before every loan. - POST
/bureau/v1/consentsAsk the borrower for consent to read the credit report. The borrower approves in eVeyra; consent lasts 30 days. - GET
/bureau/v1/consents/{id}Consent status: pending, approved, declined, expired - GET
/bureau/v1/reportsCredit report of a borrower who gave consent. Every read is shown to the borrower. - GET
/bureau/v1/loansLoans you reported - POST
/bureau/v1/loansReport a new loan. Refused with 409 voluntary_ban if the borrower has a ban. - PATCH
/bureau/v1/loans/{number}Report a payment, an overdue or repayment of your loan
DocumentsDigital wallet, PDFs, dynamic QR presentation
- GET
/v1/documentsDocuments in the wallet - GET
/v1/documents/{id}Document with all fields and MRZ - GET
/v1/documents/{id}/pdfSigned PDF with QR code - GET
/v1/documents/{id}/card/{side}.svgThe document as security-printed art (SVG, text in outlines): card sides, the passport data page, or the paper blank - POST
/v1/documents/{id}/presentCreate a dynamic QR (valid 90 seconds) to show the document in person
ServicesCatalogue and application forms
- GET
/v1/servicesService catalogueпубличный - GET
/v1/services/{code}Service details; with a token also eligibility and the form fields - GET
/v1/categoriesCategoriesпубличный - GET
/v1/situationsLife situations with ordered stepsпубличный - GET
/v1/slotsFree appointment slots at your clinic (or at the clinic given, e.g. your child’s) - GET
/v1/persons/{pn}/lookupMasked name for a personal number (for partner/buyer/founder fields)
ApplicationsFile, pay, track, confirm
- GET
/v1/applicationsMy applications and those waiting for my confirmation - POST
/v1/applicationsFile an application (signed with the Veyra ID password) - GET
/v1/applications/{id}Application status and history - POST
/v1/applications/{id}/payPay the state fee by card - POST
/v1/applications/{id}/cancelCancel before processing - POST
/v1/applications/{id}/respondConfirm or decline as the other party (marriage, vehicle sale)
PaymentsTaxes, fines, receipts
- GET
/v1/taxesTax notices of the citizen and their businesses - POST
/v1/taxes/payPay tax notices - GET
/v1/finesTraffic fines with the 7-day discount - POST
/v1/fines/payPay fines - GET
/v1/paymentsReceipts - POST
/v1/restrictions/payPay enforcement debts; linked restrictions are lifted
RegistersVehicles, property, family, business, health
- GET
/v1/creditCredit rating (1–999), loans, inquiries and the voluntary ban on loans from the State Credit Bureau - POST
/v1/credit/consents/{id}Allow (30 days) or decline a lender’s request to read your credit report - GET
/v1/ratesOfficial VEL exchange rates of the National Bank (public, no token needed) - GET
/v1/accountsYour bank accounts, balances and latest operations - POST
/v1/accounts/transferTransfer money to an IBAN or to a citizen by personal number (body: from, to, amount, note, password) - GET
/v1/travelWhether the citizen is at home or abroad, travel ban, and border crossings - GET
/v1/restrictionsTravel ban, other restrictions, enforcement proceedings and court cases - GET
/v1/vehiclesRegistered vehicles - GET
/v1/propertyReal estate - GET
/v1/familySpouse and children - GET
/v1/businessesBusinesses you own, direct or founded - GET
/v1/healthcareClinic and appointments
PublicNo authentication required
- GET
/v1/verify/{code}Check a document by its verification codeпубличный - GET
/v1/newsGovernment newsпубличный - GET
/v1/lawsLegal actsпубличный - GET
/v1/healthLivenessпубличный
Ошибки и ограничения
{
"error": {
"code": "validation_failed",
"message": "Проверьте поля",
"fields": {
"vin": "VIN состоит ровно из 17 латинских букв и цифр, без I, O и Q."
}
}
}
401нет токена или он истёк — обновите его403 signature_invalidневерный пароль Veyra ID409 not_eligibleне выполнены условия (например, нет удостоверения)422ошибки полей на языке запроса42915 входов в минуту с одного IP