### Sending SMS via GET - SMS Masivos API - Bash Source: https://context7_llms This snippet demonstrates how to send an SMS message using the SMS Masivos API via a GET request. It requires an API key in the header and message details (numbers, message, country code) as URL-encoded query parameters. The `sandbox` parameter can be used for testing. ```bash curl -X GET "https://api.smsmasivos.com.mx/sms/send" \ -H "apikey: $API_KEY" \ -H "Content-Type: application/json" \ -G --data-urlencode "param1=value1" ``` -------------------------------- ### Sending Voice Message via GET - SMS Masivos API - Bash Source: https://context7_llms This snippet shows how to send a voice message using the SMS Masivos API via a GET request. It requires an API key and parameters like recipient numbers, country code, template, and a verification code. It also supports custom voice messages and company names. ```bash curl -X GET "https://api.smsmasivos.com.mx/voice/send" \ -H "apikey: $API_KEY" \ -H "Content-Type: application/json" \ -G --data-urlencode "param1=value1" ``` -------------------------------- ### Sending Voice Messages with SMS Masivos API (cURL) Source: https://context7_llms This snippet demonstrates how to send voice messages using the SMS Masivos API via a POST request. It requires an API key and a JSON body containing recipient numbers, country code, template, and optionally a custom voice message or company name. It's similar to a GET method but uses a request body for data transmission. ```bash curl -X POST "https://api.smsmasivos.com.mx/voice/send" \ -H "apikey: $API_KEY" \ -H "Content-Type: application/json" \ -d '{"key":"value"}' ``` -------------------------------- ### Creating Subaccount with SMSMasivos API (Bash) Source: https://context7_llms This endpoint allows the creation of a new subaccount associated with a main user. It requires valid email, password, name, and phone number, ensuring no conflicts with existing users. Dependencies include a valid API key and JSON request body. ```bash # Example: POST /manager/subaccount/add curl -X POST "https://api.smsmasivos.com.mx/manager/subaccount/add" \ -H "apikey: $API_KEY" \ -H "Content-Type: application/json" \ -d '{"key":"value"}' ``` -------------------------------- ### Adding Employee User - Bash Source: https://context7_llms This endpoint allows adding a new user related to a specific tool, who can be a cashier or manager. It requires an API key for authentication and parameters like employee name, business name, contact number, password, and user type. Upon success, it returns a 200 response, otherwise a specific error. ```bash curl -X POST "https://api.smsmasivos.com.mx/employee/add" \\n -H "apikey: $API_KEY" \\n -H "Content-Type: application/json" \\n -d '{\"key\":\"value\"}' ``` -------------------------------- ### Adding Agenda - SMSMasivos API (Bash) Source: https://context7_llms This endpoint facilitates the creation of new contact agendas, allowing for organization and detailed information storage. It requires an `apikey` header and a JSON body containing `agenda_name` (required) along with optional `agenda_description` and up to four `custom_field` parameters. Successful creation or validation issues return 200, while input validation failures result in a 400, and internal server errors yield a 500. ```bash curl -X POST "https://api.smsmasivos.com.mx/agendas/add" \ -H "apikey: $API_KEY" \ -H "Content-Type: application/json" \ -d '{\"key\":\"value\"}' ``` -------------------------------- ### Retrieving User Wallet List with SMSMasivos API (Bash) Source: https://context7_llms This endpoint returns a list of wallets associated with the authenticated user. It provides key information such as wallet name, unique identifier, and client/admin application URLs. Dependencies include a valid API key and a JSON request body with UsuarioId. ```bash # Example: POST /wallet/get curl -X POST "https://api.smsmasivos.com.mx/wallet/get" \ -H "apikey: $API_KEY" \ -H "Content-Type: application/json" \ -d '{"key":"value"}' ``` -------------------------------- ### Managing Subaccount Credits with SMSMasivos API (Bash) Source: https://context7_llms This endpoint allows the main user to manage credits for their associated subaccounts. Operations include adding or withdrawing credits based on the 'type' parameter (1 for add, 2 for withdraw). Dependencies include a valid API key and JSON request body specifying email, type, and credits. ```bash # Example: POST /manager/subaccount/credits/manage curl -X POST "https://api.smsmasivos.com.mx/manager/subaccount/credits/manage" \ -H "apikey: $API_KEY" \ -H "Content-Type: application/json" \ -d '{"key":"value"}' ``` -------------------------------- ### Retrieving Loyalty Cards - SMS Masivos API (Bash) Source: https://context7_llms This endpoint allows users to retrieve a list of all active loyalty cards associated with their account. The returned loyalty cards include key information such as name, unique hash, and URLs for the client application and redemption validation. Requires an API key in the header. ```bash curl -X POST "https://api.smsmasivos.com.mx/loyalty/get" \ -H "apikey: $API_KEY" \ -H "Content-Type: application/json" \ -d '{"key":"value"}' ``` -------------------------------- ### Registering New Sale for Loyalty Card - SMS Masivos API (Bash) Source: https://context7_llms This endpoint registers a new sale associated with a loyalty card and a specific customer. It validates card and customer status, updates the loyalty card history, and manages potential rewards, redemption limits, and message sending. Requires an API key and accepts loyalty_key, phone, usertool_id, transaction_amount, and ticket in the JSON body. ```bash curl -X POST "https://api.smsmasivos.com.mx/loyalty/sale" \ -H "apikey: $API_KEY" \ -H "Content-Type: application/json" \ -d '{"key":"value"}' ``` -------------------------------- ### Consulting Available Credits with SMS Masivos API (cURL) Source: https://context7_llms This snippet demonstrates how to consult the available credit balance for the current user via the SMS Masivos API. It retrieves information directly from the database and returns it in a structured format. ```bash curl -X POST "https://api.smsmasivos.com.mx/credits/consult" \ -H "apikey: $API_KEY" \ -H "Content-Type: application/json" \ -d '{"key":"value"}' ``` -------------------------------- ### Retrieving Webhook Configuration via SMSMasivos API (cURL) Source: https://context7_llms This snippet demonstrates how to retrieve the URL and status of the currently configured webhook for the user on the SMSMasivos platform. This endpoint is used to verify if a webhook is set up and active for receiving events. The API key is required in the request header. ```bash curl -X POST "https://api.smsmasivos.com.mx/webhook/get" \ -H "apikey: $API_KEY" \ -H "Content-Type: application/json" \ -d '{\"key\":\"value\"}' ``` -------------------------------- ### Retrieving Agendas - SMSMasivos API (Bash) Source: https://context7_llms This endpoint retrieves all agendas associated with the authenticated user, providing their names, descriptions, creation dates, and unique keys. It requires an `apikey` header for authentication. A 200 status indicates successful retrieval or no results, while a 500 status signifies an internal server error. ```bash curl -X POST "https://api.smsmasivos.com.mx/agendas/get" \ -H "apikey: $API_KEY" \ -H "Content-Type: application/json" \ -d '{\"key\":\"value\"}' ``` -------------------------------- ### Retrieving Subaccount API Key with SMSMasivos API (Bash) Source: https://context7_llms This endpoint retrieves the API key for a specific subaccount associated with a main user. It verifies that the provided email corresponds to an active subaccount owned by the principal user. Dependencies include a valid API key and JSON request body. ```bash # Example: POST /manager/subaccount/get_apikey curl -X POST "https://api.smsmasivos.com.mx/manager/subaccount/get_apikey" \ -H "apikey: $API_KEY" \ -H "Content-Type: application/json" \ -d '{"key":"value"}' ``` -------------------------------- ### Adding Contact to Loyalty Card - SMS Masivos API (Bash) Source: https://context7_llms This endpoint registers a new contact to a specific loyalty card. It validates user access, card existence, and contact information before creating the relationship. It can also send a welcome message. Requires an API key and accepts loyalty_key, phone, customer_name, customer_birthdate, and usertool_id in the JSON body. ```bash curl -X POST "https://api.smsmasivos.com.mx/loyalty/contact/add" \ -H "apikey: $API_KEY" \ -H "Content-Type: application/json" \ -d '{"key":"value"}' ``` -------------------------------- ### Sending Payment Requests with SMS Masivos API (cURL) Source: https://context7_llms This snippet illustrates how to create and send payment requests through the SMS Masivos API using a POST request. It validates user-provided data, generates a payment link, and links user, contact, and template information. It handles errors for incomplete or inconsistent data. ```bash curl -X POST "https://api.smsmasivos.com.mx/paymentrequest/send" \ -H "apikey: $API_KEY" \ -H "Content-Type: application/json" \ -d '{"key":"value"}' ``` -------------------------------- ### Sending SMS via POST - SMS Masivos API - Bash Source: https://context7_llms This snippet illustrates sending an SMS message using the SMS Masivos API via a POST request. It requires an API key in the header and message details (numbers, message, country code) in a JSON request body. This method is suitable for sending more complex data or when query string length is a concern. ```bash curl -X POST "https://api.smsmasivos.com.mx/sms/send" \ -H "apikey: $API_KEY" \ -H "Content-Type: application/json" \ -d '{"key":"value"}' ``` -------------------------------- ### Checking Phone Verification Code - XML - cURL Source: https://context7_llms This endpoint validates a previously generated verification code for a specific phone number, returning the response in XML format. It indicates if the code is valid, expired, or if the user is already verified. Requires `apikey` in headers and `phone_number`, `verification_code` in the JSON body. Optionally, `showcode` can be included to display the code in the response. Returns 200 with the validation status in XML format. ```bash curl -X POST "https://api.smsmasivos.com.mx/protected/xml/phones/verification/check" \ -H "apikey: $API_KEY" \ -H "Content-Type: application/json" \ -d '{"key":"value"}' ``` -------------------------------- ### Archiving Subaccount with SMSMasivos API (Bash) Source: https://context7_llms This endpoint deactivates or archives a subaccount linked to a main user. It validates the subaccount's existence, ownership, and active status before proceeding. Dependencies include a valid API key and JSON request body. ```bash # Example: POST /manager/subaccount/archive curl -X POST "https://api.smsmasivos.com.mx/manager/subaccount/archive" \ -H "apikey: $API_KEY" \ -H "Content-Type: application/json" \ -d '{"key":"value"}' ``` -------------------------------- ### Duplicating Contact via SMSMasivos API (cURL) Source: https://context7_llms This snippet shows how to duplicate an existing contact from one list to another using the SMSMasivos API. It requires the hash keys of both the source and destination lists, along with the unique contact identifier. The API key is sent in the header, and the request body contains the necessary list and contact details. ```bash curl -X POST "https://api.smsmasivos.com.mx/contacts/duplicate" \ -H "apikey: $API_KEY" \ -H "Content-Type: application/json" \ -d '{\"key\":\"value\"}' ``` -------------------------------- ### Retrieving Agenda Contacts - SMSMasivos API (Bash) Source: https://context7_llms This endpoint fetches the list of contacts within a specified agenda, identified by its unique `list_key`. It requires an `apikey` header and a JSON body containing the `list_key`. The response includes contact details such as name, number, email, and creation date, with 200 for success, 400 for validation failures, and 500 for internal server errors. ```bash curl -X POST "https://api.smsmasivos.com.mx/agendas/get_contacts" \ -H "apikey: $API_KEY" \ -H "Content-Type: application/json" \ -d '{\"key\":\"value\"}' ``` -------------------------------- ### Retrieving Loyalty Card Contacts - SMS Masivos API (Bash) Source: https://context7_llms This endpoint retrieves contact information registered on a specific loyalty card. If a phone number is provided, it returns details for that contact; otherwise, it returns the full list of contacts linked to the card. Requires an API key and accepts loyalty_key and an optional phone number in the JSON body. ```bash curl -X POST "https://api.smsmasivos.com.mx/loyalty/contact/get" \ -H "apikey: $API_KEY" \ -H "Content-Type: application/json" \ -d '{"key":"value"}' ``` -------------------------------- ### Checking Phone Verification Code - JSON - cURL Source: https://context7_llms This endpoint allows validating a previously generated verification code for a specific phone number. It checks if the code is correct, expired, or if the number of allowed attempts has been exceeded. Requires `apikey` in headers and `phone_number`, `verification_code` in the JSON body. Optionally, `showcode` can be included to display the code in the response. Returns 200 on success with validation status, 400 for validation errors or exceeded limits, and 500 for internal server errors. ```bash curl -X POST "https://api.smsmasivos.com.mx/protected/json/phones/verification/check" \ -H "apikey: $API_KEY" \ -H "Content-Type: application/json" \ -d '{"key":"value"}' ``` -------------------------------- ### Generating Campaign and Message Reports with SMS Masivos API (cURL) Source: https://context7_llms This snippet shows how to generate detailed reports of campaigns and sent messages within a specified date range using the SMS Masivos API. It validates input parameters, queries campaigns and messages associated with the user, and returns structured data for analysis. ```bash curl -X POST "https://api.smsmasivos.com.mx/reports/generate" \ -H "apikey: $API_KEY" \ -H "Content-Type: application/json" \ -d '{"key":"value"}' ``` -------------------------------- ### Adding Contact to SMSMasivos API using cURL Source: https://context7_llms This snippet demonstrates how to add or update a contact in a specific user list using the SMSMasivos API. If the contact already exists, its data is updated; otherwise, a new contact is created. It requires an API key and a JSON body with contact details like list_key, number, name, and email. ```bash curl -X POST "https://api.smsmasivos.com.mx/contacts/add" \ -H "apikey: $API_KEY" \ -H "Content-Type: application/json" \ -d '{"key":"value"}' ``` -------------------------------- ### Resending Phone Verification Code - JSON - cURL Source: https://context7_llms This endpoint allows resending a previously generated verification code for a phone number. It can resend the code via SMS, voice call, or WhatsApp based on provided parameters, and can also regenerate a new code if requested. Requires `apikey` in headers and `phone_number`, `country_code` in the JSON body. Optional parameters include `showcode`, `reset_code`, `voice`, `whatsapp`, and `expiration_date`. Returns 200 with responses related to the resend status. ```bash curl -X POST "https://api.smsmasivos.com.mx/protected/json/phones/verification/resend" \ -H "apikey: $API_KEY" \ -H "Content-Type: application/json" \ -d '{"key":"value"}' ``` -------------------------------- ### Adding or Updating Webhook via SMSMasivos API (cURL) Source: https://context7_llms This snippet illustrates how to add or update a webhook URL for receiving event notifications on the SMSMasivos platform. It allows configuring the webhook's status as active (1) or inactive (0). The API key is passed in the header, and the request body specifies the webhook URL and its desired status. ```bash curl -X POST "https://api.smsmasivos.com.mx/webhook/add" \ -H "apikey: $API_KEY" \ -H "Content-Type: application/json" \ -d '{\"key\":\"value\"}' ``` -------------------------------- ### Changing Agenda Name - SMSMasivos API (Bash) Source: https://context7_llms This endpoint allows modifying the name of an existing agenda by referencing its unique `list_key`. It requires an `apikey` header and a JSON body containing both the `list_key` of the agenda to be updated and the new `agenda_name`. The API returns 200 for successful updates or validation errors, 400 for failed validations, and 500 for internal server errors. ```bash curl -X POST "https://api.smsmasivos.com.mx/agendas/change_name" \ -H "apikey: $API_KEY" \ -H "Content-Type: application/json" \ -d '{\"key\":\"value\"}' ``` -------------------------------- ### Deleting Webhook URL - SMSMasivos API (Bash) Source: https://context7_llms This endpoint removes the configured webhook URL, effectively deactivating notifications. It requires an `apikey` header for authentication and expects a JSON body with a placeholder `key:value`. The operation returns a 200 status on success or error, 400 for specific deletion errors, and 500 for internal server issues. ```bash curl -X POST "https://api.smsmasivos.com.mx/webhook/delete" \ -H "apikey: $API_KEY" \ -H "Content-Type: application/json" \ -d '{\"key\":\"value\"}' ``` -------------------------------- ### Deleting Agenda - SMSMasivos API (Bash) Source: https://context7_llms This endpoint permanently removes an agenda and all its associated contacts using the agenda's unique `list_key`. It requires an `apikey` header and a JSON body specifying the `list_key` of the agenda to be deleted. The API responds with 200 for successful deletion or validation errors, 400 for failed validations, 404 if the agenda is not found, and 500 for internal server errors. ```bash curl -X POST "https://api.smsmasivos.com.mx/agendas/delete" \ -H "apikey: $API_KEY" \ -H "Content-Type: application/json" \ -d '{\"key\":\"value\"}' ``` -------------------------------- ### Disabling Employee User - Bash Source: https://context7_llms This endpoint facilitates disabling a tool user by their contact number, requiring an API key for authentication. Once disabled, the contact number is unlinked, and the user's status becomes inactive. It returns a 200 response for success or a specific error. ```bash curl -X POST "https://api.smsmasivos.com.mx/employee/disable" \\n -H "apikey: $API_KEY" \\n -H "Content-Type: application/json" \\n -d '{\"key\":\"value\"}' ``` -------------------------------- ### Updating Webhook Status via SMSMasivos API (cURL) Source: https://context7_llms This snippet demonstrates how to update the status of an existing webhook on the SMSMasivos platform, setting it as active (1) or inactive (0). The API key is included in the header, and the request body requires the webhook URL and the new status. This allows dynamic control over webhook event delivery. ```bash curl -X POST "https://api.smsmasivos.com.mx/webhook/status" \ -H "apikey: $API_KEY" \ -H "Content-Type: application/json" \ -d '{\"key\":\"value\"}' ``` -------------------------------- ### Updating Contact in SMSMasivos API using cURL Source: https://context7_llms This snippet shows how to update existing contact information, such as name, number, and/or email, within any configured list/channel in the SMSMasivos panel. It requires an API key and a JSON body, where either number or email must be provided as a unique identifier for the contact to be updated. ```bash curl -X POST "https://api.smsmasivos.com.mx/contacts/update" \ -H "apikey: $API_KEY" \ -H "Content-Type: application/json" \ -d '{"key":"value"}' ``` -------------------------------- ### Deleting Contact via SMSMasivos API (cURL) Source: https://context7_llms This snippet demonstrates how to delete a contact from a configured list using the SMSMasivos API. It requires a unique identifier (number or email) and the list's hash key. The API key is passed in the header, and the request body specifies the contact and list details. ```bash curl -X POST "https://api.smsmasivos.com.mx/contacts/delete" \ -H "apikey: $API_KEY" \ -H "Content-Type: application/json" \ -d '{\"key\":\"value\"}' ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.