> ## Documentation Index
> Fetch the complete documentation index at: https://docs.fuseai.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Send a new message

> Sends a new message on one channel. Email: from one of your mailboxes (`from`, as GET /business/accounts?channel=email lists it) to `to`, with optional `cc` / `bcc`, under the app's send rules (see the reply route); `scheduledDateTime` stores the email to go out at that time, as the app's Send later does. The email starts its own thread, which the provider names as it sends, so `conversationId` is null: it appears in GET /business/conversations?channel=email&folder=sent once it goes out, and a scheduled email is not listed before then. LinkedIn: starts a chat with the person at `linkedinUrl` from the LinkedIn account `accountId`, your own or one shared with you with inbox access, and sends `content` as its first message, within that account's message allowances. `inMail: true` sends an InMail instead, with an optional `subject`, to someone the account is not connected to; it spends one of the account's InMail credits. Send an `X-Idempotency-Key` header of 8 to 200 characters to make retries safe: the same request with the same key within 24 hours answers the first result and sends nothing, and the key on a different request answers 409. A first request refused before anything was sent (any 4xx) can be retried under its key; one that failed in a way that may still have sent it answers 409 `IDEMPOTENCY_KEY_OUTCOME_UNKNOWN` instead of sending again. Rate limit: 20 requests per minute, 600 per day, shared by every send route.

Errors:
- `422` `VALIDATION_FAILED` — A field the channel needs is missing (email: `from`, `to`, `subject`; LinkedIn: `accountId`, `linkedinUrl`), a field of the other channel was sent, `content` is blank or too long, an address is not an email address, `linkedinUrl` is not a LinkedIn profile URL, a LinkedIn `subject` was sent without `inMail: true`, the body carries another field, or the `X-Idempotency-Key` header was sent with a value outside 8-200 characters, or twice.
- `409` `IDEMPOTENCY_KEY_IN_USE` — A request with this `X-Idempotency-Key` is still sending; retry it shortly to get its result. If it keeps answering this, the first request stopped before its result was recorded: check whether it was sent before sending again with a new key.
- `409` `IDEMPOTENCY_KEY_REUSED` — This `X-Idempotency-Key` was sent in the last 24 hours with a different request; nothing was sent.
- `409` `IDEMPOTENCY_KEY_OUTCOME_UNKNOWN` — The first request with this `X-Idempotency-Key` failed in a way that may still have sent it (a server error or a timeout), so nothing more was sent. Check whether it was sent before sending again with a new key.
- `404` `MAILBOX_NOT_FOUND` — The mailbox to send from is not yours, or not shared with you with inbox access.
- `422` `INVALID_RECIPIENT` — No recipient is a valid email address.
- `422` `RECIPIENT_UNSUBSCRIBED` — A recipient opted out of email from your team; nothing was sent. A reply in a conversation they wrote into after opting out can still go.
- `429` `MAILBOX_RATE_LIMITED` — The mail provider throttled the mailbox; nothing was sent and, as in the app, its campaign sends are paused.
- `422` `MAILBOX_NEEDS_RECONNECT` — The mailbox's provider connection lapsed or rejected the send, and the app disconnected it; reconnect it in the app.
- `422` `MAILBOX_TEMPORARILY_UNAVAILABLE` — The mail provider is refusing the mailbox for now; nothing was sent. Retry in a few minutes.
- `404` `LINKEDIN_ACCOUNT_NOT_FOUND` — `accountId` is not a LinkedIn account you own or that is shared with you to send from.
- `403` `LINKEDIN_PERMISSION_DENIED` — `accountId` is shared with you for campaigns only; a new chat, like a reply, needs inbox access.
- `422` `LINKEDIN_ACCOUNT_DISCONNECTED` — The LinkedIn account is disconnected; reconnect it in the app.
- `429` `LINKEDIN_ACCOUNT_RATE_LIMITED` — LinkedIn is limiting the account for now and Fuse holds its sends, for up to a day; nothing was sent. Retry-After, when present, is the seconds left until the hold ends.
- `422` `LINKEDIN_MESSAGE_LIMIT_REACHED` — The LinkedIn account has sent its daily or weekly messages; retry once they refill.
- `422` `LINKEDIN_INMAIL_NOT_AVAILABLE` — InMail needs a Premium, Sales Navigator or Recruiter account, and this one has none.
- `422` `LINKEDIN_INMAIL_LIMIT_REACHED` — The account has no InMail credits left, or has sent its daily, weekly or monthly InMails.
- `422` `LINKEDIN_PROFILE_NOT_FOUND` — LinkedIn found no profile at `linkedinUrl` (renamed or removed); nothing was sent.
- `429` `RATE_LIMITED` — Too many sends: the quota every send route shares (20 per minute, 600 per day) or, on LinkedIn, the LinkedIn service's own per-user send limit was exceeded. Retry after the Retry-After / RateLimit-Reset seconds when present, else after a minute.

Requires one of the following token scopes: inbox.



## OpenAPI

