Ministry of Digital Development · v1

Build on the state’s own mobile platform

The API behind the Moya Veyra app: digital documents with dynamic QR codes, 83 state services, taxes, fines and notifications. Sign-in with Veyra ID.

Base URL
https://moya-veyra-api-production.up.railway.app/v1
Auth
OAuth 2.0 + PKCE
Format
JSON, EN / RU

Quick start

  1. Get a token
    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":"…"}'
  2. Read the wallet
    curl https://moya-veyra-api-production.up.railway.app/v1/documents \
      -H 'Authorization: Bearer va_…' -H 'Accept-Language: en'
  3. File an application
    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":"…"}'

Response

{
  "items": [
    {
      "id": "5f0c…",
      "type": "id_card",
      "title": "National ID card",
      "number": "012400001",
      "status": "valid",
      "expires_at": "2036-12-01",
      "verify_code": "VHR8KXNWSY",
      "wallet": true
    }
  ]
}

Every issued document carries a 10-character verify_code. Anyone can check it at eveyra-production.up.railway.app/verify.

Authentication

First-party app

The Moya Veyra app signs in directly with login and password (plus a TOTP code when two-step verification is on).

POST /v1/auth/login → access_token, refresh_token

Partner apps: OAuth 2.0 + PKCE

  1. Redirect the user to 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
  2. The citizen signs in with Veyra ID and is sent back with ?code=
  3. Exchange it at https://veyra-id-production.up.railway.app/oauth/token with your code_verifier

Discovery: /.well-known/openid-configuration

Signatures

Filing an application or confirming one requires the Veyra ID password in the request — it is the citizen’s electronic signature under the Law on State Services, Article 6.

Reference

AuthSign-in, registration and tokens

  • POST/v1/auth/loginSign in with email, phone or personal numberpublic
  • POST/v1/auth/registerCreate a Veyra ID and receive a personal numberpublic
  • POST/v1/auth/refreshExchange a refresh token (rotated on every use)public
  • 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 cataloguepublic
  • GET/v1/services/{code}Service details; with a token also eligibility and the form fields
  • GET/v1/categoriesCategoriespublic
  • GET/v1/situationsLife situations with ordered stepspublic
  • 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 codepublic
  • GET/v1/newsGovernment newspublic
  • GET/v1/lawsLegal actspublic
  • GET/v1/healthLivenesspublic

Errors and limits

{
  "error": {
    "code": "validation_failed",
    "message": "Some fields are invalid",
    "fields": {
      "vin": "A VIN has exactly 17 letters and digits, without I, O and Q."
    }
  }
}