/api/v1/drafts
Request bodyrequired
| connectedAccountIdrequired | string · uuid The account that sends it. Its channel must match `action`. |
| leadIdrequired | string · uuid The lead it goes to. |
| actionrequired | "linkedin_message" | "linkedin_inmail" | "linkedin_invitation" | "instagram_message" `linkedin_invitation` sends a connection request with `text` as its note. |
| textrequired | string Sent exactly as written, so {{variables}} are not allowed. Up to 300 characters for a connection note and 1900 for an InMail. |
| subjectoptional | string Required for `linkedin_inmail`, not allowed otherwise. |
Response
201Draft created and waiting for review.
| draft | object
| ||||||||||||||||||||||||||||||||||||||
| requestId | string · uuid Id of this request, for support and troubleshooting |
Errors
- 400: Bad request
- 401: Unauthorized: missing or invalid API key
- 403: Forbidden
- 404: Not found
- 409: The lead has no profile on the account’s channel, is on the do-not-contact list, or a campaign step already has a draft waiting in this conversation.
- 422: Invalid request payload