Single Send API using demo hapikey


#1

I’m trying to test the Single Send API through the demo environment but I keep getting a 400 Bad Request error.

URL = https://api.hubapi.com/email/public/v1/singleEmail/send?hapikey=demo
body = ‘{“emailId”: 4972249963, “message”: {“to”: "gunia20@cox.net"}}’

I’m able to save an email to Single Send API in the demo environment so I’m assuming that functionality is turned on. Is that a safe assumption? Does the demo environment have access to this API?


#2

@aga The Demo portal doesn’t have access to send emails through it. Please use your own portal to test out sending emails via the Single Send API.


#3

Where to get my own portal instead of the Demo?


#4

@Umar_Jamil You can always create a test portal through the dev portal to use as a sandbox.