Get log
GET
/v2/logs/{id}Authorization
api_key AuthorizationBearer <token>
API key for authentication. Use format: Bearer YOUR_API_KEY
In: header
Path Parameters
id*string
Unique identifier for the log entry.
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/v2/logs/string"{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"level": "DEBUG",
"message": "string",
"created_at": "2019-08-24T14:15:22Z",
"source_file": "string",
"line_number": -9007199254740991,
"run": {
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"outcome": "PASS",
"started_at": "2019-08-24T14:15:22Z"
},
"unit": {
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"serial_number": "string"
},
"procedure": {
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"name": "string"
},
"created_by_user": {
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"name": "string",
"email": "string"
},
"created_by_station": {
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"name": "string"
}
}{
"message": "Unauthorized",
"code": "UNAUTHORIZED",
"issues": []
}{
"message": "Not found",
"code": "NOT_FOUND",
"issues": []
}{
"message": "Request timeout",
"code": "TIMEOUT",
"issues": []
}{
"message": "Internal server error",
"code": "INTERNAL_SERVER_ERROR",
"issues": []
}How is this guide?
Import runs from a tabular file POST
Import a previously uploaded tabular file (CSV or Excel) by mapping its columns to TofuPilot fields. See its parameters, response schema, and status codes.
List and filter logs GET
List logs with filtering by run, procedure, level, date range, unit, and source. Cursor-paginated. See its parameters, response schema, and status codes.