API Reference
This document describes the public and API-key authenticated endpoints of the AzothPay API
Cancel an existing subscription to an author
API Key Authentication. Example: "X-API-Key: {api_key}"
Success
Bad Request
Unauthorized
Forbidden
Internal Server Error
Create a new subscription/payment stream to an author
API Key Authentication. Example: "X-API-Key: {api_key}"
Success
Bad Request
Unauthorized
Forbidden
Internal Server Error
Retrieve a list of all active subscriptions for a user
API Key Authentication. Example: "X-API-Key: {api_key}"
Success
Bad Request
Unauthorized
Forbidden
Internal Server Error
Deposit funds to a user's account
API Key Authentication. Example: "X-API-Key: {api_key}"
Request model for depositing funds into the system
Ethereum address to deposit funds from
Amount to deposit
Whether to use Permit2 for token approval
Optional sponsor address that pays for gas fees
Success
Bad Request
Unauthorized
Forbidden
Internal Server Error
Retrieve the balance of a user's account
API Key Authentication. Example: "X-API-Key: {api_key}"
Success
Bad Request
Unauthorized
Forbidden
Internal Server Error
Create a transaction to make a one-time payment to another user. This endpoint supports sponsored transactions where gas fees can be paid by the recipient. The sponsor must be either the sender or receiver of the payment. All addresses must be valid Ethereum addresses (42 characters starting with 0x).
API Key Authentication. Example: "X-API-Key: {api_key}"
Request model for making a payment transaction
Ethereum address of the sender
Ethereum address of the recipient
Amount to be transferred (in wei for ETH)
Optional sponsor address that pays for gas fees. Must be either the sender or receiver.
Successfully prepared payment transaction
Bad Request - Invalid parameters or addresses
Unauthorized - Invalid API key
Forbidden
Internal Server Error
Withdraw funds from a user's account
API Key Authentication. Example: "X-API-Key: {api_key}"
Request model for withdrawing funds from the system
Ethereum address to withdraw funds from
Amount to withdraw
Ethereum address to withdraw funds to
Optional sponsor address that pays for gas fees
Success
Bad Request
Unauthorized
Forbidden
Internal Server Error
Execute a meta transaction that has been signed by the user
API Key Authentication. Example: "X-API-Key: {api_key}"
Success
Bad Request
Unauthorized
Forbidden
Internal Server Error
Retrieve the current nonce value for a specific account
API Key Authentication. Example: "X-API-Key: {api_key}"
Success
Bad Request
Unauthorized
Forbidden
Internal Server Error
Create multiple subscriptions in a single transaction
API Key Authentication. Example: "X-API-Key: {api_key}"
Success
Bad Request
Unauthorized
Forbidden
Internal Server Error
Process multiple payments to different recipients in a single transaction
API Key Authentication. Example: "X-API-Key: {api_key}"
Success
Bad Request
Unauthorized
Forbidden
Internal Server Error
Last updated