Altered API to accept POST with API key