{% extends "base.html" %} {% block title %}API Key Generated - {{ project_name }}{% endblock %} {% block content %}

{% if is_regeneration %} API Key Regenerated Successfully {% else %} API Key Generated Successfully {% endif %}

Save your API key now - it will not be shown again

Important Security Notice

This is the only time you will see your API key. Copy it now and store it securely. If you lose this key, you will need to regenerate it.

API Key Details

  • Name: {{ api_key.name|default:"Unnamed Key" }}
  • Key ID: {{ api_key.prefix }}...****
  • Created: {{ api_key.created_at|date:'F j, Y \a\t g:i A' }}
  • Status: Active

How to use your API key:

Include it in the Authorization header of your HTTP requests:

Authorization: Bearer {{ full_key }}

Security Best Practices

  • Store your API key in environment variables
  • Never commit API keys to version control
  • Use different keys for different environments
  • Rotate your keys regularly
  • Monitor API key usage for unusual activity
  • Revoke compromised keys immediately

Example Usage

cURL:

curl -H "Authorization: Bearer {{ full_key }}" \
     https://api.example.com/v1/endpoint

Python:

import requests

headers = {
    'Authorization': 'Bearer {{ full_key }}'
}
response = requests.get(
    'https://api.example.com/v1/endpoint',
    headers=headers
)
{% endblock %} {% block extra_js %} {% endblock %}