Generate outreach messages
Start asynchronous AI outreach generation for one or more personnel records, with optional event context.
Use this endpoint after personnel selection when the integration needs personalized email or LinkedIn copy. Submit up to 2,000 personnel IDs, choose email, linkedin_message, or both, and optionally provide event_id, LinkedIn variants (inmail, connection_note, connected_message), and an outreach purpose. The operation does not deduct credits.
Each personnel item can succeed or fail independently and may create background work. Store returned task identifiers and retrieve the latest generated content with the outreach detail endpoint. Generating content does not send or contact the person.
Authorizations
Send the full Business API key from Settings -> API Keys, for example Authorization: Bearer sk_your_api_key.
Headers
Identify the caller as api or agent for usage attribution. Defaults to api when omitted.
api, agent Body
Batch AI outreach generation request for selected channels and personnel.
Lensmor personnel identifiers selected for this batch operation. The runtime accepts an empty array, but useful generation requires at least one identifier.
2000Output channels to generate: email, linkedin_message, or both. The runtime accepts an empty array, but an empty array creates no useful output.
email, linkedin_message Optional internal Lensmor event row identifier from the event response id field. This endpoint currently converts the value directly to BigInt; unlike most event-scoped routes, it does not resolve public eventId. Omit it to skip membership validation and event context.
^[0-9]+$"501"
LinkedIn variants to generate: inmail, connection_note, and/or connected_message.
inmail, connection_note, connected_message Optional offer, call-to-action, or purpose context used to personalize the drafts.
"Invite the contact to a product demo"
Response
Outreach message generation accepted
Item-level outreach generation submissions and optional batch task identity.