Authentication
Create AIPI keys, set scopes and access level, connect apps with OAuth 2.1, and check what each key can reach.
AIPI, the Intuidy REST API, and the Intuidy MCP server (the server AI assistants connect to through the Model Context Protocol) accept two credentials: an AIPI key you create in Intuidy, or an OAuth 2.1 access token an app receives when you sign in from it. Use this page to create either one, set its scopes and access level, and check what it can reach.
Before you start
- You need access to Settings → AIPI Keys.
- For OAuth, the app must support the authorization code flow with PKCE.
Create an AIPI key
- Go to Settings → AIPI Keys.
- Select Create key.
- Enter a Name. Name the key after the system that holds it; the name identifies the key in the activity feed.
- Choose an Access level.
- Select the scopes the key needs, or select Grant standard access.
- Under Sensitive data, select what the key may do with items marked sensitive.
- To set an expiry, enter a date in Expires (optional).
- Select Create key.
- On Your key is ready — connect it, select Copy key and store the secret somewhere safe.
The secret is shown only once, on this screen. Everything else on the screen stays available afterwards. The key appears in Settings → AIPI Keys with the status Active.
| Option | What it does |
|---|---|
| Just me | The key reaches only your own workflows and notebooks. |
| Whole company | The key reaches everything in the organization. |
| Grant standard access | Selects every standard scope family. It leaves out connected services, data rule writes, users and roles, and approvals; select those by name. |
| Clear all | Clears every selected scope. |
| Allow reading items marked sensitive | Lets the key read items marked sensitive. |
| Allow writing to items marked sensitive | Lets the key write to items marked sensitive. |
| Expires (optional) | The date the key expires. Leave it empty for a key with no expiry. |
The screen that opens after you create a key has these items:
| Item | What it does |
|---|---|
| Copy setup prompt | Copies a prompt to paste into an AI assistant or MCP client. It carries the key, the endpoints, and what the key is allowed to do. |
| Copy key | Copies only the secret, for an environment variable. |
| What this key can do | Lists the key's scopes. |
| Call it | Shows example calls for the key. Intuidy doesn't store the secret, so the examples show a placeholder; paste the key you saved. |
| Connected apps | Lists apps that signed in through OAuth and use this key's access. |
The same screen offers the desktop extension for Claude Desktop. See MCP server.
Send the credential
Send the AIPI key or OAuth access token in the Authorization header of every request.
curl https://vantage.intuidy.com/api/v1/workflows \
-H "Authorization: Bearer $INTUIDY_API_KEY"$INTUIDY_API_KEY is an environment variable that holds the secret you copied. The MCP server takes the same header.
Choose scopes
A scope sets what a key or OAuth access token may do. A key reaches an operation, or sees an MCP tool, only when one of its scopes covers it. The key screens list scopes by these labels, in four groups.
| Group | Family | Scopes |
|---|---|---|
| REST API | Workflows | Read Workflows, Create / Edit / Delete Workflows, Execute Workflows |
| REST API | Templates | Browse Solution Templates, Install / Upgrade / Uninstall Templates |
| REST API | Ontology | Read Objects & Glossary, Edit Objects & Glossary (incl. discovery + AI enrich) |
| REST API | Data rules | Read Data Rules & Governance Activity, Create / Edit / Delete Data Rules |
| REST API | Agents | Read Agents, Teams & Skills, Create / Edit / Delete Agents, Teams, Tasks & Skills, Run Agents & Teams |
| REST API | Users and roles | Read Org Users & Roles, Create / Edit / Delete Users & Roles |
| REST API | Approvals | Read Pending Approvals & Standing Grants, Approve / Reject Held Actions & Manage Grants |
| Assets (AI assistants only) | Notebooks | Read Notebooks, Create / Edit / Delete Notebooks |
| Assets (AI assistants only) | Dashboards | Read Dashboards, Create / Edit / Delete Dashboards |
| Assets (AI assistants only) | Managed databases | Read Managed Databases (list, tables, health, SELECT), Write to Managed Databases (rows and table DDL) |
| Assets (AI assistants only) | Knowledge base | Search the Knowledge Base |
| Connected services | Connected services | Read Connected Services (Gmail, Drive, ...), Write to Connected Services (send mail, create files) |
| MCP (AI assistants) | All Intuidy asset families | Full MCP Access, Read & Write MCP Access |
These rules apply:
- Assets (AI assistants only). No REST operation serves these scopes. They apply through the MCP server, and any one of them lets the key connect to it.
- Connected services. These scopes reach the accounts behind your integrations directly, such as Gmail, Drive, Docs, Calendar, and Jira. No blanket grant includes them.
- MCP (AI assistants). The blanket scopes
mcp,mcp:read, andmcp:writecover the Intuidy asset families at once. They never cover connected services, data rule writes (policies:write), users and roles, or approvals. Grant each of those by name. Prefer the narrower scopes. - Templates that create or delete a managed database. Installing or removing a template that creates or deletes a managed database also needs Write to Managed Databases (
databases:write) granted by name. A blanket grant doesn't cover it.
An API call made with Write to Connected Services has no approval step. Mail it sends goes out from your users' own addresses.
Edit or revoke a key
- Go to Settings → AIPI Keys.
- On the key's row, select Edit name, scopes & expiry.
- Change the name, the scopes, or the expiry date. Clear the date to remove the expiry.
- Select Save changes.
The secret doesn't change, so any system that already holds the key keeps working.
To revoke a key, select Revoke this key on its row, then select Revoke. The key's Status changes to Revoked.
The list shows each key's Name, Key, Status (Active, Expired, or Revoked), Can do, and Last used.
Connect an app with OAuth 2.1
An app that supports OAuth 2.1 gets its own access when you sign in from it, so you don't paste a key into the app.
- Start the connection from the app. The app opens the Intuidy consent screen.
- Sign in to Intuidy if asked.
- Check Signed in as, App identity, and Sends code to.
- Select Use an existing key or Choose permissions.
- If you selected Choose permissions, select the scopes and choose an Access level.
- Select Connect.
- When the page tells you to return to the application, go back to the app. You can close the window.
| Option | What it does |
|---|---|
| Use an existing key | The app gets that key's access. It doesn't receive the key. |
| Choose permissions | Grants exactly the scopes you select, for this app only. |
| Just me | The app reaches only your own workflows and assets. |
| Whole company | The app reaches everything in the organization. Requires admin permissions. |
If the app can run workflows and agents, allowing writes to sensitive items lets those runs write through connections marked sensitive.
When Sends code to shows an address on your own computer, any program running there could claim the app's identity. Continue only if you started the connection yourself, just before the screen opened.
A grant made by signing in appears in Settings → AIPI Keys, marked as granted by signing in from an MCP client (OAuth). Revoke it there to disconnect the app. For an app that uses an existing key, select Disconnect under Connected apps on that key's connect screen.
OAuth endpoints
The OAuth endpoints are on the same host as the API.
| Endpoint | What it does |
|---|---|
/oauth/register | Registers a client. Returns invalid_redirect_uri or invalid_client_metadata when the registration is refused. |
/oauth/authorize | Shows the consent screen. |
/oauth/token | Exchanges an authorization code or a refresh token. grant_type is authorization_code or refresh_token. |
/oauth/revoke | Revokes a token. token is required. |
The token endpoint requires PKCE. Its errors include:
error | Returned when |
|---|---|
invalid_request | code, code_verifier, or refresh_token is missing for its grant type. |
invalid_grant | redirect_uri does not match the authorization request, or PKCE verification fails. |
invalid_target | resource does not match the authorization request. |
unsupported_grant_type | grant_type is neither authorization_code nor refresh_token. |
resource names what the token is for: the REST API or the MCP server.
See what a key can reach
- In the web app. Go to Ontology → AIPI Keys to see what each key can reach and its recent calls. The link See what each key can reach and what it has been doing in Settings → AIPI Keys leads there.
- On the key's connect screen. What this key can do lists the key's scopes.
- From an MCP client. Call the
get_key_infotool. It returns the key's scopes and the capabilities hidden from the key.
Troubleshooting
- An MCP tool is missing. Tool lists are filtered per key, so a missing tool means a missing scope. Call
get_key_infoto find the scope, add it in Settings → AIPI Keys, then reconnect the client. A client reads its tool list when it connects. Unauthorized: Missing or invalid Bearer token. TheAuthorizationheader is missing or its value isn't a valid credential. The response carriesinvalid_tokenin theWWW-Authenticateheader. Check the header and the key's Status.insufficient_scope. The key or access token lacks the scope the operation needs. Add the scope to the key, or connect the app again with that scope selected.- "This key has no API or MCP scopes". The key has no scopes, so it can't call anything. Edit the key and select at least one scope.
- You lost the secret. It can't be shown again. Create another key, update the system that used the old one, and revoke the old key.
- "This connection request can't be completed". The connecting app could not be verified, or the connection could not be recorded. Nothing was connected. Close the window and start the connection again from the app.
- "The app did not open". The app may no longer be listening for the sign-in. Start the connection again from the app, or close the window.
Status codes and the error envelope are on Errors, pagination and limits.
↳ Errors, pagination and limits