$user->getKey(), 'name' => $name ?: 'Private endpoint', 'token' => $token, 'token_hash' => WebhookEndpoint::tokenHash($token), 'is_public' => false, 'expires_at' => null, 'response_headers' => ['Content-Type' => 'application/json'], 'response_body' => '{}', ]); } }