{% extends "base.html" %} {% block content %} {% set profile_data = response_data(profile) %} {% set balance_data = response_data(balance) %} {% set profile_error = response_error(profile) %} {% set balance_error = response_error(balance) %} {% set profile_hash = profile_data or {} %} {% set balance_hash = balance_data or {} %} {% set balance_value = balance_hash.get("balance") or balance_hash.get("amount") or ((balance_hash.values()|list)[0] if balance_hash else None) %} {% set profile_formatted %}
Account UUID {{ profile_hash.get("account_uuid") or profile_hash.get("account", {}).get("uuid") or "—" }}
Email {{ profile_hash.get("email") or profile_hash.get("account", {}).get("email") or "—" }}
Avatar {{ profile_hash.get("avatar") or "—" }}
{% endset %} {% set balance_formatted %}
Balance
{{ balance_value or "—" }}
Currency
{{ balance_hash.get("currency") or balance_hash.get("unit") or "OCTA" }}
{% endset %}

Account

Direct account view for the Python playground. The Dashboard uses the same panels in a condensed layout.

{% set title = "Profile" %} {% set hook = "octa_client.accounts.profile" %} {% set data = profile_data %} {% set error = profile_error %} {% set locked = not playground_api_key_present %} {% set tab_param = "profile_tab" %} {% set current_tab = request.query_params.get("profile_tab", "formatted") %} {% set empty_copy = "No data available." %} {% set locked_copy = "Enter an API key in the sidebar to load this resource" %} {% set badge = none %} {% set formatted = profile_formatted %} {% include "shared/resource_panel.html" %} {% set title = "Balance" %} {% set hook = "octa_client.accounts.balance" %} {% set data = balance_data %} {% set error = balance_error %} {% set locked = not playground_api_key_present %} {% set tab_param = "balance_tab" %} {% set current_tab = request.query_params.get("balance_tab", "formatted") %} {% set empty_copy = "No data available." %} {% set locked_copy = "Enter an API key in the sidebar to load this resource" %} {% set badge = none %} {% set formatted = balance_formatted %} {% include "shared/resource_panel.html" %}
{% endblock %}