PyCentral
Version Note
This guide applies to PyCentral
v2.0a19and above. If you are on an earlier version, see Upgrading from PyCentral v1 to v2.
If you are automating MSP workflows in Python, PyCentral provides a higher-level option than building the raw token exchange flow yourself.
MSPBase is PyCentral's connection class for MSP workflows. Instead of manually generating MSP tokens, exchanging into per-tenant tokens, refreshing expired tokens, and reusing tenant connections across repeated operations, you can use MSPBase to handle that lifecycle for you.
Features
- Single credential — one set of API credentials drive the entire workflow, at both MSP and tenant level
- MSP-level API access — make Central and GLP calls directly from the MSP workspace
- Automatic token exchange — step into any tenant scope without writing the exchange flow yourself
- Tenant-level API access — make Central and GLP calls scoped to a specific tenant
- Per-tenant connection caching — each tenant connection is cached and reused, avoiding repeated round token exchanges
- Automatic token refresh — expired MSP and tenant tokens are renewed and retried transparently
Learn more
For the full workflow, credential model, token exchange behavior, retry handling, and example automation snippets, see MSP Automation with PyCentral.
Updated about 14 hours ago
What’s Next