Platform API
API Reference
- Connect Sessions
- Accounts
- Request Logs
- Connectors
- Proxy
List 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",
"request": {
"id": "adbf752f-6457-4ddd-89b3-98ae2252b83b",
"method": "get",
"headers": {
"content-type": "application/json",
"authorization": "Bearer token"
},
"url": {
"url": "https://example.com/api/v1/resource",
"hostname": "example.com",
"path": "/api/v1/resource",
"query_params": {
"page": 1,
"limit": 10
}
},
"body": "<string>"
},
"response": {
"status_code": 200,
"headers": {
"content-type": "application/json",
"authorization": "Bearer token"
},
"body": "<string>",
"custom_mapping_errors": [
{
"id": "adbf752f-6457-4ddd-89b3-98ae2252b83b",
"message": "Invalid value",
"targetField": "first_name"
}
],
"provider_errors": [
{
"status": 400,
"url": "https://api.provider.com/v1/resource",
"raw": {
"message": "Invalid input parameters"
},
"headers": {
"content-type": "application/json",
"x-request-id": "5678c28b211dace4e0a0f9171e6b88c5"
}
}
]
},
"step_requests": "Account Tester"
}
]
}
Authorizations
Basic authentication header of the form Basic <encoded-value>
, where <encoded-value>
is the base64-encoded string username:password
.
Query Parameters
The field to order the results by.
provider
, service
, status
, eventDatetime
, duration
"created_at"
The direction to order the results by.
asc
, desc
"asc"
The number of results per page (default value is 25)
x <= 100
The unified cursor
The include parameter allows you to include additional data in the response.
step_logs
"step_logs"
Filter parameters that allow greater customisation of the list response
A comma-separated list of account IDs to filter the results by.
"45355976281015164504,45355976281015164505"
A ISO8601 date string to filter the results by start_date.
"2020-01-01T00:00:00.000Z"
A ISO8601 date string to filter the results by end_date.
"2020-01-01T00:00:00.000Z"
A comma-separated list of request IDs to filter the results by.
"adbf752f-6457-4ddd-89b3-98ae2252b83b,adbf752f-6457-4ddd-89b3-98ae2252b83c"
A comma-separated list of source types to filter the results by.
"DASHBOARD,SYNTHETIC_WEBHOOK"
A comma-separated list of source values to filter the results by.
A comma-separated list of source IDs to filter the results by.
A comma-separated list of HTTP methods to filter the results by.
"GET,POST"
A comma-separated list of provider keys to filter the results by.
"ashby,greenhouse"
A comma-separated list of services to filter the results by.
"hris,ats"
A comma-separated list of resources to filter the results by.
"employees,users"
A comma-separated list of child resources to filter the results by.
"documents,time-off"
A comma-separated list of sub resources to filter the results by.
"documents,employees"
A comma-separated list of actions to filter the results by.
"download,upload"
A comma-separated list of status codes to filter the results by.
"200,400"
A boolean value to filter the results by success or failure.
true
The field to order the results by.
provider
, service
, status
, eventDatetime
, duration
"created_at"
The direction to order the results by.
asc
, desc
"asc"
Response
The request ID
"adbf752f-6457-4ddd-89b3-98ae2252b83b"
The event ISO8601 date string
"2021-01-01T00:00:00Z"
The request start time ISO8601 date string
"2021-01-01T00:00:00Z"
The request end time ISO8601 date string
"2021-01-01T00:00:00Z"
The account ID of the request
"45355976281015164504"
The project ID of the request
"dev-project-68574"
The requested HTTP method
"get"
The requested path
"/unified/hris/employees"
The requested URL
"https://api.stackone.com/unified/hris/employees?raw=false"
The requests response status code
200
The request duration in milliseconds
356
The request success flag
true
The requested provider
"planday"
The requested service
"hris"
The requested resource
"employees"
The requested child resource
"time-off"
The requested sub resource
"documents"
The requested action
"download"
The asynchronous worker flag
false
The requests source type
"DASHBOARD"
The requests source value
"ACCOUNT_TESTER"
The requests source ID
"1234567890"
The advanced log request data
The request ID
"adbf752f-6457-4ddd-89b3-98ae2252b83b"
The request method
"get"
{
"content-type": "application/json",
"authorization": "Bearer token"
}
The request URL data
The request URL
"https://example.com/api/v1/resource"
The request URL hostname
"example.com"
The request path
"/api/v1/resource"
The request query parameters
{ "page": 1, "limit": 10 }
The advanced log response data
The response status code
200
{
"content-type": "application/json",
"authorization": "Bearer token"
}
The custom mapping errors
The custom mapping identifier
"adbf752f-6457-4ddd-89b3-98ae2252b83b"
The error message
"Invalid value"
The target field where the error occurred
"first_name"
The provider errors
HTTP status code of the provider error
400
URL that caused the error
"https://api.provider.com/v1/resource"
Raw error response from the provider
{ "message": "Invalid input parameters" }
Response headers
{
"content-type": "application/json",
"x-request-id": "5678c28b211dace4e0a0f9171e6b88c5"
}
The list of provider requests
"Account Tester"
Was this page helpful?
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",
"request": {
"id": "adbf752f-6457-4ddd-89b3-98ae2252b83b",
"method": "get",
"headers": {
"content-type": "application/json",
"authorization": "Bearer token"
},
"url": {
"url": "https://example.com/api/v1/resource",
"hostname": "example.com",
"path": "/api/v1/resource",
"query_params": {
"page": 1,
"limit": 10
}
},
"body": "<string>"
},
"response": {
"status_code": 200,
"headers": {
"content-type": "application/json",
"authorization": "Bearer token"
},
"body": "<string>",
"custom_mapping_errors": [
{
"id": "adbf752f-6457-4ddd-89b3-98ae2252b83b",
"message": "Invalid value",
"targetField": "first_name"
}
],
"provider_errors": [
{
"status": 400,
"url": "https://api.provider.com/v1/resource",
"raw": {
"message": "Invalid input parameters"
},
"headers": {
"content-type": "application/json",
"x-request-id": "5678c28b211dace4e0a0f9171e6b88c5"
}
}
]
},
"step_requests": "Account Tester"
}
]
}