AB Tasty icon

AB Tasty

Use the AB Tasty API

Overview

This node integrates with the AB Tasty platform's Public API to programmatically access and manage user data within an account. Specifically, the "Get User" operation retrieves detailed information about a particular user associated with an AB Tasty account.

Common scenarios where this node is beneficial include:

  • Fetching user details for auditing or reporting purposes.
  • Integrating AB Tasty user data into other systems or workflows.
  • Automating user management tasks by retrieving user info before performing updates or access changes.

Practical example:

  • A marketing automation workflow that fetches user details from AB Tasty to personalize campaign targeting based on user attributes stored in AB Tasty.

Properties

Name Meaning
Account ID The numeric identifier of the AB Tasty account to which the user belongs.
User ID The numeric identifier of the specific user within the account whose details are fetched.

Output

The node outputs JSON data representing the user information retrieved from the AB Tasty Public API. The structure typically includes user attributes such as user ID, name, email, roles, and access permissions related to the specified account.

If the API returns no content (e.g., user not found), the output will indicate a "204 No Content" status.

No binary data output is produced by this operation.

Dependencies

  • Requires an API key credential for AB Tasty with client ID and client secret to authenticate via OAuth2 and obtain an access token.
  • The node makes HTTP requests to the AB Tasty Public API endpoints.
  • Proper configuration of the AB Tasty API credentials in n8n is necessary.

Troubleshooting

  • Missing Credentials: If the client ID or client secret is not provided, the node throws an error "Missing Client ID or Client Secret." Ensure these are configured correctly.
  • Missing Required Parameters: The node requires both Account ID and User ID for the "Get User" operation. Omitting either results in errors like "Account ID is required" or "User ID is required."
  • Access Token Retrieval Failure: If the OAuth token request fails, the node throws "Failed to retrieve access token." Verify the credentials and network connectivity.
  • API Errors: Any HTTP or API errors during the request are wrapped and reported with the message prefix "Error calling AB Tasty API," including the original error message and stack trace if available.
  • Invalid JSON Response: If the API response is a string but not valid JSON, the node attempts to return it as plain text.

Links and References

Discussion