Skip to main content

API Overview

Base Configuration

Base URL

All API endpoints are accessed via:

Production: https://api.trpcontinuum.com

Headers

All requests must include:

Content-Type: application/json
x-api-key: YOUR_API_KEY
x-secret-key: YOUR_SECRET_KEY

Response Format

All API responses follow a consistent structure:

Success Response:

{
"success": true,
"data": {
// Response data
},
"message": "Optional success message"
}

Error Response:

{
"success": false,
"error": "Error description",
"code": "ERROR_CODE",
"details": {
// Additional error context
}
}

API Categories

1. Authentication 🔐

Manage user accounts, sessions, and API credentials.

MethodEndpointDescription
POST/api/auth/registerCreate new user account
POST/api/auth/loginAuthenticate user
GET/api/auth/meGet current user info
POST/api/auth/logoutEnd user session
POST/api/auth/setup-2faEnable two-factor auth
POST/api/auth/verify-2faVerify 2FA code

2. VASP Management 🏢

Register and manage Virtual Asset Service Providers.

MethodEndpointDescription
GET/trp/vaspsList all VASPs
GET/trp/vasps/searchSearch VASPs by name
GET/trp/vasps/{id}Get specific VASP
GET/vasps/my-vaspGet current user's VASP
PUT/vasps/complianceUpdate compliance info

3. Virtual Assets 💰

Access cryptocurrency and token information.

MethodEndpointDescription
GET/coinsList all supported coins
GET/coins/network/{network}Get coins by network
GET/coins/network/{network}/searchSearch coins on network

4. Networks 🌐

Blockchain network information and configuration.

MethodEndpointDescription
GET/chainsList all blockchain networks
GET/chains/enabledGet active networks only

5. Travel Address 🔗

Privacy-preserving address management.

MethodEndpointDescription
POST/trp/travel-addressGenerate new travel address
POST/trp/validate-travel-addressValidate address format
POST/trp/decode-travel-addressDecode address information

6. Transaction Management 📋

Core transaction creation and lifecycle.

MethodEndpointDescription
POST/trp/transactionsCreate new transaction
GET/trp/transactionsList transactions
GET/trp/transactions/{id}Get transaction details
POST/trp/transactions/{id}/archiveArchive transaction
POST/trp/transactions/{id}/unarchiveRestore transaction

7. Transaction Processing 🔄

Step-by-step transaction workflow endpoints.

MethodEndpointDescription
POST/trp/transactions/{id}/add-beneficiaryAdd beneficiary info
POST/trp/transactions/{id}/kyc-check/approveApprove KYC
POST/trp/transactions/{id}/kyc-check/rejectReject KYC
POST/trp/transactions/{id}/originator-detailsAdd originator info
POST/trp/transactions/{id}/send-to-beneficiarySend to beneficiary VASP
POST/trp/transactions/{id}/approve-originatorApprove originator
POST/trp/transactions/{id}/payment-check/approveApprove payment
POST/trp/transactions/{id}/payment-check/rejectReject payment
POST/trp/transactions/{id}/tx-hash-submitSubmit blockchain hash

8. Beneficiary Transactions 📨

Manage incoming transactions.

MethodEndpointDescription
GET/trp/beneficiary-transactionsList beneficiary transactions
GET/trp/beneficiary-transactions/{id}Get specific transaction

9. BitRank Integration 🔍

Wallet risk analysis and verification.

MethodEndpointDescription
POST/trp/verify-wallets-bitrankVerify wallet risk scores
POST/trp/transactions/{id}/bitrank-verifyRecord verification
POST/trp/transactions/{id}/bitrank-rejectRecord rejection

HTTP Status Codes

CodeDescription
200Success
201Created
400Bad Request
401Unauthorized
403Forbidden
404Not Found
409Conflict
429Too Many Requests
500Internal Server Error
503Service Unavailable

Error Codes

CodeDescription
AUTH_FAILEDAuthentication failed
INVALID_TOKENInvalid or expired token
INSUFFICIENT_PERMISSIONSUser lacks required permissions
VALIDATION_ERRORRequest validation failed
RESOURCE_NOT_FOUNDRequested resource doesn't exist
DUPLICATE_RESOURCEResource already exists
RATE_LIMIT_EXCEEDEDToo many requests
COMPLIANCE_ERRORCompliance check failed
BLOCKCHAIN_ERRORBlockchain operation failed

Pagination

List endpoints support pagination using:

GET /endpoint?limit=20&offset=0

Response includes pagination metadata:

{
"data": [...],
"pagination": {
"total": 100,
"limit": 20,
"offset": 0,
"hasMore": true
}
}

API Versioning

The API uses URL versioning. Current version: v1

Future versions will be available at:

  • /v2/...
  • /v3/...

Deprecated endpoints will be supported for 6 months after deprecation notice.