Getting Started with DeskDirector
DeskDirector Portals
Browser Support
What is the DeskDirector Admin Portal?
What is the DeskDirector Tech Portal
What is the DeskDirector Client Portal?
Desktop Portal
Managing Your Account
Admin Essentials
DeskDirector Features Overview
Logging in to DeskDirector
User Profiles & Profile Pictures
Managing Tickets with DeskDirector
Office Hours
Getting Started with the Solution Library
How Searching Works
Embedding Help Page Media
Get started with the DeskDirector Power Automate Connector
Features
Portal Customization
Forms
Service Catalogue
Communication
Email Connectors
Notifications
Email Notifications
Actionable Messages for Emails
Real-Time Chats
Email Template Engine
Surveys
Broadcasts
Generative AI
DeskDirector with Generative AI
Ticket Summary for TECH Portal
Setting up AI Service Providers
Microsoft Foundry for DeskDirector
Knowledge Bases for AI Assistants
Custom Tools for AI Assistants
AI Assistants in DeskDirector
Advanced
Login & Authentication
Contact Groups
Custom Domains
File Storage
Dashboard
Accounts
Contacts
Approvals
Tags
Task Lists
The Learning Center
Portal Deep Linking
Auditing & Analytics
Microsoft Power Automate
Actions
Solutions
Featured Solution: Teams Ticket Discussion
Power Automate Template Gallery
Featured Solution: Ticket Briefing
Power Automate Administration
DeskDirector Power Platform Connector Reference
Power Automate Connector - Setting up your first flow
Microsoft Teams App
Introducing the DeskDirector for Microsoft Team App
Installing the Microsoft Teams App (Client Mode)
Installing the Microsoft Teams App (TECH Mode)
Setting up Tags for Teams Discussions (TECH Portal)
Branding the DeskDirector Teams App
DeskDirector Teams App Notifications
Contact Groups Integration with Microsoft Teams
Setting up Content Security Policy (CSP)
Advanced topic: Setting up Tech & Client Mode in the same tenancy
Integrating Microsoft Teams with DeskDirector Tech Portal
Smart Alerts for TECH Users
Integrations
Developer Resources
Getting Started
What is the Toki Iti API
API Versions & Routes
Roles & Scopes
Authorization Options
Querying the API
How to Change an Entity Through the API
API Key Authorization
OAuth Fundamentals
Understanding OAuth for Tokity Integrations: Key Concepts
OAuth Authorization Code Flow: How an App Gets Access to Tokity
OAuth App Registration
How to Register an OAuth App to Integrate with Tokity
Choosing an OAuth App Type: Confidential vs. Public Apps and Client Secrets
OAuth Personal Secrets: What They Are and When to Use Them
OAuth Administration
Configuring OAuth Settings in Tokity
Managing OAuth Authorized Sessions and User Consent
Granting OAuth Admin Consent at the Root Level
API Response Control
Uploading Attachments (Ticket API)
The Prefer Header — Overview
Controlling Returned Data (Ticket API)
Controlling Returned Data (Form Result API)
Controlling Returned Data (Workspace API)
Workspace Ordering
How Workspace Ordering Works
Creating and Reordering Workspace Groups
Adding and Reordering Tickets in a Workspace Group
Data Sync & Notifications
Delta API: Tracking Changes Over Time
Webhooks vs. Events — Differences, When to Use Which
Verifying Webhook and Event Payloads (HMAC Signature)
Ticket Widgets
Ticket Widget: Overview
How the Widget Is Requested
Ticket Widget Anatomy and Styling
Ticket Widget Actions: Leading, Secondary and Primary
Ticket Widget: Progress Type
Ticket Widget: List Type
Ticket Widget: Description Type
Ticket Widget: Form Type
Ticket Widget: Control When a Widget Refreshes
Ticket Widget: Form Results and State Across Steps
Ticket Widget: Error Responses and Debugging
Ticket Widget: Building a Multi-Step Request
Glossary
Security
Troubleshooting
Troubleshooting via Web Developer Tools
Permissions & Access - Common Issues
Contact DeskDirector Support
Troubleshooting DeskDirector Connection Issues
Desktop Portal - Common Issues
Contact Impersonation
Approvals - Common Issues
Microsoft Teams App - Common Issues
Email & Email Delivery - Common Issues
Login & Authentication - Common Issues
DeskDirector Desktop App - Installation Issues
- All Categories
- Developer Resources
- Getting Started
- Roles & Scopes
Roles & Scopes
Updated
by Helpdocs Admin
Access to the Toki Iti API is controlled by two layers working together: an agent's role, and — when accessing the API via API key or OAuth — scopes. Roles define what a person can do inside our UI; scopes define what an integration is allowed to do on that person's behalf.
Agent roles
Toki Iti has two kinds of users, stored in separate tables: Agents (internal staff) and Contacts (end customers). Agents are assigned one of four roles, each building on the one before it:
Role | Description |
Agent | Base role for standard technicians |
Advanced Agent | Group leader — for organizations with a "small manager" layer above base agents |
Admin | Manages Client Portal settings — e.g., which queues contacts can access, branding, etc. |
Master Admin | Full tenant-level control — email connectors, delivery settings, API keys, OAuth settings, and more. Think of this as the tenant's "owner" or web administrator. |
All TECH Portal API access is both role-bound and scope-bound — a request needs the right role and the right scope to succeed.
What are scopes?
Scopes are a newer addition that work alongside roles, adding a second axis of control. While a role determines what an agent can do in our UI, a scope determines what an integration — connecting via API key or OAuth — is allowed to do on that agent's behalf.
Every agent inherently has access to everything their role allows. But when an integration connects on their behalf, scopes narrow that down to exactly which resources and actions the integration is permitted to use. In short: roles govern people, scopes govern integrations.
Scope naming pattern
Most entities expose scopes using a read, read_write, and occasionally admin suffix:
agent:readagent:read_writeagent:admin
The admin suffix is rarely used to gate an entire endpoint. It's more commonly used to gate specific properties within an entity. Some properties can only be modified by users with Admin or Master Admin roles — scopes let a tenant grant an integration limited write access (read_write) without exposing those higher-privilege fields (admin).
Are restricted properties still returned?
Yes, always. These properties are typically permission-related (e.g., which queues someone can access), and returning them has no performance cost — we're not querying a traditional SQL database under the hood. Being able to see a permission doesn't mean you can see the data it governs (e.g., you still can't see tickets you don't have access to). Scope restrictions on these properties apply only to write operations, and only for a handful of entities.
Where scopes come into play
You'll see required scopes listed directly in each endpoint's description in Swagger. Scopes matter most when:
- You're creating an API key and choosing which scopes to grant it.
- You're setting up an OAuth app and a user is asked to consent to specific scopes.
👉 See Authorization Options for how scopes are applied when using API keys vs. OAuth.
Where to go next
- Authorization Options — API key vs. OAuth, and how scopes apply to each
- API Versions & Routes — how routes map to portals and user types