Skip to main content

Content type

To receive JSON responses from the absentify API, ensure the following headers are included in each request:
  • Content-Type: application/json
  • Accept: application/json

Successful response

For successful API calls, absentify will return a 200 HTTP status code, indicating that the request was processed as expected.

Error response

In cases of errors, absentify uses appropriate HTTP status codes to reflect the type of issue encountered. The error response will include a JSON message in the following structure:
Validation errors can also include an optional issues array:
  • message: A brief description of the error.
  • code: A code that represents the error type.
  • issues: An optional list of specific validation issues, each with its own message. Do not assume this field is present on every error.
For best results, always handle both 200 success codes and error responses in your application to manage all outcomes gracefully.