A server offering many APIs needed for agentic operations, specifically on the ListenUp VOIS ecosystem.
This server uses ETHAuth and Open402 specifications for access and payment (respectively). The flow is:
- submit your Ethereum Address and an acceptable Chain ID to: [GET]
/challenge?address=&chainId= - the endpoint returns a
noncevalue in JSON that must be signed with the same credentials - submit your signed message to [POST]
/loginin a JSON object assignaturealong with the unsignednonce, originaladdressandchainId - the endpoint returns a time sensetive
tokenvalue in JSON if the signature is valid - until expiration (typically 15 minutes) you may use the JWT as
Bearer {token}inAuthorizationheader via [POST] to any of the API endpoints for authorization - at this point the merchant may validate that the
Addressexists on thechainId... holds some token... in some amount
The flow above allows you to prove you own the account in question and can make payment if required. Payments may be made on a per-request basis or deducted from an allocation, depending on the api.
- Submit a proper request to the API endpoint with the JWT as
Bearer {token}inAuthorizationheader via [POST]. - If your request is missing anything, an error should specify the issue; otherwise, a request for payment will be issued in JSON (with
payTo/chainId/cost/jobId/expiresInvalues) along with a requeststatusUrlto track progress. - You must make the payment in the exact
costamount, to the exactpayToaddress, on the properchainIdand pay the gas fees. - The system will periodically check if payment has been made (from specified wallet in specified amount in specified token on specified chain) until the expiration time. If payment is detected, the
statuswill change topaidand atxHashwill be returned including the url where you can find the completed work.
- If the fee is a known or fixed
costto a knownpayToaddress on a knownchainId, you may pre-pay it and include thetxHashvalue in the original request as confirmation of prepayment. The transaction must be in the latest block or an immediate predecessor.
1X)
- You may include the
txHashvalue in a [POST] request to thestatusUrlas confirmation of payment. The transaction must be in the latest block or an immediate predecessor and match the exactpayToaddress, on the properchainId. If thecostamount is greater than expected or from a differentaddressthan expected, the job may still complete with some delay.
- If the job is not complete, a credit request can be submitted by [POST] to the
statusUrlspecifying thetxHash,creditRequestReasonandcontactEmailAddress. This will queue a support ticket which will eventually get review.