Getting started
The address of the API, your key, and the first calls.
The address of the API
| Environment | Address |
|---|---|
| Staging | https://api-stg.grailnetwork.com |
Staging is the test environment. Its cards and money are not real.
The steps
- Get your API key. A user of your shop makes the key in the shop back office. The key is shown once. Keep it in your server's secrets. See Authentication.
- Call the API from your server only. Your server calls Grail Network. A buyer's browser never gets the key.
- Buy a pack. Get a commitment, then send the pull with your buyer's id. See Purchases of packs.
- Show the cards. The answer of the pull holds every card. Show them to your buyer. Anyone can check the pull with its proof. See Check a pull.