umbraco-openapi-client
Installation
SKILL.md
Umbraco OpenAPI Client Setup
CRITICAL: Why This Matters
NEVER use raw fetch() calls for Umbraco backoffice API communication. Raw fetch calls will result in 401 Unauthorized errors because they don't include the bearer token authentication that Umbraco requires.
ALWAYS use a generated OpenAPI client configured with Umbraco's auth context. This ensures:
- Proper bearer token authentication
- Type-safe API calls
- Automatic token refresh handling
When to Use This
Use this pattern whenever you:
- Create custom C# API controllers with
[BackOfficeRoute] - Need to call your custom APIs from the backoffice frontend
- Build trees, workspaces, or any UI that loads data from custom endpoints