API - App Registration

1. Set Up Teams PowerPack API Access

What you are configuring

Create a client application owned by your organization. Power BI, Postman, Microsoft Fabric, or another integration uses this application to sign in and request data. 
Important distinction: The enterprise application supplied by Team Venti represents the API. The client application is created and owned by your organization.

Step 1: Approve the Teams PowerPack application

  1. Sign in to the Teams PowerPack portal with the Global Administrator account for your tenant.
  2. Select Admin Consent from the portal navigation.
  3. Review the requested permissions and confirm the organization shown is your tenant.
  4. Select Accept.
  5. Open the Microsoft Entra admin center.
  6. Go to Identity > Applications > Enterprise applications.
  7. Search for SS-PRD-AppRegistration.
  8. Open the application and confirm it exists and is enabled. 


Step 2: Create your client application 

The client ID and client secret created here belong to your organization.

2.1 Start the registration 

  1. In Microsoft Entra admin center, confirm the correct tenant is shown in the account menu. 
  2. Go to Identity > Applications > App registrations. 
  3. Select New registration. 

2.2 Complete the registration form 

  1. In Name, enter Teams PowerPack API Client or another descriptive name. 
  2. For Supported account types, select Accounts in this organizational directory only (Single tenant). 
  3. Under Redirect URI, select Web. 
  4. Enter the redirect URI required by the tool that will consume the API. 
  5. Select Register.

Tool 

Platform 

Redirect URI 

Postman 

Web 

https://www.postman.com/oauth2/callback 

Power BI Desktop custom connector 

Web 

https://oauth.powerbi.com/views/oauthredirect.html 


2.3 Save the identifiers 

  1. On the Enterprise Application Overview page, copy Application (client) ID and store it as {CLIENT_APP_ID}.
  2. Confirm Directory (tenant) ID matches {CUSTOMER_TENANT_ID}.
  3. Do not use {ENVIRONMENT_API_CLIENT_ID} as the client ID. That value identifies the API and is used in the scope. 

Step 3: Create a client secret 

  1. In the client application, select Certificates & secrets. 
  2. Open Client secrets and select New client secret. 
  3. Enter a description, such as Teams PowerPack API integration. 
  4. Choose an expiration period that follows your security policy. 
  5. Select Add. 
  6. Immediately copy the text in the Value column and store it as {CLIENT_APP_SECRET}. Do not copy the Secret ID. 
  7. Record the expiration date and assign an owner to rotate the secret before it expires. 

Step 4: Add the delegated API permission 

  1. In the client application, select API permissions. 
  2. Select Add a permission. 
  3. Select APIs my organization uses. Do not select Microsoft Graph. 
  4. Search for SS-PRD-AppRegistration. 
  5. Select the application whose name and Application ID match the values provided by Team Venti. 
  6. Select Delegated permissions. 
  7. Select Spark.Client.Public. 
  8. Select Add permissions. 
  9. Back on API permissions, confirm Spark.Client.Public appears. 
  10. Select Grant admin consent for your tenant. 
  11. Select Yes in the confirmation prompt. 
  12. Confirm the Status column shows Granted for your organization. 

Step 5: Verify the complete setup


Check 

Location 

Expected result 

Tenant 

Application Overview 

Directory ID equals {CUSTOMER_TENANT_ID} 

Account type 

Overview or Authentication 

Single tenant 

Redirect URI 

Authentication > Web 

Exact URI required by the consuming tool 

Client ID 

Overview 

Saved as {CLIENT_APP_ID} 

Client secret 

Certificates & secrets 

Active; Value stored securely 

Permission 

API permissions 

Spark.Client.Public 

Consent 

API permissions 

Granted 

Enterprise application 

Enterprise applications 

SS-PRD-AppRegistration exists and is enabled 

Troubleshooting 

Problem 

What to check 

API application is not found 

Complete Step 1, confirm the tenant, wait a few minutes, and search using the exact name from Team Venti. 

Grant admin consent is unavailable 

Use Global Administrator or confirm your tenant allows Privileged Role Administrator consent. 

Redirect URI mismatch 

Verify the Web platform and exact redirect URI, including protocol, capitalization, and slash. 

invalid_client 

Use the client secret Value, not Secret ID, and verify it belongs to {CLIENT_APP_ID} and is not expired. 

Tenant mismatch 

Verify the tenant ID, client application tenant, and signed-in organizational account. 

403 response 

Confirm Spark.Client.Public is delegated and its status is Granted.