FEQ API

tRPC-powered API service for FEQ applications

Available Endpoints

GET
/trpc/health.check

Health check

GET
/trpc/health.ping

Ping endpoint

POST
/trpc/leads.createFromWebsite

Create lead (public)

GET
/trpc/leads.list

List leads (auth required)

GET
/trpc/applications.list

List applications (auth required)

GET
/trpc/users.me

Get current user (auth required)

Usage

This API is designed to be consumed via the @feq/api-client package, which provides a typed tRPC client.

import { createApiClient } from '@feq/api-client';

const api = createApiClient('http://localhost:5179/trpc', token);

// Type-safe API calls
const user = await api.users.me.query();
const leads = await api.leads.list.query({ limit: 10 });