1. Home
  2. Docs
  3. Enterprise Wallet
  4. Developer Documentation
  5. API Authentication

API Authentication

Before you begin, you need to set up an enterprise account by signing up at https://accounts.coinome.com. After setting 2-factor authentication, Click on the menu and navigate to enterprise wallet.

We need an Access Token to communicate with Enterprise Wallet via API.

Access Token

Click on the Applications under Developers menu, to show a new application form.

Fig 1: New application form.

Fill in the application name and submit to view the application details.

Fig 2: Application details.

Click on authorize button on application details to reveal the Authorization Code.

Fig 3: Authorization code.

Get Application UID, Secret from Fig 2 and Authorization code from Fig 3 to create access token request.

Request Type and Endpoint

POST /developer/oauth/token
Request – Response Example
APP_UID=4c8564a74e274271c201c879d655e16eaf1a8d3235eed5d9b83ab3374b3c5a71  
APP_SECRET=3736dd89a51faae9b04ff7f5071f3e463705870d6e5f08e42159363efe11246c
REDIRECT=urn:ietf:wg:oauth:2.0:oob  
CODE=0b8020dde0bd44292b29aa4f68386a7521c1c7f45d990ec662ef8d5945c211ef

curl -F grant_type=authorization_code \
-F client_id=$APP_UID \
-F client_secret=$APP_SECRET \
-F code=$CODE \
-F redirect_uri=urn:ietf:wg:oauth:2.0:oob \
-X POST https://coinome.com/wallet/developer/oauth/token
{
    "access_token": "2c6bbada11f6c21738deea51c215ba664d6f6a4a707e4e5fdc10161ee2bb6abf",
    "token_type": "Bearer",
    "refresh_token": "767377c4e2ba771f431a9bddbb74f8bbf4a47497c7b42ee65137cdcef96430e1",
    "scope": "public",
    "created_at": 1544519236
}

Note: use access_token from the above JSON response for Enterprise Wallet API calls.