@extends('layouts.app') @section('title', 'API Keys — LoreKeepers') @section('content')

API Keys

Use API keys to access the LoreKeepers API. Keep them secret — treat them like passwords.

@if(session('new_api_key'))
This key will only be shown once. Copy it now.
{{ session('new_api_key') }}
@endif

Your API Keys

@forelse($keys as $key)
{{ $key->name }}
Created {{ $key->created_at->format('M j, Y') }} @if($key->last_used_at) · Last used {{ $key->last_used_at->diffForHumans() }} @else · Never used @endif
@csrf @method('DELETE')
@empty
No API keys yet. Create one below.
@endforelse

Create New Key

@csrf
@error('name')

{{ $message }}

@enderror
@endsection