````yaml /openapi.json post /business/messages
openapi: 3.1.0
info:
  title: Fuse Business API
  version: 1.0.0
  description: >-
    External API for lists, campaigns, prospect search and contacts.
    Authenticate with your API token as HTTP Basic. All paths are under /api/v1.
servers:
  - url: https://api.tryfuse.ai/api/v1
    description: Production
security:
  - basicAuth: []
tags:
  - name: Lists
  - name: Custom columns
  - name: Smart columns
  - name: Exports
  - name: Campaigns
  - name: Knowledge hubs
  - name: Analytics
  - name: Website intent
  - name: LinkedIn
  - name: Conversations
  - name: Account
  - name: Sending accounts
  - name: Data
  - name: Prospect search
  - name: Campaign steps
  - name: Scheduled sends
  - name: Campaign templates
  - name: Tracking domains
  - name: Agents
  - name: Research
  - name: Company search
  - name: Saved searches
  - name: Folders
  - name: Exclusions
  - name: Contacts
paths:
  /business/messages:
    post:
      tags:
        - Conversations
      summary: Send a new message
      description: >-
        Sends a new message on one channel. Email: from one of your mailboxes
        (`from`, as GET /business/accounts?channel=email lists it) to `to`, with
        optional `cc` / `bcc`, under the app's send rules (see the reply route);
        `scheduledDateTime` stores the email to go out at that time, as the
        app's Send later does. The email starts its own thread, which the
        provider names as it sends, so `conversationId` is null: it appears in
        GET /business/conversations?channel=email&folder=sent once it goes out,
        and a scheduled email is not listed before then. LinkedIn: starts a chat
        with the person at `linkedinUrl` from the LinkedIn account `accountId`,
        your own or one shared with you with inbox access, and sends `content`
        as its first message, within that account's message allowances. `inMail:
        true` sends an InMail instead, with an optional `subject`, to someone
        the account is not connected to; it spends one of the account's InMail
        credits. Send an `X-Idempotency-Key` header of 8 to 200 characters to
        make retries safe: the same request with the same key within 24 hours
        answers the first result and sends nothing, and the key on a different
        request answers 409. A first request refused before anything was sent
        (any 4xx) can be retried under its key; one that failed in a way that
        may still have sent it answers 409 `IDEMPOTENCY_KEY_OUTCOME_UNKNOWN`
        instead of sending again. Rate limit: 20 requests per minute, 600 per
        day, shared by every send route.


        Errors:

        - `422` `VALIDATION_FAILED` — A field the channel needs is missing
        (email: `from`, `to`, `subject`; LinkedIn: `accountId`, `linkedinUrl`),
        a field of the other channel was sent, `content` is blank or too long,
        an address is not an email address, `linkedinUrl` is not a LinkedIn
        profile URL, a LinkedIn `subject` was sent without `inMail: true`, the
        body carries another field, or the `X-Idempotency-Key` header was sent
        with a value outside 8-200 characters, or twice.

        - `409` `IDEMPOTENCY_KEY_IN_USE` — A request with this
        `X-Idempotency-Key` is still sending; retry it shortly to get its
        result. If it keeps answering this, the first request stopped before its
        result was recorded: check whether it was sent before sending again with
        a new key.

        - `409` `IDEMPOTENCY_KEY_REUSED` — This `X-Idempotency-Key` was sent in
        the last 24 hours with a different request; nothing was sent.

        - `409` `IDEMPOTENCY_KEY_OUTCOME_UNKNOWN` — The first request with this
        `X-Idempotency-Key` failed in a way that may still have sent it (a
        server error or a timeout), so nothing more was sent. Check whether it
        was sent before sending again with a new key.

        - `404` `MAILBOX_NOT_FOUND` — The mailbox to send from is not yours, or
        not shared with you with inbox access.

        - `422` `INVALID_RECIPIENT` — No recipient is a valid email address.

        - `422` `RECIPIENT_UNSUBSCRIBED` — A recipient opted out of email from
        your team; nothing was sent. A reply in a conversation they wrote into
        after opting out can still go.

        - `429` `MAILBOX_RATE_LIMITED` — The mail provider throttled the
        mailbox; nothing was sent and, as in the app, its campaign sends are
        paused.

        - `422` `MAILBOX_NEEDS_RECONNECT` — The mailbox's provider connection
        lapsed or rejected the send, and the app disconnected it; reconnect it
        in the app.

        - `422` `MAILBOX_TEMPORARILY_UNAVAILABLE` — The mail provider is
        refusing the mailbox for now; nothing was sent. Retry in a few minutes.

        - `404` `LINKEDIN_ACCOUNT_NOT_FOUND` — `accountId` is not a LinkedIn
        account you own or that is shared with you to send from.

        - `403` `LINKEDIN_PERMISSION_DENIED` — `accountId` is shared with you
        for campaigns only; a new chat, like a reply, needs inbox access.

        - `422` `LINKEDIN_ACCOUNT_DISCONNECTED` — The LinkedIn account is
        disconnected; reconnect it in the app.

        - `429` `LINKEDIN_ACCOUNT_RATE_LIMITED` — LinkedIn is limiting the
        account for now and Fuse holds its sends, for up to a day; nothing was
        sent. Retry-After, when present, is the seconds left until the hold
        ends.

        - `422` `LINKEDIN_MESSAGE_LIMIT_REACHED` — The LinkedIn account has sent
        its daily or weekly messages; retry once they refill.

        - `422` `LINKEDIN_INMAIL_NOT_AVAILABLE` — InMail needs a Premium, Sales
        Navigator or Recruiter account, and this one has none.

        - `422` `LINKEDIN_INMAIL_LIMIT_REACHED` — The account has no InMail
        credits left, or has sent its daily, weekly or monthly InMails.

        - `422` `LINKEDIN_PROFILE_NOT_FOUND` — LinkedIn found no profile at
        `linkedinUrl` (renamed or removed); nothing was sent.

        - `429` `RATE_LIMITED` — Too many sends: the quota every send route
        shares (20 per minute, 600 per day) or, on LinkedIn, the LinkedIn
        service's own per-user send limit was exceeded. Retry after the
        Retry-After / RateLimit-Reset seconds when present, else after a minute.


        Requires one of the following token scopes: inbox.
      operationId: sendMessage
      parameters:
        - name: X-Idempotency-Key
          in: header
          required: false
          description: >-
            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.
          schema:
            type: string
            minLength: 8
            maxLength: 200
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                channel:
                  type: string
                  enum:
                    - email
                    - linkedin
                  description: >-
                    `email` or `linkedin`: the inbox shows the two channels in
                    separate tabs, so each call works on one.
                content:
                  type: string
                  maxLength: 100000
                  description: >-
                    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 <p>). LinkedIn: plain text, up to
                    8000 characters.
                from:
                  type: string
                  format: email
                  maxLength: 320
                  description: >-
                    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).
                to:
                  type: array
                  items:
                    type: string
                    format: email
                    maxLength: 320
                    description: A bare email address, up to 320 characters.
                  maxItems: 50
                  minItems: 1
                  description: Email only, required. The recipients, 1 to 50 addresses.
                cc:
                  type: array
                  items:
                    type: string
                    format: email
                    maxLength: 320
                    description: A bare email address, up to 320 characters.
                  maxItems: 50
                  description: Email only. Addresses to copy, up to 50.
                bcc:
                  type: array
                  items:
                    type: string
                    format: email
                    maxLength: 320
                    description: A bare email address, up to 320 characters.
                  maxItems: 50
                  description: Email only. Addresses to blind-copy, up to 50.
                subject:
                  type: string
                  maxLength: 998
                  description: >-
                    Email: required, the subject line (up to 998 characters).
                    LinkedIn: only with `inMail: true`, the InMail's subject (up
                    to 200 characters).
                scheduledDateTime:
                  type: string
                  format: date-time
                  description: >-
                    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:
                  type: string
                  minLength: 1
                  maxLength: 100
                  description: >-
                    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.
                linkedinUrl:
                  type: string
                  maxLength: 500
                  description: >-
                    LinkedIn only, required. The LinkedIn profile URL of the
                    person to message, for example
                    `https://www.linkedin.com/in/jane-doe` (max 500 characters).
                inMail:
                  type: boolean
                  description: >-
                    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.
              required:
                - channel
                - content
      responses:
        '201':
          description: Success
          headers:
            RateLimit-Limit:
              schema:
                type: integer
              description: Requests permitted in the current window.
            RateLimit-Remaining:
              schema:
                type: integer
              description: Requests remaining in the current window.
            RateLimit-Reset:
              schema:
                type: integer
              description: Seconds until the current window resets.
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: object
                    properties:
                      channel:
                        type: string
                        enum:
                          - email
                          - linkedin
                      conversationId:
                        type:
                          - string
                          - 'null'
                        description: >-
                          The conversation the message is in; null for a new
                          email, whose thread the provider names as it sends.
                      messageId:
                        type:
                          - string
                          - 'null'
                        description: >-
                          The message's id: the provider's for an email (null
                          while scheduled), LinkedIn's for a new chat, null for
                          a LinkedIn reply.
                      status:
                        type: string
                        enum:
                          - sent
                          - scheduled
                    required:
                      - channel
                      - conversationId
                      - messageId
                      - status
                required:
                  - message
              example:
                message:
                  channel: linkedin
                  conversationId: Xk3bQ8sLR2iT0aVw9yZp4A
                  messageId: '7393120458812637184'
                  status: sent
        '400':
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '402':
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '422':
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - basicAuth: []
components:
  schemas:
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
            message:
              type: string
            param:
              type:
                - string
                - 'null'
            doc_url:
              type:
                - string
                - 'null'
            request_id:
              type:
                - string
                - 'null'
          required:
            - code
            - message
      required:
        - error
  securitySchemes:
    basicAuth:
      type: http
      scheme: basic
      description: >-
        Your API token (`af_…`) as the Basic-auth username, with an empty
        password.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.