The WSO2 Identity Platform - Action Management Rest API (version v1).
Download the OpenAPI definition (YAML)
Security schemes OAuth2: oauth2
authorizationCode flow, token URL http://api.asgardeo.io/t/{root-organization-name}/oauth2/token, authorization URL https://api.asgardeo.io/t/{root-organization-name}/oauth2/authorize
4 scopes Scope Description readinternal_org_action_mgt_view writeinternal_org_action_mgt_create updateinternal_org_action_mgt_update deleteinternal_org_action_mgt_delete
Action Types List Action Types GET /actions/types
This API returns the detailed summary of the action types.
Scope (Permission) required: internal_org_action_mgt_view
Responses
Request Copy curl "https://api.asgardeo.io/t/{root-organization-name}/o/api/server/v1/actions/types" \
-H "Authorization: Bearer <ACCESS_TOKEN>"Response 200 (application/json) Copy [
{
"type": "PRE_UPDATE_PASSWORD",
"displayName": "Pre Update Password",
"description": "This action invokes before updating a user password.",
"count": 1,
"self": "/o/api/server/v1/actions/preUpdatePassword"
},
{
"type": "PRE_UPDATE_PROFILE",
"displayName": "Pre Update Profile",
"description": "This action invokes before updating a user profile.",
"count": 1,
"self": "/o/api/server/v1/actions/preUpdateProfile"
}
]Actions List Actions GET /actions/{actionType}
This API returns actions according to the action type.
Scope (Permission) required: internal_org_action_mgt_view
Parameters
Name In Type Required Description actionTypepath anyYes Name of the Action Type.
Allowed values: preUpdatePassword, preUpdateProfile
Responses
Request Copy curl "https://api.asgardeo.io/t/{root-organization-name}/o/api/server/v1/actions/<ACTION_TYPE>" \
-H "Authorization: Bearer <ACCESS_TOKEN>"Response 200 (application/json) Copy [
{
"id": "24f64d17-9824-4e28-8413-de45728d8e84",
"type": "PRE_UPDATE_PASSWORD",
"name": "Password Update Action",
"description": "This action invokes before updating a user password.",
"status": "ACTIVE",
"createdAt": "2025-08-01T12:00:00.000Z",
"updatedAt": "2025-09-01T13:00:00.000Z",
"links": [
{
"href": "/o/api/server/v1/actions/preUpdatePassword/24f64d17-9824-4e28-8413-de45728d8e84",
"method": "GET",
"rel": "self"
}
]
}
]Add Action POST /actions/{actionType}
This API creates an action and returns the action details along with the action's unique ID.
Scope (Permission) required: internal_org_action_mgt_create
Parameters
Name In Type Required Description actionTypepath anyYes Name of the Action Type.
Allowed values: preUpdatePassword, preUpdateProfile
Request body (required): application/json
This represents the information of the action to be created.
Schema: ActionModel
4 properties Name Type Required Description namestringYes Name of the action.
descriptionstringDescription of the action.
endpointEndpointYes Endpoint configurations of the action.
ruleORRuleRepresents a rule configuration that combines multiple sub-rules with an OR condition. If any of the sub-rules evaluate to true, the ORRule is considered satisfied.
Responses
Request Copy curl -X POST "https://api.asgardeo.io/t/{root-organization-name}/o/api/server/v1/actions/<ACTION_TYPE>" \
-H "Authorization: Bearer <ACCESS_TOKEN>" \
-H "Content-Type: application/json" \
-d '{
"name": "Password Update Action",
"description": "This action invokes before updating a user password.",
"endpoint": {
"uri": "https://myextension.com/pre-update-password",
"authentication": {
"properties": {
"header": "x-api-key",
"value": "e12595c1-1435-4bf2-94e8-445135ab505a"
},
"type": "API_KEY"
}
},
"passwordSharing": {
"format": "SHA256_HASHED",
"certificate": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURxRENDQXBDZ0F3SUJBZ0lFWlhCR0NUQU5CZ2txaGtpRzl3MEJBUXNGQURCaU1Rc3dDUVlEVlFRR0V3SlYNClV6RUxNQWtHQTFVRUNBd0NRMEV4RkRBU0JnTlZCQWNNQzFOaGJuUmhJRU5zWVhKaE1RMHdDd1lEVlFRS0RBUlgNClUwOHlNUTB3Q3dZRFZRUUxEQVJYVTA4eU1SSXdFQVlEVlFRRERBbHNiMk5oYkdodmMzUXdIaGNOTWpNeE1qQTINCk1EazFPVE0zV2hjTk1qVXdNVEEzTURrMU9UTTNXakJpTVFzd0NRWURWUVFHRXdKVlV6RUxNQWtHQTFVRUNBd0MNClEwRXhGREFTQmdOVkJBY01DMU5oYm5SaElFTnNZWEpoTVEwd0N3WURWUVFLREFSWFUwOHlNUTB3Q3dZRFZRUUwNCkRBUlhVMDh5TVJJd0VBWURWUVFEREFsc2IyTmhiR2h2Yz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dtUHhvbXhZQVMxaFZzelJkZld0cnhEQUINCmZsSUppbUppSGgzZHlrY3lObHJ3QnU5MDNwTWRVR1FHcXNVeUVqaEZkN3M0QXp1cVlISnI1cll5OTUwZGY5SWINCllTaHUyWWZsVkVzV1pxSlI2MkNpYldCY0pLeUhQWW10QzBjU1JRPT0NCi0tLS0tRU5EIENFUlRJRklDQVRFLS0tLS0K"
},
"attributes": [
"http://wso2.org/claims/givenname",
"http://wso2.org/claims/dob"
],
"rule": {
"condition": "OR",
"rules": [
{
"condition": "AND",
"expressions": [
{
"field": "flow",
"operator": "equals",
"value": "adminInitiatedPasswordReset"
},
{
"field": "flow",
"operator": "notEquals",
"value": "adminInitiatedPasswordUpdate"
}
]
},
{
"condition": "AND",
"expressions": [
{
"field": "flow",
"operator": "equals",
"value": "userInitiatedPasswordReset"
}
]
}
]
}
}'Response 201 (application/json) Copy {
"id": "24f64d17-9824-4e28-8413-de45728d8e84",
"name": "Password Update Action",
"description": "This action invokes before updating a user password.",
"status": "INACTIVE",
"createdAt": "2025-08-01T12:00:00.000Z",
"updatedAt": "2025-09-01T13:00:00.000Z",
"endpoint": {
"uri": "https://myextension.com/pre-update-password",
"authentication": {
"type": "API_KEY"
}
},
"passwordSharing": {
"format": "SHA256_HASHED",
"certificate": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURxRENDQXBDZ0F3SUJBZ0lFWlhCR0NUQU5CZ2txaGtpRzl3MEJBUXNGQURCaU1Rc3dDUVlEVlFRR0V3SlYNClV6RUxNQWtHQTFVRUNBd0NRMEV4RkRBU0JnTlZCQWNNQzFOaGJuUmhJRU5zWVhKaE1RMHdDd1lEVlFRS0RBUlgNClUwOHlNUTB3Q3dZRFZRUUxEQVJYVTA4eU1SSXdFQVlEVlFRRERBbHNiMk5oYkdodmMzUXdIaGNOTWpNeE1qQTINCk1EazFPVE0zV2hjTk1qVXdNVEEzTURrMU9UTTNXakJpTVFzd0NRWURWUVFHRXdKVlV6RUxN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tZbjRNY00NCkt4NHhGOFphZzh4aHlhWXFVUXpRWG5nNTFyVjErYzR1elh1Z0VoRTVTemRESFlFWHpYNmpvWklnMXlOK2hFUGMNCjc3UlpKSkhtd0lRclRkM2JuWnB5dEI2UmRCam5qU3loMEJlSGxKUUdtUHhvbXhZQVMxaFZzelJkZld0cnhEQUINCmZsSUppbUppSGgzZHlrY3lObHJ3QnU5MDNwTWRVR1FHcXNVeUVqaEZkN3M0QXp1cVlISnI1cll5OTUwZGY5SWINCllTaHUyWWZsVkVzV1pxSlI2MkNpYldCY0pLeUhQWW10QzBjU1JRPT0NCi0tLS0tRU5EIENFUlRJRklDQVRFLS0tLS0K"
},
"attributes": [
"http://wso2.org/claims/givenname",
"http://wso2.org/claims/dob"
],
"rule": {
"condition": "OR",
"rules": [
{
"condition": "AND",
"expressions": [
{
"field": "flow",
"operator": "equals",
"value": "adminInitiatedPasswordReset"
},
{
"field": "flow",
"operator": "notEquals",
"value": "adminInitiatedPasswordUpdate"
}
]
},
{
"condition": "AND",
"expressions": [
{
"field": "flow",
"operator": "equals",
"value": "userInitiatedPasswordReset"
}
]
}
]
}
}Curl - preUpdatePassword Copy curl --location 'https://api.asgardeo.io/t/{root-organization-name}/o/api/server/v1/actions/preUpdatePassword' \
-H 'Authorization: Bearer {bearer_token}' \
-H 'Content-Type: application/json' \
-d '{
"name": "Password Update Action",
"description": "This action invokes before updating a user password.",
"endpoint": {
"uri": "https://myextension.com/pre-update-password",
"authentication": {
"properties": {
"header": "x-api-key",
"value": "e12595c1-1435-4bf2-94e8-445135ab505a"
},
"type": "API_KEY"
}
},
"passwordSharing": {
"format": "SHA256_HASHED"
},
"attributes": ["http://wso2.org/claims/givenname", "http://wso2.org/claims/dob"]
}'Curl - preUpdateProfile Copy curl --location 'https://api.asgardeo.io/t/{root-organization-name}/o/api/server/v1/actions/preUpdateProfile' \
-H 'Authorization: Bearer {bearer_token}' \
-H 'Content-Type: application/json' \
-d '{
"name": "Profile Update Action",
"description": "This action invokes before updating a user profile.",
"endpoint": {
"uri": "https://myextension.com/pre-update-profile",
"authentication": {
"properties": {
"header": "x-api-key",
"value": "e12595c1-1435-4bf2-94e8-445135ab505a"
},
"type": "API_KEY"
}
},
"attributes": ["http://wso2.org/claims/givenname", "http://wso2.org/claims/dob"]
}'Retrieve Action by ID GET /actions/{actionType}/{actionId}
This API provides the capability to retrieve the action by action Id.
Scope (Permission) required: internal_org_action_mgt_view
Parameters
Name In Type Required Description actionTypepath anyYes Name of the Action Type.
Allowed values: preUpdatePassword, preUpdateProfile
actionIdpath stringYes Unique identifier of the action.
Responses
Request Copy curl "https://api.asgardeo.io/t/{root-organization-name}/o/api/server/v1/actions/<ACTION_TYPE>/<ACTION_ID>" \
-H "Authorization: Bearer <ACCESS_TOKEN>"Response 200 (application/json) Copy {
"id": "24f64d17-9824-4e28-8413-de45728d8e84",
"type": "PRE_UPDATE_PASSWORD",
"name": "Password Update Action",
"description": "This action invokes before updating a user password.",
"status": "ACTIVE",
"createdAt": "2025-08-01T12:00:00.000Z",
"updatedAt": "2025-09-01T13:00:00.000Z",
"endpoint": {
"uri": "https://myextension.com/pre-update-password",
"authentication": {
"type": "API_KEY"
}
},
"passwordSharing": {
"format": "SHA256_HASHED",
"certificate": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURxRENDQXBDZ0F3SUJBZ0lFWlhCR0NUQU5CZ2txaGtpRzl3MEJBUXNGQURCaU1Rc3dDUVlEVlFRR0V3SlYNClV6RUxNQWtHQTFVRUNBd0NRMEV4RkRBU0JnTlZCQWNNQzFOaGJuUmhJRU5zWVhKaE1RMHdDd1lEVlFRS0RBUlgNClUwOHlNUTB3Q3dZRFZRUUxEQVJYVTA4eU1SSXdFQVlEVlFRRERBbHNiMk5oYkdodmMzUXdIaGNOTWpNeE1qQTINCk1EazFPVE0zV2hjTk1qVXdNVEEzTURrMU9UTTNXakJpTVFzd0NRWURWUVFHRXdKVlV6RUxNQWtHQTFVRUNBd0MNClEw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phZzh4aHlhWXFVUXpRWG5nNTFyVjErYzR1elh1Z0VoRTVTemRESFlFWHpYNmpvWklnMXlOK2hFUGMNCjc3UlpKSkhtd0lRclRkM2JuWnB5dEI2UmRCam5qU3loMEJlSGxKUUdtUHhvbXhZQVMxaFZzelJkZld0cnhEQUINCmZsSUppbUppSGgzZHlrY3lObHJ3QnU5MDNwTWRVR1FHcXNVeUVqaEZkN3M0QXp1cVlISnI1cll5OTUwZGY5SWINCllTaHUyWWZsVkVzV1pxSlI2MkNpYldCY0pLeUhQWW10QzBjU1JRPT0NCi0tLS0tRU5EIENFUlRJRklDQVRFLS0tLS0K"
},
"attributes": [
"http://wso2.org/claims/givenname",
"http://wso2.org/claims/dob"
],
"rule": {
"condition": "OR",
"rules": [
{
"condition": "AND",
"expressions": [
{
"field": "flow",
"operator": "equals",
"value": "adminInitiatedPasswordReset"
},
{
"field": "flow",
"operator": "notEquals",
"value": "adminInitiatedPasswordUpdate"
}
]
},
{
"condition": "AND",
"expressions": [
{
"field": "flow",
"operator": "equals",
"value": "userInitiatedPasswordReset"
}
]
}
]
}
}Delete Action DEL /actions/{actionType}/{actionId}
This API deletes an action using the action's type and unique ID.
Scope (Permission) required: internal_org_action_mgt_delete
Parameters
Name In Type Required Description actionTypepath anyYes Name of the Action Type.
Allowed values: preUpdatePassword, preUpdateProfile
actionIdpath stringYes Unique identifier of the action.
Responses
Code Description Schema 204Action Deleted
400Bad Request
Error401Unauthorized
403Forbidden
500Server Error
Error501Not Implemented
Error
Update Action PATCH /actions/{actionType}/{actionId}
This API updates an action and return the updated action.
Scope (Permission) required: internal_org_action_mgt_update
Parameters
Name In Type Required Description actionTypepath anyYes Name of the Action Type.
Allowed values: preUpdatePassword, preUpdateProfile
actionIdpath stringYes Unique identifier of the action.
Request body (required): application/json
This represents the action to be updated.
Schema: ActionUpdateModel
4 properties Name Type Required Description namestringUpdating name of the action.
descriptionstringUpdating description of the action.
endpointEndpointUpdateModelUpdating endpoint configurations of the action.
ruleORRuleRepresents a rule configuration that combines multiple sub-rules with an OR condition. If any of the sub-rules evaluate to true, the ORRule is considered satisfied.
Responses
Request Copy curl -X PATCH "https://api.asgardeo.io/t/{root-organization-name}/o/api/server/v1/actions/<ACTION_TYPE>/<ACTION_ID>" \
-H "Authorization: Bearer <ACCESS_TOKEN>" \
-H "Content-Type: application/json" \
-d '{
"name": "Updated Password Update Action",
"description": "This action invokes before updating a user password.",
"endpoint": {
"uri": "https://myextension.com/external/pre-update-password",
"authentication": {
"properties": {},
"type": "NONE"
}
},
"passwordSharing": {
"format": "PLAIN_TEXT",
"certificate": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURxRENDQXBDZ0F3SUJBZ0lFWlhCR0NUQU5CZ2txaGtpRzl3MEJBUXNGQURCaU1Rc3dDUVlEVlFRR0V3SlYNClV6RUxNQWtHQTFVRUNBd0NRMEV4RkRBU0JnTlZCQWNNQzFOaGJuUmhJRU5zWVhKaE1RMHdDd1lEVlFRS0RBUlgNClUwOHlNUTB3Q3dZRFZRUUxEQVJYVTA4eU1SSXdFQVlEVlFRRERBbHNiMk5oYkdodmMzUXdIaGNOTWpNeE1qQTINCk1EazFPVE0zV2hjTk1qVXdNVEEzTURrMU9UTTNXakJpTVFzd0NRWURWUVFHRXdKVlV6RUxNQWtHQTFVRUNBd0MNClEwRXhGREFTQmdOVkJBY01DMU5oYm5SaElFTnNZWEpoTVEwd0N3WURWUVFLREFSWFUwOHlNUTB3Q3dZRFZRUUwNCkRBUlhVMDh5TVJJd0VBWURWUVFEREFsc2IyTmhiR2h2YzNRd2dnRWlNQTBHQ1NxR1NJYjNEUUVCQVFVQUE0SUINCkR3QXdnZ0VLQW9JQkFRQ2E0amx3OEtyWHMzOTZTdktmVFEwMkllUm9hWnF1ZWtvSlNpdzBsOWU5QkkyRWF2blQNCkc4SnlvcDh6MnJPcjZDNmpqZGdVeXR6NWpCaG9wYmdmeHJQMmkwTkd1akpGTE5uU1U4cmNoRDJUSjlRbz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[
"http://wso2.org/claims/dob"
],
"rule": {
"condition": "OR",
"rules": [
{
"condition": "AND",
"expressions": [
{
"field": "flow",
"operator": "equals",
"value": "userInitiatedPasswordReset"
},
{
"field": "flow",
"operator": "notEquals",
"value": "adminInitiatedPasswordUpdate"
}
]
}
]
}
}'Response 200 (application/json) Copy {
"id": "24f64d17-9824-4e28-8413-de45728d8e84",
"name": "Updated Password Update Action",
"description": "This action invokes before updating a user password.",
"status": "ACTIVE",
"createdAt": "2025-08-01T12:00:00.000Z",
"updatedAt": "2025-09-01T13:00:00.000Z",
"endpoint": {
"uri": "https://myextension.com/external/pre-update-password",
"authentication": {
"type": "NONE"
}
},
"passwordSharing": {
"format": "PLAIN_TEXT",
"certificate": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURxRENDQXBDZ0F3SUJBZ0lFWlhCR0NUQU5CZ2txaGtpRzl3MEJBUXNGQURCaU1Rc3dDUVlEVlFRR0V3SlYNClV6RUxNQWtHQTFVRUNBd0NRMEV4RkRBU0JnTlZCQWNNQzFOaGJuUmhJRU5zWVhKaE1RMHdDd1lEVlFRS0RBUlgNClUwOHlNUTB3Q3dZRFZRUUxEQVJYVTA4eU1SSXdFQVlEVlFRRERBbHNiMk5oYkdodmMzUXdIaGNOTWpNeE1qQTINCk1EazFPVE0zV2hjTk1qVXdNVEEzTURrMU9UTTNXakJpTVFzd0NRWURWUVFHRXdKVlV6RUxNQWtHQTFVRUNBd0MNClEwRXhGREFTQmdOVkJBY01DMU5oYm5SaElFTnNZWEpoTVEwd0N3WURWUVFLREFSWFUwOHlNUTB3Q3dZRFZRUUwNCkRBUlhVMDh5TVJJd0VBWURWUVFEREFsc2IyTmhiR2h2YzNRd2dnRWlNQTBHQ1NxR1NJYjNEUUVCQVFVQUE0SUINCkR3QXdnZ0VLQW9JQkFRQ2E0amx3OEtyWHMzOTZTdktmVFEwMkllUm9hWnF1ZWtvSlNpdzBsOWU5QkkyRWF2blQNCkc4SnlvcDh6M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ldCY0pLeUhQWW10QzBjU1JRPT0NCi0tLS0tRU5EIENFUlRJRklDQVRFLS0tLS0K"
},
"attributes": [
"http://wso2.org/claims/dob"
],
"rule": {
"condition": "OR",
"rules": [
{
"condition": "AND",
"expressions": [
{
"field": "flow",
"operator": "equals",
"value": "userInitiatedPasswordReset"
},
{
"field": "flow",
"operator": "notEquals",
"value": "adminInitiatedPasswordUpdate"
}
]
}
]
}
}Curl - preUpdatePassword Copy curl --location --request PATCH 'https://api.asgardeo.io/t/{root-organization-name}/o/api/server/v1/actions/preUpdatePassword/{actionId}' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {bearer_token}' \
-d '{
"name": "Updated Password Update Action",
"description": "This is the configuration of pre-action for updating password",
"endpoint": {
"uri": "http://myextensions.com/external/pre-update-password",
"authentication": {
"type": "NONE",
"properties": {}
}
},
"passwordSharing": {
"format": "PLAIN_TEXT"
},
"attributes": ["http://wso2.org/claims/dob"]
}'Curl - preUpdateProfile Copy curl --location --request PATCH 'https://api.asgardeo.io/t/{root-organization-name}/o/api/server/v1/actions/preUpdateProfile/{actionId}' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {bearer_token}' \
-d '{
"name": "Updated Profile Update Action",
"description": "This is the configuration of pre-action for updating profile",
"endpoint": {
"uri": "http://myextensions.com/external/pre-update-profile",
"authentication": {
"type": "NONE",
"properties": {}
}
},
"attributes": ["http://wso2.org/claims/dob"]
}'Activate Action POST /actions/{actionType}/{actionId}/activate
This API activates an action using the action's type and unique ID.
Scope (Permission) required: internal_org_action_mgt_update
Parameters
Name In Type Required Description actionTypepath anyYes Name of the Action Type.
Allowed values: preUpdatePassword, preUpdateProfile
actionIdpath stringYes Unique identifier of the action.
Responses
Request Copy curl -X POST "https://api.asgardeo.io/t/{root-organization-name}/o/api/server/v1/actions/<ACTION_TYPE>/<ACTION_ID>/activate" \
-H "Authorization: Bearer <ACCESS_TOKEN>"Response 200 (application/json) Copy [
{
"id": "24f64d17-9824-4e28-8413-de45728d8e84",
"type": "PRE_UPDATE_PASSWORD",
"name": "Password Update Action",
"description": "This action invokes before updating a user password.",
"status": "ACTIVE",
"createdAt": "2025-08-01T12:00:00.000Z",
"updatedAt": "2025-09-01T13:00:00.000Z",
"links": [
{
"href": "/o/api/server/v1/actions/preUpdatePassword/24f64d17-9824-4e28-8413-de45728d8e84",
"method": "GET",
"rel": "self"
}
]
}
]Deactivate Action POST /actions/{actionType}/{actionId}/deactivate
This API deactivates an action using the action's type and unique ID.
Scope (Permission) required: internal_org_action_mgt_update
Parameters
Name In Type Required Description actionTypepath anyYes Name of the Action Type.
Allowed values: preUpdatePassword, preUpdateProfile
actionIdpath stringYes Unique identifier of the action.
Responses
Request Copy curl -X POST "https://api.asgardeo.io/t/{root-organization-name}/o/api/server/v1/actions/<ACTION_TYPE>/<ACTION_ID>/deactivate" \
-H "Authorization: Bearer <ACCESS_TOKEN>"Response 200 (application/json) Copy [
{
"id": "24f64d17-9824-4e28-8413-de45728d8e84",
"type": "PRE_UPDATE_PASSWORD",
"name": "Password Update Action",
"description": "This action invokes before updating a user password.",
"status": "INACTIVE",
"createdAt": "2025-08-01T12:00:00.000Z",
"updatedAt": "2025-09-01T13:00:00.000Z",
"links": [
{
"href": "/o/api/server/v1/actions/preUpdatePassword/24f64d17-9824-4e28-8413-de45728d8e84",
"method": "GET",
"rel": "self"
}
]
}
]Schemas ActionType Type: string
Action types supported.
ActionModel Type: object
4 properties Name Type Required Description namestringYes Name of the action.
descriptionstringDescription of the action.
endpointEndpointYes Endpoint configurations of the action.
ruleORRuleRepresents a rule configuration that combines multiple sub-rules with an OR condition. If any of the sub-rules evaluate to true, the ORRule is considered satisfied.
Endpoint Type: object
Endpoint configurations of the action.
4 properties Name Type Required Description uristringYes HTTPS URI of the endpoint.
authenticationAuthenticationTypeYes The type of authentication required by the action's endpoint. The following options are supported:
NONE: No authentication is required.
{ "type": "NONE" }
BASIC: Basic authentication with a username and password.
{ "type": "BASIC", "properties": { "username": "auth_username", "password": "auth_password" } }
API_KEY: API key-based authentication, where the key is provided in an HTTP header.
{ "type": "API_KEY", "properties": { "header": "X-API-Key", "value": "12345-abcde-67890" } }
BEARER: Bearer token-based authentication.
{ "type": "BEARER", "properties": { "accessToken": "0d6fed02-eac0-332b-8998-213a543139a0" } }
CLIENT_CREDENTIAL: OAuth2 client credentials grant based authentication.
{ "type": "CLIENT_CREDENTIAL", "properties": { "clientId": "3e172dd2-901b-43a9-a26a-728466795f01", "clientSecret": "83cdc120-ccf6-4163-a4a8-c1ba3e872daa", "tokenEndpoint": "https://custom.idp.com/oauth2/token", "scopes": "send_scope" } }
PASSWORD_CREDENTIAL: OAuth2 resource owner password credentials grant based authentication.
{ "type": "PASSWORD_CREDENTIAL", "properties": { "username": "alice", "password": "p@ssw0rd!", "clientId": "3e172dd2-901b-43a9-a26a-728466795f01", "clientSecret": "83cdc120-ccf6-4163-a4a8-c1ba3e872daa", "tokenEndpoint": "https://custom.idp.com/oauth2/token", "scopes": "send_scope" } }
allowedHeadersarray of stringList of HTTP headers to forward to the extension.
allowedParametersarray of stringList of parameters to forward to the extension.
EndpointResponse Type: object
Endpoint configurations of the action.
4 properties Name Type Required Description uristringYes HTTPS URI of the endpoint.
authenticationAuthenticationTypeResponseYes Authentication configurations of the action.
allowedHeadersarray of stringList of HTTP headers to forward to the extension.
allowedParametersarray of stringList of parameters to forward to the extension.
ActionResponse Type: object
9 properties Name Type Required Description idstringUnique identifier of the action.
typeActionTypeAction types supported.
Allowed values: PRE_UPDATE_PASSWORD, PRE_UPDATE_PROFILE
namestringName of the action.
descriptionstringDescription of the action.
statusstringStatus of the action.
Allowed values: ACTIVE, INACTIVE
createdAtstringCreated time of the action.
updatedAtstringLast updated time of the action.
endpointEndpointResponseEndpoint configurations of the action.
ruleORRuleResponseRule configured for the action.
ActionBasicResponse Type: object
8 properties Name Type Required Description idstringUnique identifier of the action.
typeActionTypeAction types supported.
Allowed values: PRE_UPDATE_PASSWORD, PRE_UPDATE_PROFILE
namestringName of the action.
descriptionstringDescription of the action.
statusstringStatus of the action.
Allowed values: ACTIVE, INACTIVE
createdAtstringCreated time of the action.
updatedAtstringLast updated time of the action.
linksarray of Link
Link Type: object
3 properties Name Type Required Description hrefstringUrl of the endpoint.
methodstringHttp method.
Allowed values: GET
relstringRelation to the resource.
ActionTypesResponseItem Type: object
5 properties Name Type Required Description typeActionTypeAction types supported.
Allowed values: PRE_UPDATE_PASSWORD, PRE_UPDATE_PROFILE
displayNamestringDisplay name of the action type.
descriptionstringDescription of the action type.
countintegerNumber of actions configured under the action type.
selfstringAPI endpoint referring to the location of the given action type.
AuthenticationType Type: object
The type of authentication required by the action's endpoint. The following options are supported:
NONE: No authentication is required.
{ "type": "NONE" }
BASIC: Basic authentication with a username and password.
{ "type": "BASIC", "properties": { "username": "auth_username", "password": "auth_password" } }
API_KEY: API key-based authentication, where the key is provided in an HTTP header.
{ "type": "API_KEY", "properties": { "header": "X-API-Key", "value": "12345-abcde-67890" } }
BEARER: Bearer token-based authentication.
{ "type": "BEARER", "properties": { "accessToken": "0d6fed02-eac0-332b-8998-213a543139a0" } }
CLIENT_CREDENTIAL: OAuth2 client credentials grant based authentication.
{ "type": "CLIENT_CREDENTIAL", "properties": { "clientId": "3e172dd2-901b-43a9-a26a-728466795f01", "clientSecret": "83cdc120-ccf6-4163-a4a8-c1ba3e872daa", "tokenEndpoint": "https://custom.idp.com/oauth2/token", "scopes": "send_scope" } }
PASSWORD_CREDENTIAL: OAuth2 resource owner password credentials grant based authentication.
{ "type": "PASSWORD_CREDENTIAL", "properties": { "username": "alice", "password": "p@ssw0rd!", "clientId": "3e172dd2-901b-43a9-a26a-728466795f01", "clientSecret": "83cdc120-ccf6-4163-a4a8-c1ba3e872daa", "tokenEndpoint": "https://custom.idp.com/oauth2/token", "scopes": "send_scope" } }
2 properties Name Type Required Description typestringYes Allowed values: NONE, BEARER, API_KEY, BASIC, CLIENT_CREDENTIAL, PASSWORD_CREDENTIAL
propertiesobjectAuthentication properties specific to the selected type.
AuthenticationTypeResponse Type: object
Authentication configurations of the action.
2 properties Name Type Required Description typestringYes Type of the authentication.
Allowed values: NONE, BEARER, API_KEY, BASIC, CLIENT_CREDENTIAL, PASSWORD_CREDENTIAL
propertiesobjectAuthentication properties (without secrets) specific to the selected type.
ActionUpdateModel Type: object
4 properties Name Type Required Description namestringUpdating name of the action.
descriptionstringUpdating description of the action.
endpointEndpointUpdateModelUpdating endpoint configurations of the action.
ruleORRuleRepresents a rule configuration that combines multiple sub-rules with an OR condition. If any of the sub-rules evaluate to true, the ORRule is considered satisfied.
EndpointUpdateModel Type: object
Updating endpoint configurations of the action.
4 properties Name Type Required Description uristringUpdating HTTPS URI of the endpoint.
authenticationAuthenticationTypeThe type of authentication required by the action's endpoint. The following options are supported:
NONE: No authentication is required.
{ "type": "NONE" }
BASIC: Basic authentication with a username and password.
{ "type": "BASIC", "properties": { "username": "auth_username", "password": "auth_password" } }
API_KEY: API key-based authentication, where the key is provided in an HTTP header.
{ "type": "API_KEY", "properties": { "header": "X-API-Key", "value": "12345-abcde-67890" } }
BEARER: Bearer token-based authentication.
{ "type": "BEARER", "properties": { "accessToken": "0d6fed02-eac0-332b-8998-213a543139a0" } }
CLIENT_CREDENTIAL: OAuth2 client credentials grant based authentication.
{ "type": "CLIENT_CREDENTIAL", "properties": { "clientId": "3e172dd2-901b-43a9-a26a-728466795f01", "clientSecret": "83cdc120-ccf6-4163-a4a8-c1ba3e872daa", "tokenEndpoint": "https://custom.idp.com/oauth2/token", "scopes": "send_scope" } }
PASSWORD_CREDENTIAL: OAuth2 resource owner password credentials grant based authentication.
{ "type": "PASSWORD_CREDENTIAL", "properties": { "username": "alice", "password": "p@ssw0rd!", "clientId": "3e172dd2-901b-43a9-a26a-728466795f01", "clientSecret": "83cdc120-ccf6-4163-a4a8-c1ba3e872daa", "tokenEndpoint": "https://custom.idp.com/oauth2/token", "scopes": "send_scope" } }
allowedHeadersarray of stringList of HTTP headers to forward to the extension.
allowedParametersarray of stringList of parameters to forward to the extension.
ORRule Type: object
Represents a rule configuration that combines multiple sub-rules with an OR condition. If any of the sub-rules evaluate to true, the ORRule is considered satisfied.
2 properties Name Type Required Description conditionstringThe logical condition for combining the sub-rules. For ORRule, the value must always be "OR".
Allowed values: OR
rulesarray of ANDRule
ORRuleResponse Type: object
Rule configured for the action.
2 properties Name Type Required Description conditionstringAllowed values: OR
rulesarray of ANDRuleResponse A list of sub-rules that are combined using the OR condition. Each sub-rule is an ANDRule.
ANDRule Type: object
A sub-rule that combines expressions with AND condition.
2 properties Name Type Required Description conditionstringYes The logical condition for combining the expressions. For ANDRule, the value must always be "AND".
Allowed values: AND
expressionsarray of Expression Yes A list of expressions that are combined using the AND condition. All expressions must evaluate to true for the ANDRule to pass.
ANDRuleResponse Type: object
Represents a rule configuration that combines multiple expressions with an AND condition. All expressions in the ANDRule must evaluate to true for the rule to be satisfied.
2 properties Name Type Required Description conditionstringThe logical condition for combining the expressions. For ANDRule, the value must always be "AND".
Allowed values: AND
expressionsarray of ExpressionResponse A list of expressions that are combined using the AND condition. All expressions must evaluate to true for the ANDRule to pass.
Expression Type: object
Represents a single logical condition or comparison within a rule. An expression defines a field, an operator, and a value that is evaluated.
3 properties Name Type Required Description fieldstringYes The field or attribute of the entity being evaluated (e.g.,application, role).
operatorstringYes The comparison operator used to evaluate the field and value. Common operators include "equals", "contains", "startsWith", etc.
valuestringYes The value that the field is compared against based on the operator.
ExpressionResponse Type: object
Expressions in the rule.
3 properties Name Type Required Description fieldstringoperatorstringvaluestring
Error Type: object
4 properties Name Type Required Description codestringmessagestringdescriptionstringtraceIdstring