The suggested curl command was meant to ingest some testdata to Elasticsearch through your APM Server, and viewing these data in Kibana, allowing you to verify that the setup works. Therefore you would use the APM-Server host and port as endpoint, e.g. for localhost 127.0.0.1:8200/v1/transactions.