| Direct mode | Provider mode | |
|---|---|---|
| Who uses the agents | Your own team | Your customers' people |
| MCP users and roles | One list for the workspace | Separate for each customer |
| Company-wide credentials | One set per platform | One set per customer and platform |
| Platform visibility | One setting per platform | Your default, which each customer can override |
| How users are added | Invited from the dashboard | Created by your product through the Management API, or from the dashboard |
https://api.makini.io/mgmt. Request a token with your application's Client ID and Client Secret, using the client_credentials grant:mcp:provider:manage scope, which covers every route used here. Tokens last an hour, and a client_credentials response includes no refresh token, so request a new one when it expires. See Access tokens.externalId is your own ID for the customer, such as your account ID, and it must be unique within your application. name is optional.{
"endCustomer": {
"id": "7f0c1d7e-4b1a-4f3e-9f55-2a8f1c0d9b12",
"clientId": "<your Client ID>",
"externalId": "acct_4821",
"name": "Northwind Utilities",
"userCount": 0,
"createdAt": "2026-09-25T10:00:00Z",
"updatedAt": "2026-09-25T10:00:00Z"
}
}{"endUser": {…}} with the user's id, roleId and roleName. Leave out roleId to give the user the customer's default role.{
"id": "5d1f0c1e-…",
"token": "eyJhbGciOi...",
"tokenEndpoint": "https://…/token",
"agentClientId": "…",
"resource": "https://mcp.makini.io/<clientId>"
}verify_platform_authentication for a platform the user hasn't connected, it gets a Makini Link URL. Show that URL to the user. They open it, sign in to their system once, and the agent carries on.token is a long-lived OAuth refresh token for one MCP user. Makini returns it once and doesn't store it, so keep it in your secret store.refresh_token grant at the tokenEndpoint, using the agentClientId from the same response. No client secret is needed:access_token as a Bearer token to your MCP server, https://mcp.makini.io/<clientId>, from any MCP client library. Redeem again whenever the access token expires. The refresh token itself doesn't change.id is what you list and revoke it by.{"state": "connected", "connectionId": "…"} when the customer's company-wide credentials cover everything the platform asks for. Otherwise it answers {"state": "absent", "linkAuthorizeUrl": "https://…"}: open that Makini Link URL for whoever holds the credentials the agent should use.list_platforms, and it is never given a Makini Link URL.