Developers

Developers

API tokens to manage your QR codes programmatically.

@if($newToken)

Your new token — copy it now

This is the only time it will be shown.

{{ $newToken }}
@endif

Create a token

@csrf
@error('name')

{{ $message }}

@enderror

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

Quick start

Authenticate with a Bearer token. Base URL:

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

Endpoints:

  • GET /me — token user and acting account
  • GET /qr-codes — list your codes
  • GET /qr-codes/{id} — code details
  • GET /qr-codes/{id}/analytics — scan stats
  • POST /qr-codes — create (url, link_list, wifi, business, app)
  • PATCH /qr-codes/{id} — update label, content, pause/resume
curl -X POST {{ $apiBase }}/qr-codes \
  -H "Authorization: Bearer <your-token>" \
  -H "Content-Type: application/json" \
  -d '{"label":"Homepage","type":"url","destination_url":"https://example.com"}'

Team access: pass X-Ladill-Account: <owner-user-id>. PDF codes need the web app. Regenerate tokens to get write access if yours only has read.