Tenant ID

The Logic API supports multitenancy, allowing you to separate data and behavior for each of your customers. By including a tenantId in your request, you tell Logic which customer the execution belongs to. Logic will keep data, learning, and behavior isolated for each tenantId, ensuring that one customer’s data is never used to influence another’s. Even if you’re not using dynamic learning yet, you can include a tenantId in your executions. That way, if you enable dynamic learning later, it will automatically stay isolated per tenant.
Learn more about the Logic’s dynamic learning in the Dynamic Learning section.

Isolating Dynamic Learning with tenantId

When using dynamic learning, you can isolate the learning process by specifying a tenantId parameter. This allows you to test and evaluate the impact of dynamic learning on different sets of executions without affecting the overall learning process. This is especially useful when serving multiple tenants, as it ensures each one’s learning data remains isolated.

Example with useDynamicLearning & tenantId

Below are example requests using both useDynamicLearning=true and tenantId to isolate learning for a specific customer.
curl -X POST 'https://api.logic.inc/2024-03-01/documents/{document_id}/executions?useDynamicLearning=true&tenantId={tenant_id}' 
    -H "Authorization: Bearer $LOGIC_API_TOKEN" 
    -H "Content-Type: application/json" 
    -d '{
      /* your input JSON here */
    }'