linkedin

Send LinkedIn InMail

Transport: call this endpoint with HTTP POST and a JSON request body. Send a LinkedIn InMail to a non-connection using a Premium or Sales Navigator account. This is a separate, explicit action from linkedin_send_message and may consume InMail credits. REQUIRES confirmations.requestAction first for public REST calls. Public REST flow: first call confirmations.requestAction with the exact payload you intend to execute. If Autopilot returns approved=true, retry this endpoint immediately with confirmation_id. Otherwise wait for approval_url to be approved in Zevari, then retry with confirmation_id.

post/v1/linkedin/sendInMail

Request

  • Base URL: https://api.zevari.ai
  • URL: https://api.zevari.ai/v1/linkedin/sendInMail
  • Auth: HTTP bearer

Request body

recipientIdstring

LinkedIn provider ID for the recipient. Classic/Premium usually uses ACo...; Sales Navigator uses ACw...; staging can convert a classic ACo... ID for Sales Navigator accounts.

identifierstring

LinkedIn public identifier, profile URL, Sales Navigator lead URL, or provider ID. Staging resolves it to the product-specific provider ID before approval.

messagestring required

InMail message body

subjectstring

Optional InMail subject when supported by the selected LinkedIn API mode

linkedin_api'classic' | 'sales_navigator' | 'recruiter'

LinkedIn API mode for InMail. Defaults from the active LinkedIn account tier: premium -> classic, sales_navigator -> sales_navigator.

confirmation_idstring

REQUIRED. ID from confirmations.requestAction. You MUST call confirmations.requestAction FIRST with the exact payload you intend to send, return the data.approval_url to the user, and wait for them to approve. Only then call this tool with the confirmation_id. Without it, this tool returns an error.

bulk_item_idstring

Set when confirmation_id refers to a bulk_actions parent (from confirmations.requestAction). Identifies the per-item child to consume — e.g. 'itm_03'. Omit for single-action confirmations.

Response

Successful Zevari API response.

okboolean required

False when the underlying tool reports an error or a partial failure.

methodstring required

Public API method name.

dataunknown required
request_idstring required

Request correlation ID. Also returned in X-Zevari-Request-Id.

Example response

{
  "method": "campaigns.delete"
}

Changes

No recorded changes to this operation across all 1 revision of this API.