Is it possible in Carto to create a point via a simple query?

If I run: https://UserName.carto.com/api/v2/sql?format=GeoJSON&q=SELECT ST_MakePoint(-50.10, 42.31)



It returns the following error: {"error":["column \"the_geom\" does not exist"]}.

Is there a way to create a point via a URL call?

1 Answer 1


The error is telling you that the_geom column is missing, so you need to add it to your SQL query. In addition, I have used CARTO cdb_latlng function instead of ST_MakePoint because the first uses CARTO's default projection directly:


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.