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, explained in the Apps section
If you have not already done it, head towards the Request Portal dashboard and create your account.
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 clicking on your account and then Settings.
You have two API keys, use the Test one to follow this guide.
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.
How to list the requests associated with your identity
Head to the Portal to create a first manual request, and use the snippet below to fetch requests associated with your identity
The expected result should be a list of requests with amounts and currencies. Depending on your currency, some amounts seem too big. We will see later how to display amounts properly.
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.