Power Automate

Build Power Automate flows and Power Apps that create, find, and update xpntl work through a workspace-scoped custom connector.

The definition uses Swagger/OpenAPI 2.0 for Power Platform custom-connector import. It targets https://api.xpntl.ai/v1 and includes 34 actions for issues, comments, projects, project lists, labels, teams, users, and API health.

Before you start

  • A Power Automate or Power Apps plan that supports custom connectors
  • An xpntl workspace and permission to create an API key
  • The downloaded connector definition above

1. Create an API key

  1. Open xpntl and go to Settings → API Keys.
  2. Select Create API Key and give it a name such as Power Automate.
  3. Select only the scopes required by your flows.
  4. Copy the key when it appears. xpntl shows it once.

For access to every action in the connector, select these scopes:

ResourceScopes
Issuesissues:read, issues:write
Commentscomments:read, comments:write
Projectsprojects:read, projects:write
Labelslabels:read, labels:write
Teamsteams:read
Usersusers:read

2. Import the connector

  1. In Power Automate, open Data → Custom connectors.
  2. Select New custom connector → Import an OpenAPI file.
  3. Choose the downloaded xpntl-power-automate.swagger.json file.
  4. Review the imported host api.xpntl.ai and base URL /v1.
  5. Create or update the connector.

3. Create the connection

The imported Security settings should read:

SettingValue
Authentication typeAPI Key
Parameter nameAuthorization
Parameter locationHeader

When Power Platform asks for the API key, enter the complete header value:

Bearer xp_live_your_key_here

Include the word Bearer, one space, and the key. Do not add quotation marks. Power Platform's API Key authentication does not add the Bearer prefix for you.

4. Test the connector

  1. Open the connector's Test tab.
  2. Select the connection you created.
  3. Run List projects or List issues.
  4. Confirm the response contains resources from the API key's workspace.
Power Platform's test harness can display skipAuthorization: true for its own maker session. That does not disable the API-key connection. The selected connection still supplies the xpntl Authorization header.

Project keys and project IDs

A project key such as CX is a readable prefix, not the value accepted by projectId. Connector v1.1.0 loads project choices through List projects, displays the project name, and submits its internal id.

For an older flow, run List projects, find the object whose key is CX, and map its id into projectId. Do not map key.

Updating an existing connector

  1. Download the current JSON definition from this page.
  2. Open the custom connector's General page and upload the new file.
  3. Save or update the connector.
  4. Reopen the flow action so Power Automate refreshes its inputs.
  5. Create a new connection if you changed or rotated the API key.

Troubleshooting

ProblemWhat to check
401 unauthorized Select a connection on the Test tab and enter Bearer xp_live_... as the connection value. If the connector was already saved, recreate the connection so it does not reuse the old credential.
CX is not a valid project ID Select the project from the dynamic list or map List projects → projects → id. A project key is not an ID.
Red error on a URL containing {key} or {id} Upload connector v1.1.0 or later. It declares every path input on the individual operation for compatibility with the Power Platform designer.

Keep the connection secure

  • Never put a real API key in the Swagger file, a flow input, a screenshot, or source control.
  • Store the key only in the Power Platform connection.
  • Use a dedicated key for each integration and select only the scopes it needs.
  • Revoke the key immediately from Settings → API Keys if it is exposed.
  • Flow owners and connection owners should be reviewed when sharing or exporting a flow.

Self-hosted xpntl

Before importing, change the JSON definition's top-level host from api.xpntl.ai to your API hostname. Keep basePath as /v1. Use HTTPS outside local development.