Skip to main content
POST
Send a new message

Authorizations

Authorization
string
header
required

Your API token (af_…) as the Basic-auth username, with an empty password.

Headers

X-Idempotency-Key
string

Makes a retry safe: the same request with the same key within 24 hours answers the first result and sends nothing. 8 to 200 characters; a blank header counts as none.

Required string length: 8 - 200

Body

application/json
channel
enum<string>
required

email or linkedin: the inbox shows the two channels in separate tabs, so each call works on one.

Available options:
email,
linkedin
content
string
required

The message. Email: the body as HTML, as the app's editor writes it (up to 100000 characters; plain text is sent as it is, so wrap paragraphs in

). LinkedIn: plain text, up to 8000 characters.

Maximum string length: 100000
from
string<email>

Email only, required. The mailbox to send from: one you own or that is shared with you with inbox access (GET /business/accounts?channel=email lists them).

Maximum string length: 320
to
string<email>[]

Email only, required. The recipients, 1 to 50 addresses.

Required array length: 1 - 50 elements

A bare email address, up to 320 characters.

Maximum string length: 320
cc
string<email>[]

Email only. Addresses to copy, up to 50.

Maximum array length: 50

A bare email address, up to 320 characters.

Maximum string length: 320
bcc
string<email>[]

Email only. Addresses to blind-copy, up to 50.

Maximum array length: 50

A bare email address, up to 320 characters.

Maximum string length: 320
subject
string

Email: required, the subject line (up to 998 characters). LinkedIn: only with inMail: true, the InMail's subject (up to 200 characters).

Maximum string length: 998
scheduledDateTime
string<date-time>

Email only. When to send (ISO 8601). Omit it to send now; the email is stored and sent at that time, as the app's Send later does.

accountId
string

LinkedIn only, required. The LinkedIn account (seat) to send from, by the id GET /business/accounts?channel=linkedin returns: your own seat, or one shared with you with inbox access.

Required string length: 1 - 100
linkedinUrl
string

LinkedIn only, required. The LinkedIn profile URL of the person to message, for example https://www.linkedin.com/in/jane-doe (max 500 characters).

Maximum string length: 500
inMail
boolean

LinkedIn only. true sends an InMail, which reaches someone you are not connected to and spends one of the seat's InMail credits; it needs a Premium, Sales Navigator or Recruiter seat. Default false: an ordinary message.

Response

Success

message
object
required