Skip to main content

Get Actions

Provides a list of all active actions in your gamification system. Use this endpoint to retrieve configuration details for all actions you've created.

Endpoint​

GET /v1/admin/actions

Response​

{
"code": 200,
"data": [
{
"uid": "c1991d02872947e78435d15602b48581",
"identifier": "Bet",
"points": 1,
"pointGap": 0,
"cost": 0,
"costLabel": null,
"createDate": "2023-08-15T10:10:46.293",
"imageName": "https://rapidmulestorage.blob.core.windows.net/images/6c511fde-de2c-4a50-9ddb-1407061d5b46_casino-chip.png",
"isUserAttribute": false,
"isActive": true,
"actionObjects": [

Response Fields​

FieldTypeDescription
uidstringUnique identifier for the action
identifierstringThe action name/identifier
pointsnumberPoints awarded for this action
pointGapnumberMinimum time gap between point awards
costnumberCost to perform this action (if applicable)
costLabelstringLabel for the cost deliverable
createDatestringISO 8601 timestamp of when the action was created
imageNamestringURL to the action's icon/image
isUserAttributebooleanWhether this action represents a user attribute
isActivebooleanWhether this action is currently active
actionObjectsarrayParameters/attributes captured with this action (null when the action has none)
actionObjects[].labelstringName of the parameter
actionObjects[].actionUIdstringUID of the parent action
actionObjects[].typenumberParameter data type
actionObjects[].typeLabelstringHuman-readable data type (e.g. Array)

Request Example​

curl -X GET https://api.rapidmule.com/v1/admin/actions \
-H "AuthKey: YOUR_API_KEY"

Use Cases​

  • Admin Dashboard: Display all available actions in your admin panel
  • Action Dropdown: Populate action selection dropdowns
  • Analytics: Analyze action configurations and point awards

Error Codes​

CodeDescriptionResolution
1001Payload is nullCheck request parameters
4001Invalid AuthKeyVerify API key
Note

This endpoint returns only active actions by default. To retrieve all actions including inactive ones, use the appropriate filter parameter if supported.