Developers
API and embeddable chat
Connect Gosendly to your management software, to Zapier or to your website. You create keys in the app, under Settings › Developers.
Every request carries the key: Authorization: Bearer snd_…. The key determines the store and the permissions, and it has a cap on requests per minute (120 at most). Included in all paid plans, not in Free.
The full description for Postman and similar tools is at /api/v1/openapi.json. The chat in an iframe, with the signed token, is explained in the app, in the Embedded chat tab.
Basics
- GET/meWhich store the key belongs to and what it can do
Contacts
- POST/contactsCreates or updates a contact by phone numbercontacts
- GET/contacts/{ref}Reads a contact by id or numbercontacts
- PATCH/contacts/{ref}Updates a contactcontacts
- POST/ticketsOpens a support ticket for a customercontacts
- POST/dealsCreates a deal for a customercontacts
Flows
- GET/flowsAll flowsflows
- POST/flows/{flowId}/startStarts a flow for one or more contacts (max 500)flows
Messages
- GET/templatesTemplates approved by Metamessages
- POST/messages/templateSends a templatemessages
- POST/messages/textSends free text (only within 24 hours of the customer's last message)messages
- POST/otpSends a one-time access code (OTP) on WhatsAppmessages
- POST/otp/verifyChecks the code entered by the customermessages
- GET/messages/{id}Status of a messagemessages
Lists
- GET/listsAll listslists
- POST/listsCreates a static or dynamic listlists
- GET/lists/{id}List detailslists
- PATCH/lists/{id}Renames a list or changes its ruleslists
- DELETE/lists/{id}Deletes a list (the contacts are kept)lists
- GET/lists/{id}/membersContacts in the listlists
- POST/lists/{id}/membersAdds contacts to a static listlists
- DELETE/lists/{id}/membersRemoves contacts from a static listlists
- POST/lists/{id}/recomputeRecalculates a dynamic listlists
Tags
- GET/tagsTags with how many contacts have each onetags
- POST/tagsCreates a tagtags
Custom fields
- GET/custom-fieldsAll custom fieldsfields
- POST/custom-fieldsCreates a fieldfields
Campaigns
- GET/campaignsAll campaignscampaigns
- POST/campaignsCreates a draft (with «scheduledAt» it also needs «campaigns_send»)campaigns
- GET/campaigns/{id}Status and full detailscampaigns
- PATCH/campaigns/{id}Edits a draft, scheduled or paused campaigncampaigns
- DELETE/campaigns/{id}Deletes a draftcampaigns
- GET/campaigns/{id}/statsStats: sent, delivered, read, replies, clicks, orders, spendcampaigns
- GET/campaigns/{id}/recipientsRecipients and their outcomecampaigns
- POST/campaigns/{id}/sendSends the campaign nowcampaigns_send
- POST/campaigns/{id}/scheduleSchedules the startcampaigns_send
- POST/campaigns/{id}/unscheduleRemoves the schedulecampaigns_send
- POST/campaigns/{id}/pausePauses the campaigncampaigns_send
- POST/campaigns/{id}/resumeResumes the campaigncampaigns_send
- POST/campaigns/{id}/cancelCancels the campaigncampaigns_send
Reports
- GET/reports/summaryFigures for the period: messages, contacts, campaignsreports
- GET/reports/exportReport as CSVreports
File library
- GET/filesAll filesfiles
- POST/filesUploads a file (multipart/form-data, «file» field)files
- GET/files/{id}/contentDownloads the filefiles
Webhooks
- POST/hooksRegisters an address that receives webhookswebhooks
- GET/hooksAddresses registered by appswebhooks
- DELETE/hooks/{id}Removes an addresswebhooks
Embedded chat
- POST/embed/tokenCreates the chat token to put in an iframeembed