Freedom Pay
  1. Transfer
Freedom Pay
  • Overview
  • Gateway API
    • Overview
    • Sync API
      • Overview
      • Purchase
        • Overview
        • Create payment
        • Any amount
        • Card
        • 3DSecure
        • Recurrent
        • Cancel
        • Clearing
        • Refund
        • Status
      • Payout
        • Overview
        • Card
        • IBAN
        • Balance
        • Status
      • Transfer
        • Overview
        • Card
        • 3DSecure
        • Rates
        • Status
      • Card
        • Overview
        • Add
        • 3DSecure
        • List
        • Remove
        • Status
      • Token
        • Overview
        • Token Pay
        • Apple Pay
        • Google Pay
        • Token Payout
        • Status
    • Async API
      • Overview
      • create
        • create payment
      • read
        • read payment
        • read request
      • edit
        • edit payment.refund
        • edit payment.reverse
        • edit payment.clearing
  • Merchant API
    • Overview
    • Purchase
      • Overview
      • Checkout
      • Card token
        • Overview
        • Tokenize card
        • Delete token
        • Card token list
        • Create payment (with CVC)
        • Confirm payment (with CVC)
        • Create payment
        • Confirm payment
      • Create payment
      • Any amount
      • Cancel payment
      • Clearing
      • Refund payment
      • Status
    • Payout
      • Overview
      • Card token
        • Tokenize card
        • Delete token
        • Card token list
        • Create payment
      • Create payment
      • IBAN
      • Balance status
      • Status by order_id
      • Status by Payment ID
      • Status
    • Mobile balance
      • Overview
      • Init
      • Pay
      • Approve
      • Resend code
      • Status
    • Invoice
      • Overview
      • Init
      • Info
      • Pay
      • Status
    • SDK
      • JS SDK
      • Google Pay
      • Freedom QR
        • Reader SDK (Android)
        • Provider SDK (Android)
      • Payment SDK
        • iOS
        • Android
      • Merchant SDK
        • Android
    • CMS
      • Overview
      • Get Merchant ID and key
      • WordPress
        • Overview
        • Installation
        • Configuration
        • Test
        • Live payments
        • Update
      • Tilda
        • Overview
        • Installation
        • Configuration
        • Test
        • Live payments
      • InSales
        • Overview
        • Installation
        • Configuration
        • Test
        • Live payments
      • Ecwid
        • Overview
        • Installation
        • Configuration
        • Test
        • Live payments
      • Bitrix
        • Overview
        • Installation
        • Configuration
        • Test
        • Live payments
      • PrestaShop
        • Overview
        • Installation
        • Configuration
        • Test
        • Live payments
      • OpenCart
        • Overview
        • Installation
        • Configuration
        • Test
        • Live payments
    • Redirect back
    • Result notify
    • Payout notify
    • Check request
  • Card API
    • Overview
    • Payment Cards
      • Overview
      • Dictionaries
      • Bulk issue
      • Issue card
      • Issue plastic card
      • Activate card
      • Block card
      • Unblock card
      • Set PIN
      • Reset PIN counter
      • Close card
      • Update client
      • Card info
      • Balance
      • Secret data
      • Secret data (version 2)
      • Operations' list
      • Statement extended
      • Create client
      • Edit client
      • Сards' list
      • Request' status
      • Create transaction
      • Clearing transaction
      • Refund transaction
      • Transaction info
      • Cardholder validation
      • Set limits
      • Limits list
    • Gift Cards
      • Overview
      • List
      • Issue
      • Confirm
      • Resend
      • Resend code
      • Status
  • Partner API
    • Rates
      • Overview
      • Rates
    • Products
      • Overview
      • Dictionaries
      • Add client with product
      • Request status
      • Create terminal
    • E-Money
      • Overview
      • Add
      • Owner identification
      • Info
      • Close
      • Block
      • Balance
      • Statement
      • Request Status
    • Freedom ID
      • Overview
      • Design
      • iOS SDK
      • Android SDK
      • OAuth2
        • Authorization link
        • Token exchange
        • Token refresh
        • User info
        • Request profile
        • Get profile status
        • Create user
        • Update user
      • OIDC
        • Authorization endpoint
        • Token exchange
        • Userinfo
      • Error codes
      • Examples
        • Keycloak
    • Transfer
      • Overview
      • Get token
        POST
      • Refresh token
        POST
      • Get agents
        POST
      • Fees
        POST
      • Create person
        POST
      • Create business
        POST
      • Create transfer
        POST
      • Print application
        POST
      • Confirm
        POST
      • Search
        POST
      • Payout
        POST
      • Payout confirm
        POST
      • Cancel
        POST
      • Get person info
        POST
      • Get business info
        POST
      • Status
        POST
      • Info
        POST
    • Device ID
      • Android SDK
      • iOS SDK
    • Implement SuperApp
      • Overview
      • Pay
      • Refund
    • Account
      • Settlement
        • Overview
        • Create payment
        • Payment status
    • Invoice
      GET
  1. Transfer

Get token

POST
/v5/partner/transfer/agent/auth
Token-Based Authentication
Access to the API is controlled through access tokens and refresh tokens, ensuring secure communication and limiting unauthorized usage.
Description: This method is used to authenticate an agent in the IMTS system. The agent transmits its credentials (agent_ID) and (agent_secret) and receives an access token and a refresh token.
Important
The access token is required to perform all operations related to transfers.
The refresh token is used to extend the session without the need to re-enter credentials.

Request

Body Params application/json

Example
{
    "agent_id": "string",
    "agent_secret": "string"
}

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/v5/partner/transfer/agent/auth' \
--header 'Content-Type: application/json' \
--data-raw '{
    "agent_id": "string",
    "agent_secret": "string"
}'

Responses

🟢200Success
application/json
Body

Example
{
    "state": true,
    "response_time": "2025-07-23T11:17:31.577745Z",
    "payload": {
        "access_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJpbXRzLWFwaSIsImF1ZCI6ImltdHMtYmFja2VuZCIsImp0aSI6IjBmYThmMzM0ZWNkZWFiYzNkNjE3NTc4Yjk0ODBmMTk5IiwiaWF0IjoxNzUzMjY5NDUxLjU3MjkxLCJuYmYiOjE3NTMyNjk0NTEuNTcyOTEsImV4cCI6MTc1MzI3MDM1MS41NzI5NjQsInN1YiI6IjEiLCJ0eXBlIjoiYWNjZXNzX3Rva2VuIiwiYWdlbnRfaWQiOiIxIn0.z3vHVKE2u_W9AR-aqG02r6vJqwkMDxrq03LzUDqfinc",
        "refresh_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJpbXRzLWFwaSIsImF1ZCI6ImltdHMtYmFja2VuZCIsImp0aSI6ImU3M2I3OTBiYzM3ODFlZjQ0MGIxNzg0NTUxNzBmODgyIiwiaWF0IjoxNzUzMjY5NDUxLjU3MjkxLCJuYmYiOjE3NTMyNjk0NTEuNTcyOTEsImV4cCI6MTc1NTg2MTQ1MS41NzMyNTksInN1YiI6IjEiLCJ0eXBlIjoicmVmcmVzaF90b2tlbiIsImFnZW50X2lkIjoiMSJ9.KaWOD4g0gW5y_TaCmtt7smC9JCweLbHClYOyvQpbKEY",
        "access_expire_at": "2025-07-23T11:32:31+00:00",
        "refresh_expire_at": "2025-08-22T11:17:31+00:00"
    }
}
Modified at 2025-08-25 09:53:24
Previous
Overview
Next
Refresh token