An API Key can be used with the Neocities API to allow for changes to your site without requiring login credentials. This API key allows full write access to your site. Keep it secret, keep it safe.
<% if @site.api_key %>Your API key:
<%= @site.api_key %>
If you need to regenerate the key for some reason, you can do that below. Keep in mind that this will make the old key no longer function.
<%== erb :'settings/site/_api_key_form', layout: false %> <% else %>You haven't yet generated an API key, click the button to create one:
<%== erb :'settings/site/_api_key_form', layout: false %> <% end %>