Request Portal simplifies the use of the Request protocol, abstracting all the blockchain complexity. You can create requests and manage your users' requests through a REST API.
Our API accepts JSON-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes and Bearer authentication.
Aside from the guide, you can also consult the Portal API documentation.
All API endpoints are authenticated. Two mechanisms are currently allowed:
- API Key, explained below, to be used for scripting and test purposes
- OAuth, contact us: Join our Discord here
If you have not already done it, head towards Request Finance and create your account, you will need it to get your API keys and pursue the first steps of Request.
Once your account is created, you are able to:
- Create a request, which is useful for manual testing for example
- List requests you sent or received, useful for debugging
- Know your Request identity (cf. below)
- Access your API keys, by going to My Account > API to get your API Key.
Senders and recipients of money transfer requests need a way to trust each other. The identity is how we certify the debtor about the authenticity of the request sender, limiting frauds like SCAM for example. With decentralized integration options (cf. the Request client, end users manage their private keys, but the Portal simplifies their life.
This simplification should be applied with great care, we do not recommend using the Request Portal API for critical cases where a lot of money or public reputation is at stake. If you want full control over the security of your finance, you should handle your keys, and the same applies to your users. Have a look at the integration options to take the best decision.
Head to the Portal to create a first manual request, and use the React snippet below to fetch requests associated with your identity
The expected result should be a list of requests with amounts and currencies. Amounts are not displayed in a user-friendly way, but with all the decimals of their currencies.
As you can see, manipulating requests with the Portal API is very straight-forward. What you can notice is the use of
request.requestInput.currency. We will detail on the next page how to manipulate different details of the request. You can also have more details on the Portal API Docs.