Create Client Credentials

Client credentials store a unique client_id, secret (if applicable), and details about your app. You’ll need to create WAX client credentials to authenticate users with WAX All Access.

Tip: You can create client credentials for each of your WAX powered apps (up to 20 active OAuth clients per API Account).

To create client credentials, you can use the CreateClient endpoint.

URLs

Environment URL
Sandbox https://api.wax-sandbox.com/IOAuth/CreateClient/v1
Production https://api.opskins.com/IOAuth/CreateClient/v1

Body Parameters

The CreateClient endpoint uses form-urlencoded parameters. Be sure to choose your values carefully - some of these parameters display to the user from the Authorization URL.

Parameter Example Description
name My NFT Marketplace Required string. Name of your app (client). After a user signs into WAX All Access, they're prompted to grant your app access to the scopes you've selected (e.g., My NFT Market Place wants to be able to:).
redirect_uri https://mynftmarketplace.com:1234 Required string. Return URI for your app (client). Once a user approves or denies your app, they're redirected back to this URL.
can_keep_secret true Optional boolean. Defaults to true. Refer to Client Secret for more information.

Request Example


curl -X POST \
  https://api.opskins.com/IOAuth/CreateClient/v1/ \
  -H 'X-API-Key: 999d9ab99cde999a99cb9999df9999' \
  -H 'cache-control: no-cache' \
  -H 'Content-Type: application/x-www-form-urlencoded' \
  --data-urlencode "name=My NFT Marketplace" \
  --data-urlencode "redirect_uri=https://mynftmarketplace.com:1234"

Response


{
    "status": 1,
    "time": 1559757474,
    "response": {
        "client": {
            "client_id": "a909aa99aaa9",
            "name": "My NFT Marketplace",
            "redirect_uri": "https://mynftmarketplace.com:1234",
            "time_created": 1559757474,
            "has_secret": true
        },
        "secret": "AAbAACC!nlvyGY9WaUhtht^5t3YXWsA9"
    }
}

Make sure to keep your client credentials in a safe place - you’ll need them to get a bearer token.

Once you’ve registered your client using the CreateClient endpoint, you can start authorizing users from your app.