Skip to main content

LinkedIn

  • 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-rag with 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 /createCompanyLinkedInPost
    • POST /getLinkedInPost
    • POST /getUnusedLinkedInPost
    • POST /updateLinkedInPost

These endpoints are protected via x-api-key and intended for ingestion and lifecycle management of LinkedIn content used by the generator.