API Reference
Welcome to the Nosr API documentation. Our API allows you to build powerful WhatsApp integration into your own applications. It is organized around REST, accepts JSON-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes.
Authentication
The Nosr API uses API tokens to authenticate requests. You can view and manage your API tokens in the Dashboard under Settings. Your API tokens carry many privileges, so be sure to keep them secure. Do not share your secret API keys in publicly accessible areas such as GitHub, client-side code, etc.
Send Message
/messagesSends a message to a destination phone number. Authentication is required.
Body Parameters
tostringREQUIREDThe destination phone number in E.164 format (e.g., +15555555555).
typestringREQUIREDThe type of message. Currently supports 'text', 'image', 'document'.
textobjectThe text object. Required if type is 'text'.
preview_urlbooleanWhether to generate a preview for links in the message.