# How do I import an OpenAPI definition as a Power Platform custom connector?

Exam: AB-400 — Power Platform Developer Associate
Knowledge domain: Develop integrations (10–15%)
Updated: 2026-11-25T06:47:24.189565+00:00
HTML: https://learningpathx.com/faq/AB-400/ab400-custom-connector-openapi-import-contract.html

## Also asked as

- 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?

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**

* [Create a custom connector from an OpenAPI definition](https://learn.microsoft.com/en-us/connectors/custom-connectors/define-openapi-definition)
* [Custom connectors overview](https://learn.microsoft.com/en-us/connectors/custom-connectors/)
* [GitHub - microsoft/PowerPlatformConnectors: This is a repository for Microsoft Power Automate, Power Apps, and Azure Logic Apps connectors · GitHub](https://github.com/microsoft/PowerPlatformConnectors)

Source: [AB-400: Custom Connectors with OpenAPI, Policies and Code](https://learningpathx.com/news/ab-400-custom-connectors-with-openapi-policies-and-code.html)
