Skip to main content
The Assistants API will be deprecated on 16 August. Use the Agents API for new systems. Use the migration guide to move existing systems.
Using our API via a dedicated deployment? Just replace api.langdock.com with your deployment’s base URL: <deployment-url>/api/public
Enables or disables an assistant in your workspace. Disabled assistants cannot be used by workspace members until re-enabled.
This is an administrative action. Only workspace admins or users with appropriate permissions can disable/enable assistants.

Use Cases

  • Temporarily disable an assistant that needs maintenance or updates
  • Re-enable a previously disabled assistant
  • Control assistant availability during rollouts or testing

Request Parameters

Example

Response Format

Success Response (200 OK)

Error Handling

Behavior

When an assistant is disabled:
  • Users cannot start new conversations with the assistant
  • The assistant does not appear in the assistant library for regular users
  • Existing conversations may still be viewable but the assistant cannot respond
  • Admins can still view and manage the assistant
  • The assistant can be re-enabled at any time
Langdock intentionally blocks browser-origin requests to protect your API key and ensure your applications remain secure. For more information, please see our guide on API Key Best Practices.