Thanks.io MCP by usefulapi

v1.2.1
io.usefulapi/thanks-io Checked 3 days ago Published 1 day ago

Read mailing lists and orders, estimate costs; send postcards and cancel orders in Thanks.io.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

thanksio_list_sub_accounts List sub-accounts

List the sub-accounts of the account (separate senders or clients). Their ids work as sub_account in the order tools. Open API: GET /sub-accounts/.

thanksio_get_sub_account Get sub-account

Get one sub-account by id, with its return address settings. Open API: GET /sub-accounts/{subAccountId}.

ParameterTypeDescription
subAccountId *stringSub-account id, from thanksio_list_sub_accounts.

thanksio_list_mailing_lists List mailing lists

List the mailing lists in the account. Their ids work as mailing_list_ids in the order tools. Open API: GET /mailing-lists/.

ParameterTypeDescription
items_per_pageintegerItems per page (API default when omitted).

thanksio_get_mailing_list Get mailing list

Get one mailing list by id: its description, sub-account and recipient count. Open API: GET /mailing-lists/{mailingListId}.

ParameterTypeDescription
mailingListId *string

thanksio_list_mailing_list_recipients List mailing list recipients

List the recipients of one mailing list. Pass updated_since to get only recent changes. Open API: GET /mailing-lists-utils/recipients/{mailingListId}.

ParameterTypeDescription
mailingListId *string
limitintegerRecipients per page, up to 10000.
updated_sincestringReturn only recipients updated since this time. Format: YYYY-MM-DD HH:MM:SS.

thanksio_get_recipient Get recipient

Get one recipient by id: name, address and custom fields. Open API: GET /recipients/{recipientId}.

ParameterTypeDescription
recipientId *string

thanksio_list_creatives List creatives

List saved creatives (an image template paired with a message template). Pass a creative id as creative_id to send it. Open API: GET /creatives/.

ParameterTypeDescription
complete_onlybooleanOnly creatives that are complete.
include_hiddenbooleanInclude hidden creatives.
mailer_typestringOnly this mailer type, as the API names it (e.g. postcard).
pageintegerPage number, starting at 1.
searchstringSearch text in the creative name.
sub_account_idintegerOnly creatives of this sub-account.

thanksio_get_creative Get creative

Get one creative by id. Open API: GET /creatives/{creativeId}.

ParameterTypeDescription
creativeId *string

thanksio_list_message_templates List message templates

List message templates (the text and handwriting used on the back of a mailer). Open API: GET /message-templates/.

ParameterTypeDescription
items_per_pageintegerItems per page (API default when omitted).
sub_account_idinteger
typestringTemplate type, as the API names it.

thanksio_get_message_template Get message template

Get one message template by id. Open API: GET /message-templates/{messageTemplateId}.

ParameterTypeDescription
messageTemplateId *string

thanksio_list_handwriting_styles List handwriting styles

List the handwriting styles you can pass as handwriting_style_id. Open API: GET /handwriting-styles.

thanksio_list_orders List orders

List recent orders, newest first. Amounts are integer cents. Each order shows its estimated cost and final cost. Open API: GET /orders/list.

ParameterTypeDescription
campaignintegerMailing list id of a campaign. Returns every order that campaign sent, including deleted actions.
creative_idinteger
items_per_pageintegerItems per page (API default when omitted).
sub_account_idinteger
typestringOrder type filter, as the API names it.

thanksio_track_order Track order

Get the printing and delivery status of one order. Open API: GET /orders/{orderId}/track.

ParameterTypeDescription
orderId *stringOrder id, from thanksio_list_orders.

thanksio_list_order_items List order items

List the mail pieces (items) inside one order, with their status. Open API: GET /orders/{orderId}/items.

ParameterTypeDescription
orderId *string
pageintegerPage number, starting at 1.
per_pageintegerItems per page, 1 to 100 (API default 50).

thanksio_estimate_postcard Estimate postcard cost

Estimate the cost of a postcard order to the given recipients or mailing lists. Nothing is sent and nothing is charged. The estimate does not run address lookups, so an email-only recipient is priced as if its address were found. Open API: POST /estimate/postcard.

