API Documentation
Welcome to the API documentation for managing Users, Transactions, and Token Contracts. This API allows developers to interact with the app programmatically, enabling functionalities such as user management, token transactions, and retrieval of token contract information.
Authentication
This API uses JWT for authentication along with an API key. Every request to the API must include a valid JWT in the Authorization header and an API key in the X-API-Key header.
JWT: The JWT should be included in the
Authorizationheader as a Bearer token.API Key: The API key should be included in the
X-API-Keyheader.
Base URL
The base URL for the API is:
https://api.sonica.xyz/v0/rwaAvailable Endpoints
Getting Started
To begin using the API, you need to obtain an API key and generate a JWT token. Include these credentials in your requests to authenticate and interact with the endpoints. Each endpoint description in this documentation includes details about the required parameters, request body, and response structure.
User
Bearer token
User details
Bad request error
Unauthorized error
Not found error
Not acceptable error
Unprocessable entity error
Too many requests error
Internal server error
Bearer token
^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$User details
Bad request error
Unauthorized error
Not found error
Not acceptable error
Unprocessable entity error
Too many requests error
Internal server error
Bearer token
JSON defining a User object
John DoePattern: ^[a-z ,.'-]+$password123Pattern: ^[a-zA-Z0-9]*$User created successfully
Bad request error
Unauthorized error
Not acceptable error
Conflict error
Unprocessable entity error
Too many requests error
Internal server error
Bearer token
JSON defining a User object
password123Pattern: ^[a-zA-Z0-9]*$John DoePattern: ^[a-z ,.'-]+$User updated successfully
Bad request error
Unauthorized error
Forbidden error
Not found error
Conflict error
Unprocessable entity error
Too many requests error
Internal server error
Transactions
Bearer token
List of transactions
Bad request error
Unauthorized error
Too many requests error
Internal server error
Bearer token
b92787c0-3525-4e2a-96f4-9d0d13123e5ePattern: ^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$Transaction details
Bad request error
Unauthorized error
Not found error
Not acceptable error
Unprocessable entity error
Too many requests error
Internal server error
Bearer token
List of transactions by date
Bad request error
Unauthorized error
Too many requests error
Internal server error
Bearer token
List of transactions by date range
Bad request error
Unauthorized error
Too many requests error
Internal server error
Bearer token
0xabcdef1234567890abcdef1234567890abcdef12Pattern: ^0x[a-fA-F0-9]{40}$0xabcdef1234567890abcdef1234567890abcdef12Pattern: ^0x[a-fA-F0-9]{40}$10Transaction started successfully
Bad request error
Unauthorized error
Not acceptable error
Conflict error
Unprocessable entity error
Too many requests error
Internal server error
Bearer token
b92787c0-3525-4e2a-96f4-9d0d13123e5ePattern: ^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$0xabcdef1234567890abcdef1234567890abcdef12Pattern: ^0x[a-fA-F0-9]{40}$0xabcdef1234567890abcdef1234567890abcdef12Pattern: ^0x[a-fA-F0-9]{40}$10pendingPossible values: 2024-01-01T00:00:00Z2024-01-01T00:00:00ZTransaction signed successfully
Bad request error
Unauthorized error
Not acceptable error
Conflict error
Unprocessable entity error
Too many requests error
Internal server error
Bearer token
b92787c0-3525-4e2a-96f4-9d0d13123e5ePattern: ^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$0xf9020e128509742328a88307a12094287c676e7c51556d0820a1f049f74aa3a206fa8880b901a484bb1e420000000000000000000000001bfad07c5118fbcc96ef6baf12d2945ca9d2548c000000000000000000000000000000000000000000000000016345785d8a0000000000000000000000000000eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000001600000000000000000000000000000000000000000000000000000000000000080ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000083027127a07b8b49ac49c2c862a697954115d244795d56e34c8e49410b79f1dafaf2b81548a07b397d0cd1f17edbfb8de38972fb2cedf713e1acab8542c951c75a208fe86f65Pattern: ^[a-zA-Z0-9]*$Transaction finished successfully
Bad request error
Unauthorized error
Forbidden error
Not found error
Conflict error
Unprocessable entity error
Too many requests error
Internal server error
Token Contracts
Bearer token
List of active contracts
Bad request error
Unauthorized error
Too many requests error
Internal server error
Bearer token
Contract details
Bad request error
Unauthorized error
Not found error
Not acceptable error
Unprocessable entity error
Too many requests error
Internal server error
Bearer token
Contract details
Bad request error
Not found error
Not acceptable error
Unprocessable entity error
Too many requests error
Internal server error
Bearer token
0x1234567890abcdef1234567890abcdef12345678Pattern: ^0x[a-fA-F0-9]{40}$1ERC20["0xabcdef1234567890abcdef1234567890abcdef12"]["0xabcdef1234567890abcdef1234567890abcdef12"]["0xabcdef1234567890abcdef1234567890abcdef12"]Contract created successfully
Bad request error
Unauthorized error
Not acceptable error
Conflict error
Unprocessable entity error
Too many requests error
Internal server error
Bearer token
trueContract activeness updated successfully
Bad request error
Unauthorized error
Forbidden error
Not found error
Conflict error
Unprocessable entity error
Too many requests error
Internal server error
Last updated