Query Regarding Parameter of Mender API

,

Hi Team,

I thought of using self-hosted mender APIs. I am clear with some of the APIs. I have some blockers with some of the parameters in the Mender API.

Below are the APIs:

  1. Device Reject Authentication:
https://hosted.mender.io/api/management/v2/devauth/devices/{id}/auth/{aid}

In this API how find the {aid} parameter.
2. Device Playback Connect:

https://hosted.mender.io/api/management/v1/deviceconnect/sessions/{session_id}/playback

In this API, I manually found the session ID but is there any predefined API from which we can directly find the session ID?

It will be helpful in my implementation.

Thanks
Akshat