https://help.tago.io/portal/en/kb/articles/106-sharing-your-profile Team Management - Sharing your Profile
Optional
filterObj: AuditLogFilterhttps://help.tago.io/portal/en/kb/articles/audit-log Audit Log
Optional
queryId: stringhttps://help.tago.io/portal/en/kb/articles/audit-log Audit Log
Optional
options: { allocate_free_resources?: boolean }https://help.tago.io/portal/en/kb/articles/198-profiles#Adding_Profiles Adding Profiles
https://help.tago.io/portal/en/kb/articles/526-two-factor-authentication Two-Factor Authentication (2FA)
https://help.tago.io/portal/en/kb/articles/106-sharing-your-profile Team Management - Sharing your Profile
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', ...}, ... }
https://help.tago.io/portal/en/kb/articles/106-sharing-your-profile Team Management - Sharing your 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', ... }
https://help.tago.io/portal/en/kb/articles/495-account-token Account Token
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', ... }, ... ]
Optional
dateObj: StatisticsDateRetrieves 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.
If 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, ... }, ... ]
Description
Updates the add-on configuration for a profile.
Deprecated
This route is deprecated.