- Webhook route at
apps/web/src/app/api/linkedin-webhook/route.js. - Functions provide helpers for LinkedIn post generation/storage.
Webhook: Next.js route
- Route:
POST /api/linkedin-webhook - Body:
{ uid, businessId, linkedinUrl, metadataName } - Behavior: forwards to n8n workflow
https://n8n.variantai.io/webhook/participant-ragwith a permissive TLS agent for self-signed certs.
Company LinkedIn Posts Storage
- Collection:
businesses/{businessId}/companyLinkedInPosts/{documentId} - Fields:
content,createdAt,url,used,exclude - Endpoints:
POST /createCompanyLinkedInPostPOST /getLinkedInPostPOST /getUnusedLinkedInPostPOST /updateLinkedInPost
These endpoints are protected via x-api-key and intended for ingestion and lifecycle management of LinkedIn content used by the generator.