{% extends "base.html" %} {% block content %} {% set network_data = response_data(network) %} {% set profile_data = response_data(profile) %} {% set balance_data = response_data(balance) %} {% set network_error = response_error(network) %} {% 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 account_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 %}

Dashboard

Account health check. Demonstrates octa_client resource calls in the Python dummy app with runtime real/mock transport switching.

{% if playground_mock_active %} Mock transport active — {{ playground_transport_label }} {% elif playground_api_key_present %} API key set — {{ settings.base_url }} {% else %} No API key — enter one in the sidebar to test authenticated endpoints {% endif %} {% if playground_mock_active %} Mock: {{ playground_mock_scenario }} {% endif %}

Network Stats

public
octa_client.network.info
Open
{% if network_error %} {% set error = network_error %} {% set max_height = "max-h-40" %} {% include "shared/error_card.html" %} {% elif network_data %} {% set data = network_data %} {% set max_height = "max-h-40" %} {% include "shared/json_viewer.html" %} {% else %}
No network payload available.
{% endif %}
{% set title = "Account" %} {% set hook = "octa_client.accounts.profile" %} {% set data = profile_data %} {% set error = profile_error %} {% set locked = not playground_api_key_present %} {% set tab_param = "account_tab" %} {% set current_tab = request.query_params.get("account_tab", "formatted") %} {% set empty_copy = "Account data is unavailable." %} {% set locked_copy = "Enter an API key in the sidebar to load this resource" %} {% set badge = none %} {% set formatted = account_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 = "Balance data is unavailable." %} {% 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 %}