Resource Server Management API
Resource servers in ThunderID define the permission namespace for a protected API or service; resources and actions nested within them form the permission strings used in role assignments. Resources can be nested hierarchically, and permissions are derived from the handle-based path structure. Resource Server identifier is required and must be unique within the system. An MCP resource server's identifier must be an http or https URL with no fragment. Resource, and Action handles are unique under it's parent and are immutable after creation and used directly for permission derivation. Resource parent hierarchy is immutable after creation.
Download the OpenAPI definition (YAML)
Security schemes
OAuth2: oauth2
authorizationCode flow, token URL https://localhost:8090/oauth2/token, authorization URL https://localhost:8090/oauth2/authorize
1 scopes
| Scope | Description |
|---|---|
system | Access to system management APIs |
clientCredentials flow, token URL https://localhost:8090/oauth2/token
1 scopes
| Scope | Description |
|---|---|
system | Access to system management APIs |
Resource Servers
Register and manage resource servers that define OAuth2 permission scopes.
List resource servers
GET /resource-servers
Scopes: system
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
limit | query | integer | Maximum number of records to return Default: | |
offset | query | integer | Number of records to skip for pagination Default: |
Responses
| Code | Description | Schema |
|---|---|---|
200 | List of resource servers | ResourceServerListResponse |
400 | Bad request | Error |
500 | Internal server error | Error |
Create a new resource server
POST /resource-servers
Creates a new resource server with the specified details.
Scopes: system
Request body (required): application/json
Schema: CreateResourceServerRequest
6 properties
| Name | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Name of the resource server |
description | string | Optional description of the resource server | |
identifier | string | Yes | Unique identifier for this resource server. When set to an absolute URI, the resource server is used in RFC 8707 resource indicator flows and clients can use this value in the resource parameter to request audience-restricted access tokens. For an MCP resource server, the identifier must be an |
type | string | Optional immutable type of the resource server (metadata only). Defaults to CUSTOM when not provided. Allowed values: | |
ouId | string (uuid) | Yes | ID of the organization unit this resource server belongs to |
delimiter | string | Optional delimiter character for permission hierarchy (defaults to ":", immutable after creation) |
Responses
| Code | Description | Schema |
|---|---|---|
201 | Resource server created | ResourceServer |
400 | Bad request | Error |
409 | Conflict | Error |
500 | Internal server error | Error |
Get resource server details
GET /resource-servers/{id}
Returns resource server metadata
Scopes: system
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string (uuid) | Yes |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Resource server details | ResourceServer |
400 | Bad request | Error |
404 | Resource server not found | Error |
500 | Internal server error | Error |
Update resource server
PUT /resource-servers/{id}
Updates resource server name, description, identifier, and organization unit.
Scopes: system
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string (uuid) | Yes |
Request body (required): application/json
Schema: UpdateResourceServerRequest
5 properties
| Name | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Name of the resource server |
description | string | Optional description of the resource server | |
identifier | string | Unique identifier for this resource server. When set to an absolute URI, the resource server is used in RFC 8707 resource indicator flows. When it changes on an MCP resource server, the new value must be an | |
ouId | string (uuid) | Yes | ID of the organization unit this resource server belongs to |
authorizationEngine | AuthorizationEngineConfig | Authorization engine configuration for the resource server. |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Resource server updated | ResourceServer |
400 | Bad request | Error |
404 | Resource server not found | Error |
409 | Conflict | Error |
500 | Internal server error | Error |
Delete a resource server by id
DEL /resource-servers/{id}
Deletes a resource server. Cannot delete if it has resources or actions.
Scopes: system
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string (uuid) | Yes |
Responses
| Code | Description | Schema |
|---|---|---|
204 | Resource server deleted | |
400 | Bad request | Error |
500 | Internal server error | Error |
Resources
Manage hierarchical resources within a resource server.
List resources in resource server
GET /resource-servers/{rsId}/resources
Returns a paginated list of resources. Use the parentId parameter to filter:
- No parentId: returns only top-level resources (where parent is null)
- parentId={uuid}: returns direct children of specified parent
Scopes: system
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
rsId | path | string (uuid) | Yes | Resource server ID |
parentId | query | string (uuid) | Parent resource ID to filter children.
| |
limit | query | integer | Maximum number of records to return Default: | |
offset | query | integer | Number of records to skip for pagination Default: |
Responses
| Code | Description | Schema |
|---|---|---|
200 | List of resources | ResourceListResponse |
400 | Bad request | Error |
404 | Resource server not found | Error |
500 | Internal server error | Error |
Create a new resource
POST /resource-servers/{rsId}/resources
Creates a new resource within the resource server. Handle is immutable and used for permissions. Parent is immutable after creation.
- Set parent to null for top-level resources
- Set parent to UUID for nested resources
Scopes: system
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
rsId | path | string (uuid) | Yes | Resource server ID |
Request body (required): application/json
Schema: CreateResourceRequest
4 properties
| Name | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Display name of the resource |
handle | string | Yes | Immutable and unique under resource server or parent resource. Identifier used for permission derivation |
description | string | Optional description of the resource | |
parent | string (uuid) | Parent resource ID (null for top-level resources, immutable after creation) |
Responses
| Code | Description | Schema |
|---|---|---|
201 | Resource created | Resource |
400 | Bad request | Error |
404 | Resource server not found | Error |
409 | Conflict | Error |
500 | Internal server error | Error |
Get resource details
GET /resource-servers/{rsId}/resources/{id}
Returns resource metadata
Scopes: system
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
rsId | path | string (uuid) | Yes | Resource server ID |
id | path | string (uuid) | Yes | Resource ID |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Resource details | Resource |
400 | Bad request | Error |
404 | Resource or resource server not found | Error |
500 | Internal server error | Error |
Update resource
PUT /resource-servers/{rsId}/resources/{id}
Updates resource name and description. Handle and parent are immutable after creation.
Scopes: system
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
rsId | path | string (uuid) | Yes | Resource server ID |
id | path | string (uuid) | Yes | Resource ID |
Request body (required): application/json
Schema: UpdateResourceRequest
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
name | string | Display name of the resource (mutable) | |
description | string | Optional description of the resource |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Resource updated | Resource |
400 | Bad request | Error |
404 | Resource or resource server not found | Error |
500 | Internal server error | Error |
Delete a resource by id
DEL /resource-servers/{rsId}/resources/{id}
Deletes a resource. Cannot delete if it has sub-resources or actions.
Scopes: system
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
rsId | path | string (uuid) | Yes | Resource server ID |
id | path | string (uuid) | Yes | Resource ID |
Responses
| Code | Description | Schema |
|---|---|---|
204 | Resource deleted | |
400 | Bad request | Error |
500 | Internal server error | Error |
Actions
Define actions on resources; actions map directly to OAuth2 scopes used in permission grants.
List actions at resource server level
GET /resource-servers/{rsId}/actions
Returns all actions defined at the resource server level. Use the optional kind query
parameter to filter to a specific MCP primitive type. Omitting kind returns all actions
regardless of kind (the default, backward-compatible behavior).
Scopes: system
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
rsId | path | string (uuid) | Yes | Resource server ID |
kind | query | string | Filter actions by MCP primitive kind. Only Allowed values: | |
limit | query | integer | Maximum number of records to return Default: | |
offset | query | integer | Number of records to skip for pagination Default: |
Responses
| Code | Description | Schema |
|---|---|---|
200 | List of actions | ActionListResponse |
400 | Bad request | Error |
404 | Resource server not found | Error |
500 | Internal server error | Error |
Create an action at resource server level
POST /resource-servers/{rsId}/actions
Creates a new action at the resource server level. Handle is immutable and used for permissions.
Scopes: system
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
rsId | path | string (uuid) | Yes | Resource server ID |
Request body (required): application/json
Schema: CreateActionRequest
4 properties
| Name | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Display name of the action |
handle | string | Yes | Immutable and unique under resource server or resource. Identifier used for permission derivation. Maximum length is 100 characters. |
description | string | Optional description of the action | |
kind | string | MCP primitive kind. Optional for all resource server types; when provided it must be "tool" or "resource". For type=MCP it defaults to "tool" when omitted. For API and CUSTOM resource servers it is optional and, when omitted, stays empty. Immutable after creation; omit on update requests (kind cannot be changed). Allowed values: |
Responses
| Code | Description | Schema |
|---|---|---|
201 | Action created | Action |
400 | Bad request | Error |
404 | Resource server not found | Error |
409 | Conflict | Error |
500 | Internal server error | Error |
Get action details at resource server level
GET /resource-servers/{rsId}/actions/{id}
Returns action metadata
Scopes: system
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
rsId | path | string (uuid) | Yes | Resource server ID |
id | path | string (uuid) | Yes | Action ID |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Action details | Action |
400 | Bad request | Error |
404 | Action or resource server not found | Error |
500 | Internal server error | Error |
Update action at resource server level
PUT /resource-servers/{rsId}/actions/{id}
Updates action name and description. Handle is immutable after creation.
Scopes: system
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
rsId | path | string (uuid) | Yes | Resource server ID |
id | path | string (uuid) | Yes | Action ID |
Request body (required): application/json
Schema: UpdateActionRequest
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
name | string | Display name of the action | |
description | string | Optional description of the action |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Action updated | Action |
400 | Bad request | Error |
404 | Action or resource server not found | Error |
500 | Internal server error | Error |
Delete an action at resource server level
DEL /resource-servers/{rsId}/actions/{id}
Deletes an action at the resource server level
Scopes: system
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
rsId | path | string (uuid) | Yes | Resource server ID |
id | path | string (uuid) | Yes | Action ID |
Responses
| Code | Description | Schema |
|---|---|---|
204 | Action deleted | |
400 | Bad request | Error |
500 | Internal server error | Error |
List actions at resource level
GET /resource-servers/{rsId}/resources/{resourceId}/actions
Returns all actions defined for a specific resource. Use the optional kind query
parameter to filter to a specific MCP primitive type. Omitting kind returns all actions
regardless of kind (the default, backward-compatible behavior).
Scopes: system
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
rsId | path | string (uuid) | Yes | Resource server ID |
resourceId | path | string (uuid) | Yes | Resource ID |
kind | query | string | Filter actions by MCP primitive kind. Only Allowed values: | |
limit | query | integer | Maximum number of records to return Default: | |
offset | query | integer | Number of records to skip for pagination Default: |
Responses
| Code | Description | Schema |
|---|---|---|
200 | List of actions | ActionListResponse |
400 | Bad request | Error |
404 | Resource or resource server not found | Error |
500 | Internal server error | Error |
Create an action at resource level
POST /resource-servers/{rsId}/resources/{resourceId}/actions
Creates a new action for a specific resource. Handle is immutable and used for permissions.
Scopes: system
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
rsId | path | string (uuid) | Yes | Resource server ID |
resourceId | path | string (uuid) | Yes | Resource ID |
Request body (required): application/json
Schema: CreateActionRequest
4 properties
| Name | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Display name of the action |
handle | string | Yes | Immutable and unique under resource server or resource. Identifier used for permission derivation. Maximum length is 100 characters. |
description | string | Optional description of the action | |
kind | string | MCP primitive kind. Optional for all resource server types; when provided it must be "tool" or "resource". For type=MCP it defaults to "tool" when omitted. For API and CUSTOM resource servers it is optional and, when omitted, stays empty. Immutable after creation; omit on update requests (kind cannot be changed). Allowed values: |
Responses
| Code | Description | Schema |
|---|---|---|
201 | Action created | Action |
400 | Bad request | Error |
404 | Resource or resource server not found | Error |
409 | Conflict | Error |
500 | Internal server error | Error |
Get action details at resource level
GET /resource-servers/{rsId}/resources/{resourceId}/actions/{id}
Returns action metadata
Scopes: system
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
rsId | path | string (uuid) | Yes | Resource server ID |
resourceId | path | string (uuid) | Yes | Resource ID |
id | path | string (uuid) | Yes | Action ID |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Action details | Action |
400 | Bad request | Error |
404 | Action, resource, or resource server not found | Error |
500 | Internal server error | Error |
Update action at resource level
PUT /resource-servers/{rsId}/resources/{resourceId}/actions/{id}
Updates action name and description. Handle is immutable after creation.
Scopes: system
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
rsId | path | string (uuid) | Yes | Resource server ID |
resourceId | path | string (uuid) | Yes | Resource ID |
id | path | string (uuid) | Yes | Action ID |
Request body (required): application/json
Schema: UpdateActionRequest
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
name | string | Display name of the action | |
description | string | Optional description of the action |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Action updated | Action |
400 | Bad request | Error |
404 | Action, resource, or resource server not found | Error |
500 | Internal server error | Error |
Delete an action at resource level
DEL /resource-servers/{rsId}/resources/{resourceId}/actions/{id}
Deletes an action for a specific resource
Scopes: system
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
rsId | path | string (uuid) | Yes | Resource server ID |
resourceId | path | string (uuid) | Yes | Resource ID |
id | path | string (uuid) | Yes | Action ID |
Responses
| Code | Description | Schema |
|---|---|---|
204 | Action deleted | |
400 | Bad request | Error |
500 | Internal server error | Error |
Schemas
ResourceServer
Type: object
9 properties
| Name | Type | Required | Description |
|---|---|---|---|
id | string (uuid) | Yes | Unique identifier for the resource server |
name | string | Yes | Name of the resource server |
description | string | Optional description of the resource server | |
identifier | string | Yes | Unique identifier for this resource server. When set to an absolute URI, the resource server is used in RFC 8707 resource indicator flows and the identifier is used as the access token audience claim value. An MCP resource server's identifier must be an |
type | string | Yes | Immutable type of the resource server (metadata only). Defaults to CUSTOM when not provided at creation. Allowed values: |
ouId | string (uuid) | Yes | ID of the organization unit this resource server belongs to |
delimiter | string | Yes | Character used to separate permission hierarchy levels (immutable after creation) |
authorizationEngine | AuthorizationEngineConfig | Authorization engine configuration for the resource server. | |
isReadOnly | boolean | Whether the resource server is read-only (system-managed) |
CreateResourceServerRequest
Type: object
6 properties
| Name | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Name of the resource server |
description | string | Optional description of the resource server | |
identifier | string | Yes | Unique identifier for this resource server. When set to an absolute URI, the resource server is used in RFC 8707 resource indicator flows and clients can use this value in the resource parameter to request audience-restricted access tokens. For an MCP resource server, the identifier must be an |
type | string | Optional immutable type of the resource server (metadata only). Defaults to CUSTOM when not provided. Allowed values: | |
ouId | string (uuid) | Yes | ID of the organization unit this resource server belongs to |
delimiter | string | Optional delimiter character for permission hierarchy (defaults to ":", immutable after creation) |
UpdateResourceServerRequest
Type: object
5 properties
| Name | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Name of the resource server |
description | string | Optional description of the resource server | |
identifier | string | Unique identifier for this resource server. When set to an absolute URI, the resource server is used in RFC 8707 resource indicator flows. When it changes on an MCP resource server, the new value must be an | |
ouId | string (uuid) | Yes | ID of the organization unit this resource server belongs to |
authorizationEngine | AuthorizationEngineConfig | Authorization engine configuration for the resource server. |
AuthorizationEngineConfig
Type: object
Authorization engine configuration for the resource server.
3 properties
| Name | Type | Required | Description |
|---|---|---|---|
type | string | Use local RBAC by default, or select an AuthZEN PDP for authorization decisions. Allowed values: | |
properties | object | ||
properties.pdpConnectionId | string (uuid) | ID of the AuthZEN PDP connection to use. |
Resource
Type: object
6 properties
| Name | Type | Required | Description |
|---|---|---|---|
id | string (uuid) | Yes | Unique identifier for the resource |
name | string | Yes | Display name of the resource |
handle | string | Yes | Immutable and unique under resource server or parent resource. Identifier used for permission derivation |
description | string | Optional description of the resource | |
parent | string (uuid) | Parent resource ID. Absent for top-level resources (immutable after creation) | |
permission | string | Yes | Derived permission string based on handle hierarchy |
CreateResourceRequest
Type: object
4 properties
| Name | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Display name of the resource |
handle | string | Yes | Immutable and unique under resource server or parent resource. Identifier used for permission derivation |
description | string | Optional description of the resource | |
parent | string (uuid) | Parent resource ID (null for top-level resources, immutable after creation) |
UpdateResourceRequest
Type: object
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
name | string | Display name of the resource (mutable) | |
description | string | Optional description of the resource |
Action
Type: object
6 properties
| Name | Type | Required | Description |
|---|---|---|---|
id | string (uuid) | Yes | Unique identifier for the action |
name | string | Yes | Display name of the action |
handle | string | Yes | Immutable and unique under resource server or resource. Identifier used for permission derivation |
description | string | Optional description of the action | |
permission | string | Yes | Derived permission string based on handle hierarchy |
kind | string | MCP primitive kind. "tool" represents a callable MCP tool (model-controlled); "resource" represents a read-only MCP resource (application-controlled). Always present for type=MCP actions (defaults to "tool" when omitted on create). For API and CUSTOM resource server actions it is present only when a kind was provided on create, otherwise omitted. Immutable after creation. Allowed values: |
CreateActionRequest
Type: object
4 properties
| Name | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Display name of the action |
handle | string | Yes | Immutable and unique under resource server or resource. Identifier used for permission derivation. Maximum length is 100 characters. |
description | string | Optional description of the action | |
kind | string | MCP primitive kind. Optional for all resource server types; when provided it must be "tool" or "resource". For type=MCP it defaults to "tool" when omitted. For API and CUSTOM resource servers it is optional and, when omitted, stays empty. Immutable after creation; omit on update requests (kind cannot be changed). Allowed values: |
UpdateActionRequest
Type: object
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
name | string | Display name of the action | |
description | string | Optional description of the action |
ResourceServerListResponse
Type: object
5 properties
| Name | Type | Required | Description |
|---|---|---|---|
totalResults | integer | Number of results that match the listing operation | |
startIndex | integer | Index of the first element of the page, which will be equal to offset + 1 | |
count | integer | Number of elements in the returned page | |
resourceServers | array of ResourceServer | ||
links | array of Link |
ResourceListResponse
Type: object
ActionListResponse
Type: object
Error
Type: object
3 properties
| Name | Type | Required | Description |
|---|---|---|---|
code | string | Yes | Error code. Codes follow the RES-XXXX convention. |
message | I18nMessage | Yes | Internationalized message with translation key and default value. |
description | I18nMessage | Internationalized message with translation key and default value. |
I18nMessage
Type: object
Internationalized message with translation key and default value.
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
key | string | Yes | Translation key for fetching localized message. |
defaultValue | string | Yes | Default message in English (fallback). |
Was this page helpful?