AI Center
latest
false
Banner background image
AI Center
Last updated Apr 18, 2024

Invoke Public ML Skills using API

Before starting this procedure, check the following pages for more information on ML Skills:
To use a public ML Skill, you need the following:
  • Port 433 must be open.
  • Access to the target ML Skill URL.
  • Access to the AI Units API key for the organization the ML Skill is deployed on.

A public ML Skill generates a URL and an API key. These will be used in an API call to request predictions.

You can find the URL and the API key in the ML Skill details section.



  1. Create a POST request with the generated ML Skill URL.
  2. Create a X-UIPATH-License header field using the value generated by the API key.
  3. Create a Content-Type header field with the application/json value for inputs in JSON format (or ML Skills that expect data in JSON.
  4. Create a request body containing actual data in JSON format:
    curl --location --request POST 'yourURL' \
    --header 'X-UIPATH-License: yourAPIKey' \
    --header 'Content-Type: application/json' \
    --data-raw '{"data":"test"}'curl --location --request POST 'yourURL' \
    --header 'X-UIPATH-License: yourAPIKey' \
    --header 'Content-Type: application/json' \
    --data-raw '{"data":"test"}'

Was this page helpful?

Get The Help You Need
Learning RPA - Automation Courses
UiPath Community Forum
Uipath Logo White
Trust and Security
© 2005-2024 UiPath. All rights reserved.