Militime API

Pagination

Cursor-based pagination for list endpoints.

List endpoints return a list envelope and use opaque cursor pagination.

{
  "object": "list",
  "data": [ /* … resources … */ ],
  "has_more": true,
  "next_cursor": "MjAyNi0wNy0wNlQxNDoyMDowMC4wMDBafGNsXzEyMw"
}

Parameters

Query paramDescription
limitItems per page, 1100. Defaults to 25.
cursorThe next_cursor from the previous response. Omit for the first page.

Results are ordered by creation time, newest first.

Paging through everything

# First page
curl "https://app.militime.ai/api/v1/clients?limit=50" \
  -H "Authorization: Bearer mt_live_your_token"

# Next page — pass the next_cursor back as ?cursor=
curl "https://app.militime.ai/api/v1/clients?limit=50&cursor=MjAyNi0w…" \
  -H "Authorization: Bearer mt_live_your_token"

When has_more is false, next_cursor is null and you've reached the end.

Cursors are opaque — don't parse or construct them. Always pass back the exact next_cursor string you received.