Skip to content

Create Tenant

Create a tenant for an agent's MCP Server.

POST /mcpservers/{mcpserver_id}/tenants


mcpserver_id string Required

The ID of the MCP Server to create a tenant for.



tenant object Required

Key value pair where key is the tenant identifier key which maps to a user profile on the OAuth server and the value is the database scope for the tenant.


Request
import Inconvo from "@inconvoai/node";
const inconvo = new Inconvo({
apiKey: process.env.INCONVO_API_KEY
});
const tenant = await client.mcpServers.tenants.create(
"mcp_123",
{
tenant: { "try@inconvo.com": { organisationId: 1 } },
}
);
console.log(tenant)
Response
{ "try@inconvo.com": { "organisationId": 1 } }
curl -X POST "https://app.inconvo.ai/api/v1/mcpservers/mcp_123/tenants" \
-H "Authorization: Bearer $INCONVO_API_KEY" \
-H "Content-Type: application/json" \
-d '{tenant: {"try@inconvo.com": { organisationId: 1 }} }'
Response
{ "try@inconvo.com": { "organisationId": 1 } }