Registering for API Integration

Our customers can use our API to integrate 2ic Pallets with their own app. You will need to request Machine Access from us, while proceeding with initial testing of our API as per access for developers.

Once we have setup your 3rd party app, we will send the client ID and the client secret for you to fetch access tokens from Auth0. A new access token should only be requested once yours has expired. The access token currently lasts for one week. Please advise us of an email address specifically for this eg. 3rd-party-app@yourcompany.com.

Below is the request for an access token:

POST https://auth0.2icsoftware.com/oauth/token
Content-Type: application/json
{
  "audience": "https://api.2icsoftware.com/",
  "grant_type": "client_credentials",
  "client_id": "<YOUR_CLIENT_ID>",
  "client_secret": "<YOUR_CLIENT_SECRET>"
}

Below is the response for a successful request:

HTTP/1.1 200 OK
Content-Type: application/json
{
"access_token": "eyJz93a...k4laUWw",
"token_type": "Bearer",
"expires_in": 86400
}
Last updated on 6/21/2024