Supported Swagger Connector Types
Add a Swagger connector type to authorize ThingWorx Flow to execute Swagger actions. ThingWorx Flow supports the following connector types for Swagger:
Basic
None
OAuth
OAuth (Named User)
OAuth (Session User)
* 
Before you create a Swagger OAuth connector, ensure that you load Swagger OAuths to the ThingWorx Flow server.
Adding an App Key connector
1. Drag any action under Swagger to the canvas, place the pointer on the action, and then click or double-click the action.
2. For Connector Type, select App Key.
3. In the Swagger App Key list, select Add New.
4. Edit the Connector Label field, if you want. Labels are case-sensitive. Do not use spaces, special characters, and leading numbers.
5. In the Swagger Url field, enter the swagger.json file URL. For example: https://petstore.swagger.io/v2/swagger.json
6. In the App Key field, enter the Swagger application key.
7. Click ADD to add the Swagger App Key connector.
Adding a Basic connector type
1. Drag any action under Swagger to the canvas, place the pointer on the action, and then click or double-click the action.
2. For Connector Type, select Basic.
3. In the Swagger Basic list, select Add New.
4. Edit the Connector Label field, if you want. Labels are case-sensitive. Do not use spaces, special characters, and leading numbers.
5. In the Swagger Url field, enter the swagger.json file URL. For example: https://petstore.swagger.io/v2/swagger.json
6. In the User Name and Password fields, enter the correct user name and password.
7. Click ADD to add the Swagger Basic connector.
Adding a None connector
1. Drag any action under Swagger to the canvas, place the pointer on the action, and then click or double-click the action.
2. For Connector Type, select None.
3. In the Swagger file URL field, enter the swagger.json file URL. For example: https://petstore.swagger.io/v2/swagger.json
Adding an OAuth connector type
1. Drag any action under Swagger to the canvas, place the pointer on the action, and then click or double-click the action.
2. For Connector Type, select OAuth (Named User) or OAuth (Session User).
3. In the Swagger OAuth list, select Add new Swagger login – Named User or Add new Swagger login – Session User.
* 
If you have not loaded Swagger OAuths to the ThingWorx Flow server, this option is not available.
4. In the Parameters window, enter the Resource URL, and click ALLOW.
5. Provide your user name and password to log in to Swagger.
6. Review the scope permissions, and click Allow.
7. Edit the Connector Label, if you want. Labels are case-sensitive. Do not use spaces, special characters, and leading numbers.
8. Click ADD to add the Swagger OAuth connector.
Was this helpful?