% if @newly_created && @plain_key %>
API Key Created Successfully
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:
<%= t(".no_api_key.description") %>
<%= t(".no_api_key.security_note") %>