@extends('layouts.app') @section('title', 'Webhooks') @section('content')

Webhooks

We send a signed HTTPS POST to your server when an order you placed changes. Verify the signature, then read the order as needed. Delivery is at least once: de-duplicate on the X-Trevo-Delivery header (also id in the body). Full format: API reference → Webhooks.

Add an endpoint ({{ $endpoints->count() }} / {{ $max }})

@csrf
Port 443 only. Addresses on private or internal networks are refused.
@error('url')
{{ $message }}
@enderror @foreach ($events as $ev) @endforeach @error('events')
{{ $message }}
@enderror
@forelse ($endpoints as $e)
{{ $e->url }} {{ $e->is_active ? 'Enabled' : 'Disabled' }}

Events: {{ implode(', ', $e->events) }} · Last success: {{ $e->last_success_at?->diffForHumans() ?? 'never' }} · Last failure: {{ $e->last_failure_at?->diffForHumans() ?? 'never' }}

@csrf
@csrf
@csrf
@csrf @method('DELETE')

Recent deliveries

@forelse ($e->recent as $d) @empty @endforelse
TimeEventStatusAttemptsHTTPNote
{{ $d->created_at->format('d M, H:i') }} {{ $d->event }} {{ $d->status }} {{ $d->attempts }} {{ $d->last_status_code ?? '—' }} {{ $d->last_error ?? '—' }}@if ($d->status === 'pending' && $d->next_attempt_at) · retry {{ $d->next_attempt_at->diffForHumans() }}@endif
No deliveries yet.
@empty

No endpoints yet.

@endforelse @endsection