Fetch the actions you triggered
Track and monitor the status of your actions by retrieving event logs and updates. Get detailed insights into request processing and completion.
Fetch the actions for your actions
This endpoint lets you retrieve your most recent actions requests.
Query parameters
pagenumber (optional)
The page to fetch (default to 1).
1
sizenumber (optional)
The number of actions to be returned (between 1 and 25). Default to 10.
10
statusstring (optional)
The status of the actions to retrieve.
Possible values
pending
completed
active
failed
typestring (optional)
The type of the actions to retrieve.
Possible values
companies:added
jobs:request
Response
actionsarray
The list of actions.
metaobject
The metas information.
Endpoint
GET
https://api.thecompaniesapi.com/v2/actions
API response
{actions :[{cost :10,createdAt : "2024-08-23T17:02:47.296+02:00" ,data :{…},id :42,status : "pending" ,type : "jobs:request" ,updatedAt : "2024-08-23T17:02:47.296+02:00" ,},{cost :10,createdAt : "2024-08-23T17:02:40.000+02:00" ,data :{…},id :40,status : "completed" ,type : "jobs:request" ,updatedAt : "2024-08-23T17:02:40.000+02:00" ,},],meta :{currentPage :1,firstPage :1,lastPage :1,perPage :10,total :2,},}