dify_admin/docs/api
2025-06-01 17:52:27 +08:00
..
account_manager.md Implement Dify account creation with tenant association: 1. Create tenant named 'username's Workspace' 2. Set owner role for new account 3. Add normal role in ucas's Workspace 4. Fix UUID handling in tenant info retrieval 2025-06-01 17:52:27 +08:00
database.md Implement Dify account creation with tenant association: 1. Create tenant named 'username's Workspace' 2. Set owner role for new account 3. Add normal role in ucas's Workspace 4. Fix UUID handling in tenant info retrieval 2025-06-01 17:52:27 +08:00
encryption.md Implement Dify account creation with tenant association: 1. Create tenant named 'username's Workspace' 2. Set owner role for new account 3. Add normal role in ucas's Workspace 4. Fix UUID handling in tenant info retrieval 2025-06-01 17:52:27 +08:00
model_manager.md Implement Dify account creation with tenant association: 1. Create tenant named 'username's Workspace' 2. Set owner role for new account 3. Add normal role in ucas's Workspace 4. Fix UUID handling in tenant info retrieval 2025-06-01 17:52:27 +08:00
operation_logger.md Implement Dify account creation with tenant association: 1. Create tenant named 'username's Workspace' 2. Set owner role for new account 3. Add normal role in ucas's Workspace 4. Fix UUID handling in tenant info retrieval 2025-06-01 17:52:27 +08:00
provider_manager.md Implement Dify account creation with tenant association: 1. Create tenant named 'username's Workspace' 2. Set owner role for new account 3. Add normal role in ucas's Workspace 4. Fix UUID handling in tenant info retrieval 2025-06-01 17:52:27 +08:00
README.md Implement Dify account creation with tenant association: 1. Create tenant named 'username's Workspace' 2. Set owner role for new account 3. Add normal role in ucas's Workspace 4. Fix UUID handling in tenant info retrieval 2025-06-01 17:52:27 +08:00
tenant_manager.md Implement Dify account creation with tenant association: 1. Create tenant named 'username's Workspace' 2. Set owner role for new account 3. Add normal role in ucas's Workspace 4. Fix UUID handling in tenant info retrieval 2025-06-01 17:52:27 +08:00

Dify Admin API Documentation

Overview

This documentation covers the core API modules of the Dify Admin system. Each module provides specific functionality for managing the administration platform.

Module Documentation

Account Management

  • User account creation and management
  • Password hashing and verification
  • Tenant association

Tenant Management

  • Workspace/tenant creation
  • RSA key pair generation
  • Tenant search and retrieval

Model Management

  • AI model configuration
  • Model encryption and storage
  • Bulk operations

Provider Management

  • AI service provider management
  • API key encryption
  • Provider configuration

Database Operations

  • Connection pooling
  • SQL execution helpers
  • Database initialization

Operation Logging

  • Audit trail recording
  • Log querying
  • Log maintenance

Encryption Services

  • Hybrid encryption (RSA + AES)
  • Key management
  • API key protection

Getting Started

To use these APIs, import the required module and instantiate the appropriate class:

from api.account_manager import AccountManager
account_mgr = AccountManager()

Security Notes

  • All sensitive operations use encryption
  • API keys are never stored in plaintext
  • Detailed logging for audit purposes