Admin Resources
Token information
This resource allows a caller to inspect basic information regarding the
token in use. It will only return a single object related to the calling token ( ie - a call with api_token.id=1 will only return information regarding api_token.id=1.#The Token information object
Object containing a token's information.
Attributes
- clientobjectDetails of the client which generated the token.If the API token was generated by an OAuth app, the object will contain associated client information.
If the API token was generated by the merchant, the object will reflect thenameprefaced by '[Private App]' andcontact_emailof the token. - contact_emailstringThe email associated with the API Token record.For tokens created via OAuth App the contact can be
null - namestringThe name of the API Token as created by merchant.
- scopesarrayA list of scopes on the API Token.
{
"client": {
"name": "PARTNER",
"contact_email": "ed@partner.com"
},
"contact_email": "jbluhm@example.com",
"name": "token name",
"scopes": [
"read_store",
"write_payment_methods"
]
}curl 'https://api.rechargeapps.com/token_information' \
-H 'X-Recharge-Access-Token: your_api_token'{
"token_information": {
"name": "token name",
"client": {
"name": "PARTNER",
"contact_email": "ed@partner.com"
},
"contact_email": "jbluhm@example.com",
"scopes": [
"read_shop",
"write_payments"
]
}
}