API resource management API
Base URL: https://api.asgardeo.io/t/<ORGANIZATION_NAME>/o/api/server/v1
The WSO2 Identity Platform - API Resource Management Rest API (version v1).
Download the OpenAPI definition (YAML)
Security schemes
OAuth2: oauth2
authorizationCode flow, token URL http://localhost:9443/oauth2/token, authorization URL https://localhost:9443/oauth2/authorize
API Resources
List all API resources in the server
GET /api-resources
List all API resources in the server
Scope(Permission) required: internal_org_api_resource_view
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
before | query | string | Base64 encoded cursor value for backward pagination. | |
after | query | string | Base64 encoded cursor value for forward pagination. | |
filter | query | string | Condition to filter the retrieval of records. Supports 'sw', 'co', 'ew' and 'eq' operations. | |
limit | query | integer | Maximum number of records to return. | |
attributes | query | string | Specifies the required attributes in the response. Only 'properties' attribute is currently supported. |
Responses
| Code | Description | Schema |
|---|---|---|
200 | OK | APIResourceListResponse |
401 | Unauthorized | |
403 | Forbidden | |
500 | Server Error | Error |
Get API resource specified by the id
GET /api-resources/{apiResourceId}
Get API resource specified by the id
Scope(Permission) required: internal_org_api_resource_view
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
apiResourceId | path | string | Yes | ID of the API Resource. |
Responses
| Code | Description | Schema |
|---|---|---|
200 | OK | APIResourceResponse |
401 | Unauthorized | |
403 | Forbidden | |
500 | Server Error | Error |
API Resource Scopes
Get API resource scopes
GET /api-resources/{apiResourceId}/scopes
Get API resource scopes specified by the id
Scope(Permission) required: internal_org_api_resource_view
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
apiResourceId | path | string | Yes | ID of the API Resource. |
Responses
| Code | Description | Schema |
|---|---|---|
200 | OK | array of ScopeGetModel |
401 | Unauthorized | |
403 | Forbidden | |
404 | Not Found | Error |
500 | Server Error | Error |
Get all scopes in the tenant
GET /scopes
Get all scopes in the tenant
Scope(Permission) required: internal_org_api_resource_view
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
filter | query | string | Condition to filter the retrieval of scopes by name. Supports 'sw', 'co', 'ew' and 'eq' operations. |
Responses
| Code | Description | Schema |
|---|---|---|
200 | OK | array of ScopeGetModel |
401 | Unauthorized | |
403 | Forbidden | |
404 | Not Found | Error |
500 | Server Error | Error |
Schemas
Error
Type: object
4 properties
| Name | Type | Required | Description |
|---|---|---|---|
code | string | ||
message | string | ||
description | string | ||
traceId | string |
APIResourceListItem
Type: object
7 properties
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | |
name | string | Yes | |
identifier | string | Yes | |
type | string | ||
requiresAuthorization | boolean | ||
properties | array of Property | ||
self | string | Yes |
APIResourceResponse
Type: object
10 properties
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | |
name | string | Yes | |
description | string | ||
identifier | string | Yes | |
type | string | ||
requiresAuthorization | boolean | ||
scopes | array of ScopeGetModel | ||
subscribedApplications | array of SubscribedApplicationGetModel | ||
properties | array of Property | ||
self | string | Yes |
APIResourceCreationModel
Type: object
5 properties
| Name | Type | Required | Description |
|---|---|---|---|
name | string | Yes | |
identifier | string | Yes | |
description | string | ||
requiresAuthorization | boolean | ||
scopes | array of ScopeCreationModel |
APIResourcePatchModel
Type: object
4 properties
| Name | Type | Required | Description |
|---|---|---|---|
name | string | ||
description | string | ||
addedScopes | array of ScopeCreationModel | ||
removedScopes | array of string | This field is not supported yet. |
APIResourceListResponse
Type: object
3 properties
| Name | Type | Required | Description |
|---|---|---|---|
totalResults | integer | ||
links | array of PaginationLink | Yes | |
APIResources | array of APIResourceListItem |
APIResourceMap
Type: object
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
read | array of APIResourceCollectionItem | ||
write | array of APIResourceCollectionItem |
APIResourceCollectionListItem
Type: object
6 properties
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | |
name | string | Yes | |
displayName | string | Yes | |
type | string | ||
apiResources | APIResourceMap | ||
self | string | Yes |
APIResourceCollectionListResponse
Type: object
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
totalResults | integer | ||
apiResourceCollections | array of APIResourceCollectionListItem |
APIResourceCollectionItem
Type: object
7 properties
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | |
name | string | Yes | |
description | string | ||
identifier | string | ||
type | string | ||
scopes | array of ScopeGetModel | ||
self | string | Yes |
APIResourceCollectionResponse
Type: object
5 properties
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | |
name | string | Yes | |
displayName | string | Yes | |
type | string | ||
apiResources | APIResourceMap |
ScopeGetModel
Type: object
4 properties
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | |
displayName | string | Yes | |
name | string | Yes | |
description | string |
ScopeCreationModel
Type: object
3 properties
| Name | Type | Required | Description |
|---|---|---|---|
name | string | Yes | |
displayName | string | ||
description | string |
ScopePatchModel
Type: object
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
displayName | string | ||
description | string |
Was this page helpful?