Am I correct in assuming you’re trying to do this with JS opposed to https requests via plugin builder or api connector?

Can you provide the api documentation and call you’re trying to connect?