Welcome to the QuantumPay API documentation! This document provides an overview of the available API endpoints, their functionalities, and how to interact with the QuantumPay Network programmatically.
The QuantumPay API is designed to be RESTful, allowing developers to easily integrate with the QuantumPay Network. The API follows standard HTTP methods and returns data in JSON format.
All API requests are made to the following base URL:
https://api.quantumpay.network/v1
To access the API, you must include an API key in the request headers. You can obtain your API key by creating an account on the QuantumPay platform.
Header Example:
Authorization: Bearer YOUR_API_KEY
/users
POST
{
"username": "string",
"password": "string",
"email": "string"
}
{
"userId": "string",
"message": "User created successfully."
}
/users/{userId}
GET
{
"userId": "string",
"username": "string",
"email": "string",
"createdAt": "timestamp"
}
/transactions
POST
{
"from": "string",
"to": "string",
"amount": "number",
"currency": "string"
}
{
"transactionId": "string",
"status": "pending",
"message": "Transaction created successfully."
}
/transactions/{transactionId}
GET
{
"transactionId": "string",
"status": "string",
"amount": "number",
"currency": "string",
"timestamp": "timestamp"
}
/contracts
POST
{
"contractCode": "string",
"parameters": "object"
}
{
"contractId": "string",
"message": "Smart contract deployed successfully."
}
/contracts/{contractId}/execute
POST
{
"functionName": "string",
"args": "array"
}
{
"result": "object",
"message": "Smart contract executed successfully."
}
The API returns standard HTTP status codes to indicate the success or failure of a request. Common status codes include:
200 OK
: The request was successful.201 Created
: A new resource was created successfully.400 Bad Request
: The request was invalid or malformed.401 Unauthorized
: Authentication failed or was not provided.404 Not Found
: The requested resource could not be found.500 Internal Server Error
: An error occurred on the server.The QuantumPay API provides a powerful and flexible way to interact with the QuantumPay Network. For more detailed information on each endpoint, including examples and additional parameters, please refer to the specific endpoint documentation.
For any questions or support, please contact our development team at support@quantumpay.network.