Learn how to quickly modify your existing Zenvia API calls to send SMS messages using the SMS Gateway Emulator app. With minimal code changes, you can switch from Zenvia services to our app, saving costs and gaining full control over your SMS gateway.
v1 and v2 are supported.
There are 2 ways to emulate Zenvia API.
Change the API url directly.
Via our Proxy Server.
Whatever you do, make sure to change YOUR_API_TOKEN to EMULATOR_API_TOKEN, and set
            EMULATOR_SENDER_ID.
https://zenvia.github.io/zenvia-openapi-spec/v1/#tag/SMS/paths/~1channels~1sms~1messages/post
            https://zenvia.github.io/zenvia-openapi-spec/v2/#tag/SMS/paths/~1channels~1sms~1messages/post
        
curl "https://api.zenvia.com/v2/channels/sms/messages" \
-H "Content-Type: application/json" \
-H "X-API-TOKEN: YOUR_API_TOKEN" \
-d '{
  "from": "sender-identifier",
  "to": "recipient-identifier",
  "contents": [{
    "type": "text",
    "text": "Hello from Zenvia"
  }]
}'
curl "https://api.smsgatewayemulator.com/v2/channels/sms/messages" \
-H "Content-Type: application/json" \
-H "X-API-TOKEN: EMULATOR_API_TOKEN" \
-d '{
  "from": "EMULATOR_SENDER_ID",
  "to": "recipient-identifier",
  "contents": [{
    "type": "text",
    "text": "Hello from Zenvia Emulator"
  }]
}'
curl "https://api.zenvia.com/v2/channels/sms/messages" \
-H "Content-Type: application/json" \
-H "X-API-TOKEN: EMULATOR_API_TOKEN" \
-d '{
  "from": "EMULATOR_SENDER_ID",
  "to": "recipient-identifier",
  "contents": [{
    "type": "text",
    "text": "Hello from Zenvia Emulator"
  }]
}' \
--cacert ./sms_gateway_emulator_ca.crt \
--proxy https://proxy.smsgatewayemulator.com \
--proxy-cacert ./sms_gateway_emulator_ca.crt