5. Start the API call
We’ll distribute your new image behind the scenes and get the sessions running. You just need to check that it’s working. Once we’ve pushed the image onto our servers, you should be able to call our API.
If nothing happens, then there’s a problem. We can work together to figure this out, just message our support team on Discord.
**How do you know it’s working? **
Section titled “**How do you know it’s working? **”Whenever you successfully start a container through our API, it should return with an IP address and port for that container, which will let your players join the game.
Your API call should look like this:
Section titled “Your API call should look like this:”curl \ -X POST https://api.gameye.io/session \ -H "Authorization: Bearer $ACCESS_TOKEN" \ -H "Content-Type: application/json" \ -d '{"id":"f7965a22-e327-4541-a30e-8262890d3a29","location":"europe","image":"my-very-special-game","env":{"my-secret":"\u003cmy_secret_value"},"args":["--max-players=8"],"labels":{"my-example-tag":"1","another-example-tag":"3"},"restart":false}'{ "host": "a.b.c.d", "ports": [ { "type": "tcp", "container": 80, "host": 49159 }, { "type": "tcp", "container": 80, "host": 49159 } ]}