API/session id

Hello everyone, im currently trying to connect atis to my discord bot and i seem to be getting an error when use the /atis command. Ive put my atis key in there but it looks like i need a session id for that. Where can i get a session id from?

const url = https://api.infiniteflight.com/public/v2/sessions/{sessionId}/airport/{airportIcao}/atis;

I need to replace the session id in the line above in order for this to work? Where can i get that from?

Replace {sessionId} with one of the UUID’s returned from this endpoint: Get Sessions | Infinite Flight

The only one of those sessions that are returned that has ATIS is the Expert session.

2 Likes