1. What you'll do
In this guide, you'll learn how to:
- Create scopes for your application's APIs.
- Define which API endpoints are associated with each scope.
- Configure scope visibility to control who can discover and request a connection.
- Import multiple scopes using JSON.
- Manage existing scopes in OXU Developer.
2. Why it matters
When your application provides APIs that other applications need to access, you can use OAuth 2.0 scopes to define the capabilities available to API consumers.
By exposing scopes through OXU Developer, you can:
- Share API capabilities: Define which APIs other applications can request access to.
- Control discoverability: Decide whether scopes are private, available within your organization, or discoverable across the OXU ecosystem.
- Simplify API integration: Allow consumers to identify the capabilities they need.
- Improve security: Organize API access around clearly defined scopes rather than exposing unrestricted API access.
Important: Making a scope discoverable does not automatically grant API access. Consumer applications must still be authorized to request the scope, and your API must validate access tokens and enforce the appropriate access rules.
3. How exposed scopes work
An API Provider defines scopes representing the capabilities other applications may request.
For example, a Helpdesk application may expose:
| Scope | Description | Associated APIs |
|---|---|---|
tickets.read | Read helpdesk tickets | GET/api/v1/tickets, GET/api/v1/tickets/:id |
tickets.create | Create helpdesk tickets | POST/api/v1/tickets |
tickets.manage | Manage existing tickets | PUT/api/v1/tickets/:id, DELETE/api/v1/tickets/:id |
An API Consumer can discover eligible scopes and request access through Ecosystem Connection.
Once authorized, the consumer can request an access token containing the permitted scopes and use that token to call the provider's protected APIs.
The API Provider is responsible for validating the token and checking whether the requested operation is permitted.
4. Before you begin
Make sure you have:
- An active OXU account.
- Permission to manage applications in OXU Developer.
- An existing application that provides APIs.
- A Resource Server configured for your application's protected APIs.
- A clear understanding of the API operations you want to expose.
Before creating scopes, identify which operations consumers should be allowed to perform and how those operations should be grouped.
5. Steps
Exposing scopes involves four main steps:
- Open Scopes: Access the scope management page for your application.
- Define scopes: Create scopes individually or import multiple scopes using JSON.
- Configure visibility: Choose which applications can discover and request each scope.
- Review and manage: Verify the scope configuration and maintain it as your APIs evolve.
6. How to?
Step 1. Open Scopes
- Sign in to OXU Developer.
- Navigate to App management.
- Select the application whose APIs you want to expose.
- In the left sidebar, expand Access control.
- Select Scopes.
The Scopes page displays the scopes defined for your application.
If no scopes exist, you can choose:
- Add scope: Create a scope manually.
- Import JSON: Create multiple scopes at once.
Step 2. Create a scope
- Click Add scope.
- Complete the required fields in the Add scope panel.
| Field | Required | Description |
|---|---|---|
| Code | Yes | Unique identifier used when requesting the scope. |
| Name | Yes | Human-readable name describing the scope. |
| Description | Yes | Explains what access the scope provides. |
| APIs | Yes | One or more API endpoints associated with the scope. |
| Visibility | No | Controls which applications can discover and request the scope. Defaults to Private. |
Example: Read tickets
- Code:
tickets.read - Name:
Read tickets - Description:
Read helpdesk tickets - APIs:
GET/api/v1/tickets,GET/api/v1/tickets/:id - Visibility:
OXU Ecosystem
This scope represents read access to the Helpdesk application's ticket APIs.
Step 3. Configure Scope Visibility
The Visibility field determines which applications can discover and request a connection to your scope.
OXU supports three visibility levels:
| Visibility | Description |
|---|---|
| Private | The scope is not available for connections. This is the default setting for newly created scopes. |
| Internal | Only applications within your organization can discover and connect to the scope. |
| OXU Ecosystem | Applications across the OXU ecosystem can discover and request a connection to the scope. |
Choose Private when:
- The scope is not ready to be shared.
- You want to keep the scope unavailable for new connections.
Choose Internal when:
- The API is intended for applications within your organization.
- You want to support internal application-to-application integrations.
Choose OXU Ecosystem when:
- Your API is intended for applications from other organizations.
- You want eligible developers across the ecosystem to discover and request access to the scope.
Important: Visibility controls discoverability and connection eligibility. It does not replace API authorization or automatically grant access tokens.
After choosing the appropriate visibility, click Add scope to save.
Step 4. Import multiple scopes using JSON
If your application exposes multiple API capabilities, you can import scopes in bulk.
- Navigate to Access control → Scopes.
- Click Import JSON.
- Paste a JSON array containing your scope definitions.
Example:
[
{
"code": "user.read",
"name": "Read users",
"apis": ["GET/api/v1/users"],
"description": "Read user records",
"visibility": "ecosystem"
},
{
"code": "user.manage",
"name": "Manage users",
"apis": [
"POST/api/v1/users",
"PUT/api/v1/users/:id"
],
"description": "Create and update users",
"visibility": "internal"
},
{
"code": "admin.manage",
"name": "Manage admin",
"apis": [
"POST/api/v1/admin",
"PUT/api/v1/admin"
],
"description": "Full admin management",
"visibility": "private"
}
]Supported visibility values in the example are:
privateinternalecosystem
- Click Review new scopes.
- Review the scope definitions.
- Complete the import.
After a successful import, the new scopes appear on the Scopes page.
Note: Review the JSON structure, API endpoints, and visibility settings before importing to avoid unintentionally exposing sensitive API capabilities.
Step 5. Review and manage existing scopes
Once scopes have been created, they appear as cards on the Scopes page.
Each scope displays:
- Scope name.
- Scope code.
- Description.
- Number of associated APIs.
- Visibility.
For example:
| Scope | Associated APIs | Visibility |
|---|---|---|
| Read tickets | 2 APIs | Private |
| Read users | 1 API | OXU Ecosystem |
| Manage admin | 2 APIs | Internal |
You can manage scopes using the available actions:
Edit a scope
- Locate the scope you want to update.
- Click the Edit icon.
- Update the supported scope information.
- Save your changes.
Delete a scope
- Locate the scope you want to remove.
- Click the Delete icon.
- Review any confirmation or dependency warning displayed by OXU.
- Confirm the deletion when appropriate.
Important: Before changing or deleting a scope used by existing consumers, evaluate the impact on connected applications. Changes to API access may cause existing integrations to fail.
7. Best practices for exposing scopes
Define scopes around clear capabilities
Each scope should represent a specific set of related API operations.
For example:
tickets.read— Read ticket information.tickets.create— Create new tickets.tickets.manage— Update or delete tickets.
Avoid combining unrelated or overly broad API capabilities into a single scope.
Apply the principle of least privilege
Expose only the capabilities that consumers need.
For sensitive administrative operations, consider keeping scopes Private or Internal unless external access is explicitly required.
Use clear scope names and descriptions
Provide names and descriptions that help other developers understand what access they are requesting.
For example:
- Code:
tickets.read - Name:
Read tickets - Description:
Read ticket details and retrieve the ticket list.
Review visibility before sharing
Before changing a scope to Internal or OXU Ecosystem, verify that the associated APIs are intended for those consumers.
Protect your APIs
Scope configuration alone does not secure your backend.
Your API should validate access tokens, verify their intended audience and authorized scopes, and reject unauthorized requests.
8. What's next?
Once your scopes are configured, you can continue with the Ecosystem Connection journey.
- Consume APIs from other apps: Learn how your application can connect to APIs exposed by other providers.
- Configure M2M Clients: Set up application credentials for machine-to-machine communication.
- Manage Scopes & API Access: Understand how API access is authorized for consumers.
- Test app-to-app connection: Verify that authorized consumers can access the intended APIs.
Related guides:
- Ecosystem Connection Overview.
- Set up Role-Based Access Control (RBAC) for your app.
Your application now has defined scopes that can be made discoverable to eligible consumers according to their visibility settings and the applicable authorization rules.