@extends('layouts.email') @section('title', 'Developers โ€” Ladill Email') @section('content')

Developers

API tokens to manage your mailboxes programmatically.

@if($newToken)

Your new token โ€” copy it now

This is the only time it will be shown.

{{ $newToken }}
@endif {{-- Create --}}

Create a token

@csrf
@error('name')

{{ $message }}

@enderror
{{-- Tokens --}}

Your tokens

@forelse($tokens as $token)

{{ $token->name }}

Created {{ $token->created_at->diffForHumans() }} ยท {{ $token->last_used_at ? 'last used '.$token->last_used_at->diffForHumans() : 'never used' }}

@empty

No tokens yet.

@endforelse
{{-- Docs --}}

Quick start

Authenticate with a Bearer token. Base URL:

{{ $apiBase }}
curl {{ $apiBase }}/mailboxes \
  -H "Authorization: Bearer <your-token>" \
  -H "Accept: application/json"

Endpoints: GET /me, GET /mailboxes. More coming soon.

@endsection