Authentication
Learn how to authenticate with the API using API Keys or JWT tokens.
The Sendme API allows you to manage contacts and send communications via SMS and email in a simple and efficient way.
Before you begin, you need to:
Authentication
Learn how to authenticate with the API using API Keys or JWT tokens.
Contacts
Manage your contact database: create, query, update and delete.
Messages
Send communications via SMS and email to your contacts.
Here’s a basic example to get you started:
// Set up authenticationconst headers = { 'api-key': 'your-api-key-here', 'Content-Type': 'application/json'};
// Create a contactconst createContact = async () => { const response = await axios.post('https://app.sendme123.com/api/contacts', { name: 'John Doe', phone: '3001234567', }, { headers });
return response.data;};
// Send SMSconst sendSMS = async () => { const response = await axios.post('https://app.sendme123.com/api/messages/send/sms', { type: 'sms', message: 'Welcome to our service!', contacts: ['3001234567'], countryCode: '57' }, { headers });
return response.data;};
All API requests should be made to:
https://app.sendme123.com/api
All responses follow a consistent JSON structure:
{ "data": "...", "message": "Success message", "status": "success"}
For paginated responses:
{ "data": [...], "pagination": { "currentPage": 1, "totalPages": 5, "totalItems": 87, "itemsPerPage": 20 }}