ParameterTypeDescription
creative_idintegerSaved creative id from thanksio_list_creatives. Recommended for production sends.
custom_background_imagestringURL of a custom background image for the back of the postcard.
email_lookupbooleanLook up a postal address from a recipient's email when no street address is given. Each address found is charged. This tool sends false unless you pass true.
font_sizestringHandwriting size.
front_image_urlstringPublic URL of the front image. Needs the exact pixel size for the postcard size.
handwriting_colorstringHandwriting color name (blue, black, green, purple, red) or hex.
handwriting_realismbooleantrue turns on the realism effect for AI handwriting fonts.
handwriting_style_idintegerHandwriting style id from thanksio_list_handwriting_styles.
image_template_idintegerImage template id for the front of the postcard.
mailing_list_idsarrayMailing lists to mail. Give this or recipients.
messagestringHandwritten message text for the back of the postcard.
message_template_idintegerMessage template id for the back of the postcard.
metadataobjectYour own key/value data, returned unchanged with the order.
notification_emailsstringComma-separated emails notified about order events.
postage_classstringPostage class.
qrcode_urlstringURL for the QR code on the back of the postcard.
recipientsarrayRecipients to mail. Give this or mailing_list_ids.
return_addressstring
return_address2string
return_citystring
return_namestring
return_postal_codestring
return_statestring
sizestringPostcard size.
sub_accountintegerSub-account id to bill and send from.
use_custom_backgroundbooleantrue turns off the default background image.

thanksio_create_recipient Create recipient

Add one recipient to a mailing list. Give a street address, or an email only if you accept that a send may charge an address lookup for it. Creates a record only; it sends no mail. Open API: POST /recipients.

ParameterTypeDescription
mailing_list_id *integerMailing list to add the recipient to.
absentee_addressstringProperty address of an absentee owner, when it differs from the mailing address.
absentee_citystringCity of the property address. Needs absentee_address.
absentee_postal_codestringZIP or postal code of the property address. Needs absentee_address.
absentee_provincestringState or province of the property address. Needs absentee_address.
addressstringStreet address, line 1.
address2stringStreet address, line 2.
anniversarystringAnniversary date, YYYY-MM-DD.
citystring
companystring
countrystringCountry code, e.g. US.
custom1stringFree text for your own merge fields.
custom10stringFree text for your own merge fields.
custom2stringFree text for your own merge fields.
custom3stringFree text for your own merge fields.
custom4stringFree text for your own merge fields.
custom5stringFree text for your own merge fields.
custom6stringFree text for your own merge fields.
custom7stringFree text for your own merge fields.
custom8stringFree text for your own merge fields.
custom9stringFree text for your own merge fields.
dobstringDate of birth, YYYY-MM-DD.
emailstring
namestringFull name. The merge field %FIRST_NAME% uses it.
phonestring
postal_codestring
provincestringState or province code, e.g. CA.

thanksio_send_postcard Send postcard (paid, physical mail)

PAYS AND MAILS a physical postcard to the given recipients or mailing lists. Charged to the account credit or card. A mailed order cannot be recalled once printing starts. Email-only recipients are skipped unless email_lookup is true, because each address found is charged. Pass preview: true to get a preview instead of an order. Open API: POST /send/postcard.

ParameterTypeDescription
creative_idintegerSaved creative id from thanksio_list_creatives. Recommended for production sends.
custom_background_imagestringURL of a custom background image for the back of the postcard.
email_lookupbooleanLook up a postal address from a recipient's email when no street address is given. Each address found is charged. This tool sends false unless you pass true.
font_sizestringHandwriting size.
front_image_urlstringPublic URL of the front image. Needs the exact pixel size for the postcard size.
handwriting_colorstringHandwriting color name (blue, black, green, purple, red) or hex.
handwriting_realismbooleantrue turns on the realism effect for AI handwriting fonts.
handwriting_style_idintegerHandwriting style id from thanksio_list_handwriting_styles.
image_template_idintegerImage template id for the front of the postcard.
mailing_list_idsarrayMailing lists to mail. Give this or recipients.
messagestringHandwritten message text for the back of the postcard.
message_template_idintegerMessage template id for the back of the postcard.
metadataobjectYour own key/value data, returned unchanged with the order.
notification_emailsstringComma-separated emails notified about order events.
postage_classstringPostage class.
previewbooleantrue returns a preview and sends nothing.
qrcode_urlstringURL for the QR code on the back of the postcard.
recipientsarrayRecipients to mail. Give this or mailing_list_ids.
return_addressstring
return_address2string
return_citystring
return_namestring
return_postal_codestring
return_statestring
sizestringPostcard size.
sub_accountintegerSub-account id to bill and send from.
use_custom_backgroundbooleantrue turns off the default background image.

thanksio_cancel_order Cancel order

Cancel an order that is still in review. The credits go back to the account. Orders that have started printing cannot be cancelled. Open API: PUT /orders/{orderId}/cancel.

ParameterTypeDescription
orderId *stringOrder id, from thanksio_list_orders.