How to Read
The DayKeeper API docs use the same structure on most endpoint pages so you can scan them quickly.
Page structure
Each endpoint page usually contains:
- The HTTP method and route.
- A short description of what the endpoint does.
- Authentication requirements.
- Path, query, or body parameters.
- A request example.
- A success response example.
- Common error responses.
Example format
Title
METHOD /endpoint
Description
Short explanation of the endpoint behavior.
Request Parameters
Requires Authentication: true or false
BODY
| Name | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Example field |
email | string | Yes | Example field |
password | string | Yes | Example field |
QUERY PARAMS
| Name | Type | Required | Description |
|---|---|---|---|
page | number | No | Example field |
q | string | No | Example field |
Authentication
Most protected endpoints expect a bearer token:
Authorization: Bearer <access_token>
If the token is missing, invalid, or expired, the API usually returns 401.
Request examples
Examples use axios, but any HTTP client works.
await axios.post(
"https://api.daykeeper.app/endpoint",
{ name: "John", email: "john@example.com", password: "secret123" },
{
headers: {
Authorization: `Bearer ${accessToken}`,
},
}
)
Response examples
Examples are representative. Real payloads may include more fields depending on the endpoint and the current API version.
Success response
{
"message": "Operation completed successfully"
}
Error response
{
"message": "Invalid or expired access token"
}
Notes
- Pagination responses usually include
page,pageSize,maxPageSize,totalPages, andtotalCount. - Dates in the existing API are commonly represented as
DD-MM-YYYYin route params and as ISO timestamps in response payloads. - Some older docs may still use legacy examples. Prefer the parameter tables and endpoint descriptions when something looks inconsistent.