GET
/
requests
/
logs
curl --request GET \
  --url https://api.stackone.com/requests/logs \
  --header 'Authorization: Basic <encoded-value>'
{
  "next": "<string>",
  "data": [
    {
      "request_id": "adbf752f-6457-4ddd-89b3-98ae2252b83b",
      "event_datetime": "2021-01-01T00:00:00Z",
      "start_time": "2021-01-01T00:00:00Z",
      "end_time": "2021-01-01T00:00:00Z",
      "account_id": "45355976281015164504",
      "project_id": "dev-project-68574",
      "http_method": "get",
      "path": "/unified/hris/employees",
      "url": "https://api.stackone.com/unified/hris/employees?raw=false",
      "status": 200,
      "duration": 356,
      "success": true,
      "provider": "planday",
      "service": "hris",
      "resource": "employees",
      "child_resource": "time-off",
      "sub_resource": "documents",
      "action": "download",
      "is_worker": false,
      "source_type": "DASHBOARD",
      "source_value": "ACCOUNT_TESTER",
      "source_id": "1234567890",
      "step_requests": [
        {
          "request_id": "adbf752f-6457-4ddd-89b3-98ae2252b83b",
          "start_time": "2021-01-01T00:00:00Z",
          "end_time": "2021-01-01T00:00:00Z",
          "account_id": "45355976281015164504",
          "project_id": "dev-project-68574",
          "http_method": "get",
          "path": "/unified/hris/employees",
          "url": "https://api.stackone.com/unified/hris/employees?raw=false",
          "status": 200,
          "duration": 356,
          "success": true,
          "provider": "planday",
          "service": "hris",
          "resource": "employees",
          "child_resource": "time-off",
          "sub_resource": "documents",
          "action": "download",
          "is_worker": false,
          "id": "adbf752f-6457-4ddd-89b3-98ae2252b83b"
        }
      ]
    }
  ]
}

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Query Parameters

order_by
enum<string> | null

The field to order the results by.

Available options:
provider,
service,
status,
eventDatetime,
duration
Example:

"created_at"

order_direction
enum<string> | null

The direction to order the results by.

Available options:
asc,
desc
Example:

"asc"

page_size
number | null

The number of results per page (default value is 25)

Required range: x <= 100
next
string | null

The unified cursor

include
enum<string> | null

The include parameter allows you to include additional data in the response.

Available options:
step_logs
Example:

"step_logs"

filter
object | null

Filter parameters that allow greater customisation of the list response

Response

200
application/json

The list of logs was retrieved.

The response is of type object.