%= render "secondary_links" %>
An API key is used to give programs access to your <%= Danbooru.config.canonical_app_name %> account.
If you're a developer, you can use an API key to access the <%= link_to_wiki "#{Danbooru.config.canonical_app_name} API", "help:api" %>. If you're not a developer, you probably don't need an API key.
Your API key is like your password. Anyone who has it has full access to your account. Don't give your API key to apps or people you don't trust, and don't post your API key in public locations.
Example usage:
<% if @api_keys.present? %>
<%= profile_url(format: "json", login: CurrentUser.user.name, api_key: @api_keys.first.key) %>
<% else %>
<%= profile_url(format: "json", login: CurrentUser.user.name, api_key: "your_api_key_goes_here") %>
<% end %>
See the <%= link_to_wiki "API documentation", "help:api" %> to learn more.