@extends('admin.layouts.app') @section('title', 'Automation Traffic') @section('page_title', 'Automation Traffic') @push('styles') @endpush @section('content') @include('admin.automation._nav') @php $canInspect = auth('admin')->user()?->can('automation.inspect_payload') === true; $activeFilters = collect($filters)->filter(fn($value) => $value !== null && $value !== '')->count(); @endphp

API & webhook execution ledger

Every n8n-facing request and outbound delivery is recorded here. Open an exchange to inspect its redacted request payload, response payload, status and related Application activity.

Observability active
↔
{{ number_format($metrics['matching']) }}Matching exchanges
✓
{{ number_format($metrics['successful']) }}Successful HTTP
!
{{ number_format($metrics['blocked']) }}Blocked by policy
×
{{ number_format($metrics['failed']) }}Failed / conflict

Filter traffic

{{ $activeFilters ? $activeFilters.' active filter(s)' : 'Showing all recent traffic' }}
@if($activeFilters)Reset@endif

Execution history

Newest first · {{ number_format($rows->total()) }} result(s)
@if($rows->isEmpty())

No matching API traffic

Adjust the filters or wait for the next n8n/API exchange.

@else
@foreach($rows as $exchange) @php $status = (int) ($exchange->http_status ?? 0); $httpClass = $status === 0 ? 'none' : ($status < 300 ? 'ok' : ($status < 400 ? 'redirect' : 'error')); $outcomeClass = in_array($exchange->outcome, ['accepted','succeeded','executed','success'], true) ? $exchange->outcome : (in_array($exchange->outcome, ['blocked','pending_approval','retrying','failed','conflict','rejected'], true) ? $exchange->outcome : 'default'); @endphp @endforeach
TimeFlowAPI operationContextOutcomeHTTP / latencyCorrelationPayload
{{ optional($exchange->occurred_at)->format('d M Y') ?: 'No date' }}{{ optional($exchange->occurred_at)->format('H:i:s') ?: '-' }} {{ $exchange->direction === 'inbound' ? '→ Inbound' : '← Outbound' }}
{{ ucfirst($exchange->transport ?: 'api') }}
{{ \Illuminate\Support\Str::of($exchange->endpoint_key ?: $exchange->integration)->replace(['api.v1.ai.','n8n.'], '')->replace(['.','_'], ' ')->headline() }}{{ $exchange->http_method ?: 'CALL' }} {{ $exchange->endpoint_path ?: $exchange->endpoint_key }} {{ $exchange->startup?->name ?: 'No startup linked' }}Application {{ $exchange->startup_investment_round_id ? '#'.$exchange->startup_investment_round_id : 'N/A' }} · {{ $exchange->agent?->agent_code ?: 'No Agent' }} {{ \Illuminate\Support\Str::of($exchange->outcome ?: 'unknown')->replace('_',' ')->headline() }} {{ $exchange->http_status ?: 'N/A' }}{{ $exchange->latency_ms === null ? 'No timing' : $exchange->latency_ms.' ms' }} {{ $exchange->correlation_id ?: $exchange->request_id ?: 'Not set' }} @if($canInspect)Inspect API@elsePermission required@endif
@endif @if($rows->hasPages())
{{ $rows->links() }}
@endif
@endsection @push('scripts') @endpush