Description
Retrieve a list of actions available in the Tines tenant.
Request
HTTP Method: GET
Parameter | Description |
---|---|
N/A |
curl -X GET \
https://<tenant-name>.tines.io/api/v1/agents \
-H 'content-type: application/json' \
-H 'x-user-email: <email-address>' \
-H 'x-user-token: <api-token>'
Response
A successful request will return a JSON Array describing actions in the Tines tenant.
Field description
Parameter | Description |
---|---|
id | Action ID. |
user_id | User ID of the action’s owner. |
options | JSON Options block of the action. |
name | Name of the action. |
schedule | Defined run schedule for the action. |
events_count | Number of events action has emitted. |
last_check_at | ISO 8601 Timestamp representing date and time of action’s last scheduled run. |
last_receive_at | ISO 8601 Timestamp representing date and time of last event received. |
last_checked_event_id | Last event_id process by the action. |
created_at | ISO 8601 Timestamp representing creation date and time of action. |
updated_at | ISO 8601 Timestamp representing last updated date and time of action. |
last_web_request_at | ISO 8601 Timestamp representing last web request process by the action. |
keep_events_for | Defined event retention period in seconds. |
last_event_at | ISO 8601 Timestamp representing date and time the last event was received. |
last_error_log_at | ISO 8601 Timestamp representing date and time of last error thrown by the action. |
disabled | Boolean flag indicating whether action is disabled. |
guid | Unique identifier of the action. |
position | An object describing the XY coordinates of the action on the story diagram. |
story_id | ID of story to which the action belongs. |
Sample response
[
{
"id": 127,
"user_id": 1,
"options": {
"mode": "deduplicate",
"lookback": "0",
"path": "{{.propagation_webhook.password}}"
},
"name": "Deduplicate",
"schedule": null,
"events_count": 0,
"last_check_at": null,
"last_receive_at": "2018-05-09T09:42:45.080Z",
"last_checked_event_id": 87261,
"created_at": "2018-04-12T16:05:51.638Z",
"updated_at": "2018-05-09T09:42:45.093Z",
"last_web_request_at": null,
"keep_events_for": 31536000,
"last_event_at": "2018-05-09T09:42:45.058Z",
"last_error_log_at": null,
"disabled": false,
"guid": "d43c450818c2fcba095a0d5d694ebbcc",
"position": { "x": 100, "y": 200 },
"story_id": 6
}
]