Resets the token for an External Application installation.
This is the only way to obtain app token through Management API v3.
Resetting the token is automatically invalidating previously used token and that operation is unreverisble. Can be used to quickly disable the app if for example token has been compromised.
Security
ApiKeyAuth
- Main US regionhttps://subdomain-of-your-account.app.statushub.io/api/v3/hubs/{subdomain}/external_applications/{external_application_slug}/reset_token
- EU regionhttps://subdomain-of-your-account.app-eu1.statushub.io/api/v3/hubs/{subdomain}/external_applications/{external_application_slug}/reset_token
curl -i -X PUT \
'https://subdomain-of-your-account.app.statushub.io/api/v3/hubs/{subdomain}/external_applications/{external_application_slug}/reset_token?api_version=V3-R1' \
-H 'X-API-KEY: YOUR_API_KEY_HERE'OK
One of:
Returned for all External Apps except for Status API.
Status of app:
enabled- Application installations will work for as long as the used token is valid,disabled- Application installations will not work even if used token is valid.
Example:true
Response
{ "enabled": true, "slug": "widget", "token": "0bf65c9c5aca1133e906abf80f02fd9f8066aa94" }