OpenAPI Compatible REST APIs

What are OpenAPI Compatible REST APIs?

OpenAPI (version 2.0 or 3.0, in JSON or YAML format) is an industry standard for documenting RESTful APIs. It provides:

Why are OpenAPI REST APIs important for Agent-Building platforms?

Configure OAuth2 for your REST APIs

REST API Data sources support OAuth2. Add your preferred authentication method to use your REST APIs.

  1. Select Data Sources in the left sidebar and select Add data source button.

  2. Select REST API as the Source Type and optionally add a custom name and description for the data source under Advanced Configuration.

    Add new REST API

  3. Upload your OpenAPI 2.0 or above specification JSON file to automatically configure API endpoints and select Add REST API source button.

  4. On the Data Sources dashboard, select the REST APIs tab, then click the lock icon in the Actions column for that data source.

    Data Sources Dashboard

  5. Authorize the REST API access to this data source by entering Client ID, Client Secret and OAuth2 Flow Type. Based on the flow type selected, a new selector will be displayed where you can select the desired scopes.

  6. Select Request authorization button.

    Authorize REST API Access

  7. For the ‘Authorization Code’ flow type, you will be redirected to a page to grant the necessary permissions. After approving access, you will be sent to a callback page that displays “Authorization complete.” You can then close this tab and return to Agent Factory. When you see the message “Authorization successful. You can now access your secured endpoints.”, it means your authentication settings have been saved and you can begin using the REST API in Agent Builder.

    Confirmation message