Getting started
5. Start the API call
2min
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? 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 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 } ] }