Obtaining a Token

Obtain access and refresh tokens via the Authorization Code Grant

SecurityApiKey or HMAC
Request
query Parameters
organization_id
required
string

The ID of the organization currently installing the connector app

Example: organization_id=org_ABC
code
required
string

Authorization grant code

Example: code=A1x91jxp91ja
timestamp
required
integer

Timestamp, in an epoch format

Example: timestamp=1628667161
header Parameters
Accept
string
Example: application/json
Responses
200

A successful Bearer token response

400

An invalid HMAC in the request

post/authorize
Request samples
Response samples
application/json
{
  • "token_type": "Bearer",
  • "expires_in": 1295999,
  • "access_token": "def50200c95b7fa2047ffda16acae985bac4a5f6013ec6e778f07adf97417d141a484a08f1906e7f2a31464643cfa0fd3b5f4e44e4a6e9e94205987dd3de0d19101530a79b4d74d64b51c15bbef25aaeb83852dae48a76b9badf71c8787d99d66e0121cfe6617bc894a3435025ba086cf360a50dddb726eaff0401cdfd1aedb750feb28b6daa7715f926364b2b5ec6b3adbb115c4488a20c1722c76d356549552f1ab51cc1cd6de3bd343e5bd002c19e48f575f8566be909a1320c15aeaa226f3716c60ee63da6ea1564b46740d805ec9f9301ac54d871d4e4cd47d0800b014543a34d2f35f828f00b53534456835877832fc68778457ef4dbb18b7c574fc066a5d59e7830b9fbab6b3c92a5a51133f1994314434c0223d4ef042e50a25def9778911e6fe336d004658620ae757da321c2f30dfb06ef39f1b63c7e9ec53e3f79b52c6162c9958f12835871e5bf22c00957282df47b2912f32d2deb8a6cb7c9d738050a10ff2a7f009f76b1c9c452e471b5d4054e976b6b16f7e5137f5e1574b50ce99e3a0cb5c58e85007fc4cc14767a697ec1994ab3e876c7368ffc683cf16b140d",
  • "refresh_token": "def50200c95b7fa2047ffda16acae985bac4a5f6013ec6e778f07adf97417d141a484a08f1906e7f2a31464643cfa0fd3b5f4e44e4a6e9e94205987dd3de0d19101530a79b4d74d64b51c15bbef25aaeb83852dae48a76b9badf71c8787d99d66e0121cfe6617bc894a3435025ba086cf360a50dddb726eaff0401cdfd1aedb750feb28b6daa7715f926364b2b5ec6b3adbb115c4488a20c1722c76d356549552f1ab51cc1cd6de3bd343e5bd002c19e48f575f8566be909a1320c15aeaa226f3716c60ee63da6ea1564b46740d805ec9f9301ac54d871d4e4cd47d0800b014543a34d2f35f828f00b53534456835877832fc68778457ef4dbb18b7c574fc066a5d59e7830b9fbab6b3c92a5a51133f1994314434c0223d4ef042e50a25def9778911e6fe336d004658620ae757da321c2f30dfb06ef39f1b63c7e9ec53e3f79b52c6162c9958f12835871e5bf22c00957282df47b2912f32d2deb8a6cb7c9d738050a10ff2a7f009f76b1c9c452e471b5d4054e976b6b16f7e5137f5e1574b50ce99e3a0cb5c58e85007fc4cc14767a697ec1994ab3e876c7368ffc683cf16b140d"
}
Copyright © Rally Commerce, Inc. 2023. All right reserved.