REST API Reference

Base URL: https://api.keito.ai/v1

All requests and responses use JSON. Authenticate with a Bearer token in the Authorization header.

Conventions

  • Dates — ISO 8601 format: YYYY-MM-DD for dates, full ISO for timestamps.
  • IDs — prefixed strings: prj_, tsk_, usr_, te_, exp_.
  • Pagination — cursor-based. Responses include next_cursor when more results exist.
  • Errors — consistent error object (see Error Handling).

Endpoints

MethodEndpointDescription
POST/v1/time-entriesCreate a time entry
GET/v1/time-entriesList time entries
GET/v1/time-entries/:idGet a single time entry
PATCH/v1/time-entries/:idUpdate a time entry
DELETE/v1/time-entries/:idDelete a time entry
POST/v1/expensesCreate an expense
GET/v1/expensesList expenses
GET/v1/expenses/:idGet a single expense
GET/v1/projectsList projects
GET/v1/projects/:idGet a single project
GET/v1/usersList users
GET/v1/users/:idGet a single user

Common Query Parameters

ParameterTypeDescription
sourcestringFilter by source: web, cli, api, agent
project_idstringFilter by project
user_idstringFilter by user
fromstringStart date (YYYY-MM-DD)
tostringEnd date (YYYY-MM-DD)
cursorstringPagination cursor
limitnumberResults per page (default 50, max 200)