Retrieves a list of all add-ons associated with the profile.
Adds a new team member to the profile using their email address.
https://help.tago.io/portal/en/kb/articles/106-sharing-your-profile Team Management - Sharing your Profile
Creates a new audit log query for tracking profile activities.
Optional
filterObj: AuditLogFilterhttps://help.tago.io/portal/en/kb/articles/audit-log Audit Log
Retrieves audit log entries using a previously created query.
Optional
queryId: stringhttps://help.tago.io/portal/en/kb/articles/audit-log Audit Log
Creates a new profile with the specified name and optional resource allocation settings.
Optional
options: { allocate_free_resources?: boolean }https://help.tago.io/portal/en/kb/articles/198-profiles#Adding_Profiles Adding Profiles
Permanently removes a profile from the account.
https://help.tago.io/portal/en/kb/articles/526-two-factor-authentication Two-Factor Authentication (2FA)
Removes a team member from the profile.
https://help.tago.io/portal/en/kb/articles/106-sharing-your-profile Team Management - Sharing your Profile
Updates profile information with the provided data.
https://help.tago.io/portal/en/kb/articles/198-profiles#Renaming_your_Profiles Renaming your Profiles
Retrieves detailed information about a specific profile using its ID or 'current' for the active profile.
If receive an error "Authorization Denied", check policy Account / Access profile in Access Management.
const profileInfo = await Resources.profiles.info("profile-id-123");
// Or get current profile
const currentProfile = await Resources.profiles.info("current");
console.log(profileInfo); // { info { id: 'profile-id-123', account: 'account-id-123', ...}, ... }
Retrieves a list of all profiles associated with the current account.
Removes an add-on from the profile at the end of the current billing cycle.
Updates service configuration and resource limits for a profile.
Retrieves a summary of the profile's usage and statistics.
Optional
options: { onlyAmount?: boolean }Retrieves a list of all team members that have access to the specified profile.
https://help.tago.io/portal/en/kb/articles/106-sharing-your-profile Team Management - Sharing your Profile
Creates a new authentication token for the specified profile.
const resources = new Resources({ token: "YOUR-PROFILE-TOKEN" });
// The “pin_code” / "otp_type" field is required when 2FA is activated
const result = await resources.profiles.tokenCreate("profile-id-123", {
name: "API Access",
permission: "full",
email: "example@email.com",
password: "your-password"
});
console.log(result); // { token: 'token-value', name: 'API Access', ... }
Revokes and removes an authentication token from the profile.
https://help.tago.io/portal/en/kb/articles/495-account-token Account Token
Retrieves a list of all tokens associated with a specific profile.
Optional
queryObj: ListTokenQueryhttps://help.tago.io/portal/en/kb/articles/495-account-token Account Token
const resources = new Resources({ token: "YOUR-PROFILE-TOKEN" });
const result = await resources.profiles.tokenList("profile-id-123", {
page: 1,
amount: 20,
fields: ["name", "token", "permission"]
});
console.log(result); // [ { name: 'Token #1', token: 'token-value', permission: 'full', ... }, ... ]
Transfers the current authentication token to another profile.
Retrieves usage statistics for a profile within a specified time period.
Usage statistics are cumulative: if a service was not used in a time period, the statistics for that time period will not be in the object.
Optional
dateObj: StatisticsDateIf receive an error "Authorization Denied", check policy Account / Access profile statistics in Access Management.
const result = await Resources.profiles.usageStatisticList("profile-id-123", {
start_date: "2024-09-01",
end_date: "2024-12-31",
periodicity: "day"
});
console.log(result); // [ { time: '2024-09-02T00:01:29.749Z', analysis: 0.07, data_records: 67254, ... }, ... ]
Updates the add-on configuration for a profile.