Study FAQ
How do I import an OpenAPI definition as a Power Platform custom connector?
Also asked as 2
- Which OpenAPI format and contract should I check before importing a custom connector?
- How do I check an OpenAPI operation before importing it for Power Apps or Power Automate consumers?
Answer
Use a reviewed OpenAPI 2.0 definition smaller than 1 MB for the documented custom connector import. Start from the API owner's release or a pinned repository file. Verify the scheme, host, base path, operation paths, security, parameters, and response schemas against the endpoint the connector will actually call.
In a development solution, select New > Automation > Custom connector > Import an OpenAPI file. Validate the General, Security, and Definition settings before saving. Check accompanying properties and script separately. If the base path already includes /api, the operation path should only provide its remaining segment.
Keep each released operationId and its required arguments stable for app and flow consumers. Choose a deliberate compatible extension or a new operation if the existing contract must stay supported. If a script flattens a backend response, describe the shape consumers receive in the connector definition. The backend still has to validate requests and produce the documented status codes.
Use an actual test connection and verify one operation independently from the consumer. Then inspect the generated or configured action in a development app or flow to confirm its request and response shape.
Microsoft references
Full explanation
AB-400: Custom Connectors with OpenAPI, Policies and Code
Study guide · AB-400
Read the full explanation