%= content_for :page_title, "API Key" %> <% if @newly_created && @plain_key %> <%= settings_section title: "API Key Created Successfully", subtitle: "Your new API key has been generated successfully." do %>
Your new API key "<%= @current_api_key.name %>" has been created and is ready to use.
Copy and store this key securely. You'll need it to authenticate your API requests.
<%= @current_api_key.plain_key %>
<%= render DS::Button.new(
text: "Copy API Key",
variant: "ghost",
icon: "copy",
data: { action: "clipboard#copy" }
) %>
Include your API key in the X-Api-Key header when making requests:
<%= @current_api_key.name %>
Created <%= time_ago_in_words(@current_api_key.created_at) %> ago <% if @current_api_key.last_used_at %> • Last used <%= time_ago_in_words(@current_api_key.last_used_at) %> ago <% else %> • Never used <% end %>
Active
Copy and store this key securely. You'll need it to authenticate your API requests.
<%= @current_api_key.plain_key %>
<%= render DS::Button.new(
text: "Copy API Key",
variant: "ghost",
icon: "copy",
data: { action: "clipboard#copy" }
) %>
Include your API key in the X-Api-Key header when making requests:
Generate an API key to integrate with your applications and access your financial data securely.