APIs & Integrations

aga1
Member

Single Send API using demo hapikey

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?

0 Upvotes
3 Replies 3
3PETE
HubSpot Employee
HubSpot Employee

Single Send API using demo hapikey

@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.

Umar_Jamil
Member

Single Send API using demo hapikey

Where to get my own portal instead of the Demo?

0 Upvotes
3PETE
HubSpot Employee
HubSpot Employee

Single Send API using demo hapikey

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

0 Upvotes