Platform API
API Reference
- Connect Sessions
- Accounts
- Request Logs
- Connectors
- Proxy
Get a Log
curl --request GET \
--url https://api.stackone.com/requests/logs/{id} \
--header 'Authorization: Basic <encoded-value>'
{
"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
.
Path Parameters
Query Parameters
The include parameter allows you to include additional data in the response.
step_logs
, advanced_logs
"step_logs"
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/{id} \
--header 'Authorization: Basic <encoded-value>'
{
"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"
}
}