%= content_for :page_title, "API Key Created" %> <%= settings_section title: "API Key Created Successfully", subtitle: "Your new API key has been generated successfully." do %>
Your new API key "<%= @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.
<%= @api_key.plain_key %>
<%= render DS::Button.new(
text: "Copy API Key",
variant: "ghost",
icon: "copy",
data: { action: "clipboard#copy" }
) %>
This is the only time your API key will be displayed. Make sure to copy it now and store it securely. If you lose this key, you'll need to generate a new one.
Include your API key in the X-Api-Key header when making requests: