Reusable messages, invitation notes and emails
List message templates
Lists the user's message templates of one type: message (LinkedIn messages), connect (LinkedIn invitation notes) or email, newest first. Use an id as messageTemplateId in the other operations.
query Parameters
typeoffsetHow many results to skip. Default: 0.
How many results to skip. Default: 0.
limitHow many results to return, from 1 to 100. Default: 50.
How many results to return, from 1 to 100. Default: 50.
searchOnly the templates whose name contains this text.
Only the templates whose name contains this text.
Headers
AuthorizationThe Authorization header is used to authenticate with the API using your API key. Value is of the format Bearer YOUR_KEY_HERE.
List message templates › Responses
List message templates
hasMoreWhether a next page exists: ask for it with offset + limit.
totalHow many results match, across every page, when the list counts them.
Create a message template
Creates a template the user can pick in a campaign step: a LinkedIn message (a text, files, or both), a LinkedIn invitation note (connect), or an email (a subject and an HTML body, with optional files). Its name must not be taken by another template of the same type.
Business problem codes: NAME_TAKEN.
Headers
AuthorizationThe Authorization header is used to authenticate with the API using your API key. Value is of the format Bearer YOUR_KEY_HERE.
Create a message template › Request Body
Decision Table
| Variant | Matching Criteria |
|---|---|
| type = object · requires: type, name | |
| type = object · requires: type, name, note | |
| type = object · requires: type, name, subject +1 more |
typeA LinkedIn message.
nameUp to 50 characters, unique among the user's templates of the same type.
textThe LinkedIn message, up to 8000 characters. {{firstName}}, {{lastName}} and {{company}} are replaced by the prospect's, with an optional fallback after a pipe: {{company|your company}}.
Files sent with the message: at most 4 per template (GIFs and voice notes included) and 5 MB in total.
Create a message template › Responses
Create a message template
Decision Table
| Variant | Matching Criteria |
|---|---|
| type = object · requires: id, name, type +4 more | |
| type = object · requires: id, name, type +1 more | |
| type = object · requires: id, name, type +3 more |
id^[a-f\d]{24}$ · requirednametypeA LinkedIn message.
textEmpty when the message only sends files.
gifCountGIFs added in the app: the API keeps them but cannot add or remove them.
voiceNoteCountVoice notes added in the app: the API keeps them but cannot add or remove them.
Get a message template
Returns one message template of the user, with its text and attachments.
path Parameters
messageTemplateId^[a-f\d]{24}$ · requiredHeaders
AuthorizationThe Authorization header is used to authenticate with the API using your API key. Value is of the format Bearer YOUR_KEY_HERE.
Get a message template › Responses
Get a message template
Decision Table
| Variant | Matching Criteria |
|---|---|
| type = object · requires: id, name, type +4 more | |
| type = object · requires: id, name, type +1 more | |
| type = object · requires: id, name, type +3 more |
id^[a-f\d]{24}$ · requirednametypeA LinkedIn message.
textEmpty when the message only sends files.
gifCountGIFs added in the app: the API keeps them but cannot add or remove them.
voiceNoteCountVoice notes added in the app: the API keeps them but cannot add or remove them.
Update a message template
Changes a template's name or content: send only what changes, an omitted field keeps its value. type must be the template's type. Files are added with addAttachments and removed by id with removeAttachmentIds; the others stay, and so do the GIFs and voice notes added in the app. Campaigns that use the template send the new version.
Business problem codes: NAME_TAKEN.
path Parameters
messageTemplateId^[a-f\d]{24}$ · requiredHeaders
AuthorizationThe Authorization header is used to authenticate with the API using your API key. Value is of the format Bearer YOUR_KEY_HERE.
Update a message template › Request Body
Decision Table
| Variant | Matching Criteria |
|---|---|
| type = object · requires: type | |
| type = object · requires: type | |
| type = object · requires: type |
typeA LinkedIn message.
nameUp to 50 characters, unique among the user's templates of the same type.
textThe LinkedIn message, up to 8000 characters. {{firstName}}, {{lastName}} and {{company}} are replaced by the prospect's, with an optional fallback after a pipe: {{company|your company}}.
Files to add. Files sent with the message: at most 4 per template (GIFs and voice notes included) and 5 MB in total.
removeAttachmentIdsThe id of each attachment to remove. Omit both attachment fields to keep the files as they are.
Update a message template › Responses
Update a message template
Decision Table
| Variant | Matching Criteria |
|---|---|
| type = object · requires: id, name, type +4 more | |
| type = object · requires: id, name, type +1 more | |
| type = object · requires: id, name, type +3 more |
id^[a-f\d]{24}$ · requirednametypeA LinkedIn message.
textEmpty when the message only sends files.
gifCountGIFs added in the app: the API keeps them but cannot add or remove them.
voiceNoteCountVoice notes added in the app: the API keeps them but cannot add or remove them.
Delete a message template
Deletes a template and its attachments, for good. Refused while a running, paused or draft campaign uses it: remove it from those campaigns first.
Business problem codes: TEMPLATE_IN_USE.
path Parameters
messageTemplateId^[a-f\d]{24}$ · requiredHeaders
AuthorizationThe Authorization header is used to authenticate with the API using your API key. Value is of the format Bearer YOUR_KEY_HERE.
Delete a message template › Responses
Delete a message template
