How do I get device information as a request parameter in an API request in vDesigner 2.0?

I want to send my device’s information as a request parameter in an API request in vDesigner2.0. The device information should include the details of the device on which the application is logged in.

Hello @AnushkaGupta,

This functionality can be achieved through vConnect. When configuring any API for a similar purpose to yours, follow these steps:

  1. Configure an API and provide all the information in the API Request Details as well as in the End Point Details.

  2. In the End Point Details, configure a complex request under the Request Transformation tab.

  3. The Template context will be:

  4. In the Template Body Parameters Mapping tab, configure the following:

By following these steps, you will achieve the desired functionality.

Note: To test in VRT, you will have to provide the Device ID through the Header. For vDesigner 2.0, it is obtained through the Request Body.