Permanently removes a service authorization token.
https://help.tago.io/portal/en/kb/articles/218-authorization Authorization
If receive an error "Authorization Denied", check policy Service Authorization / Delete in Access Management.
const result = await Resources.serviceAuthorization.tokenDelete("token-xyz-123");
console.log(result); // Token Successfully Removed
Optional
verificationCode: stringUpdates a service authorization token with an optional verification code.
https://help.tago.io/portal/en/kb/articles/218-authorization Authorization
If receive an error "Authorization Denied", check policy Service Authorization / Edit in Access Management.
const result = await Resources.serviceAuthorization.tokenEdit("token-xyz-123", "verification-code");
console.log(result); // Authorization Code Successfully Updated
Optional
query: ListTokenQueryRetrieves a paginated list of all service authorization tokens with filtering and sorting options.
https://help.tago.io/portal/en/kb/articles/218-authorization Authorization
If receive an error "Authorization Denied", check policy Service Authorization / Access in Access Management.
const result = await Resources.serviceAuthorization.tokenList({
page: 1,
fields: ["name", "token"],
amount: 20
});
console.log(result); // [ { name: 'API Service Token', token: 'token-xyz-123' } ]
Description
Generates and retrieves a new service authorization token with specified permissions.
See
https://help.tago.io/portal/en/kb/articles/218-authorization Authorization
Example
If receive an error "Authorization Denied", check policy Service Authorization / Create in Access Management.