Timeline ReasonsRetrieve all timeline reasons

Retrieve all timeline reasons

Retrieves all timeline reasons associated with the current company. These reasons are used to track machine downtimes, operational issues, and other significant events.

curl -X GET "https://wm.novoai.de/v2/timeline_reason" \
  -H "Content-Type: application/json" \
  -H "accept: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN (JWT)" \
  -H "X-API-KEY: YOUR_API_KEY"
{
  "status": 1,
  "timeline_reason_list": [
    {
      "id": 1,
      "name": "Downtime",
      "level": "Critical",
      "reason": "Power failure",
      "meta_backend": {},
      "meta_frontend": {}
    }
  ]
}
GET
/v2/timeline_reason
GET
Base URLstring

Target server for requests. Edit to use your own host.

Bearer Token (JWT)
Bearer Tokenstring
Required

JWT Bearer token authentication. Include in the Authorization header as Bearer <token>.

JWT Bearer token authentication. Include in the Authorization header as Bearer <token>.
API Key (header: X-API-KEY)
X-API-KEYstring
Required

API-Access Key authentication. Include the generated key in the X-API-KEY header.

API-Access Key authentication. Include the generated key in the X-API-KEY header.
header
acceptstring
Required

Must be application/json.

Request Preview
Response

Response will appear here after sending the request

Authentication

header
Authorizationstring
Required

Bearer token (JWT). JWT Bearer token authentication. Include in the Authorization header as Bearer \<token\>.

header
X-API-KEYstring
Required

API Key for authentication. API-Access Key authentication. Include the generated key in the X-API-KEY header.

Headers

acceptstring
Required

Must be application/json.

Example:
application/json

Responses

statusinteger
Required

Indicates the success of the request. 1 for success, 0 for failure.

timeline_reason_listarray
Required

A list of timeline reasons available for the company.