Robotic Process Automation (RPA)

 View Only
  • 1.  Trigger bot thru Api

    Posted Fri May 10, 2024 09:48 AM

    Hi. How to setup api for triggering a bot?



    ------------------------------
    RYAN BALTAZAR
    ------------------------------



  • 2.  RE: Trigger bot thru Api
    Best Answer

    IBM Champion
    Posted Wed May 15, 2024 11:46 AM

    Hi Ryan,

    Great question! To run a bot using IBM Robotic Process Automation (RPA), you would typically follow these steps:

    1. Authenticate to the IBM RPA API Server
      1. This is a mandatory step before you request a resource in the API
      2. Will provide you with an access token that authorizes you to proper resources available to your IBM RPA account
    2. Call the Bot API Endpoint 
      1. /v2.0/workspace/{workspaceId}/projects/{projectUniqueId/bots/{botUniqueId}

    POST https://{region}api.wdgautomation.com/v2.0/workspace/{workspaceId}/projects/{projectUniqueId}/bots/{botUniqueId} HTTP/1.1 Accept-Encoding: gzip,deflate Content-Type: application/json Authorization: Bearer {token} Content-Length: 64 Host: {region}api.wdgautomation.com Connection: Keep-Alive User-Agent: Apache-HttpClient/4.5.5 (Java/16.0.1) { "additionalMessage": "Additional message here" }

    For more details, please refer to the IBM RPA documentation: https://www.ibm.com/docs/en/rpa/23.0?topic=call-calling-api-run-bot



    ------------------------------
    Martin Medina
    ------------------------------