Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.otim.com/llms.txt

Use this file to discover all available pages before exploring further.

All list endpoints return paginated results using cursor-based pagination. This ensures consistent results even when new items are created between requests.

Response format

Every list endpoint returns the same pagination structure:
{
  "data": [],
  "hasMore": true,
  "nextCursor": "abc123"
}
FieldTypeDescription
dataarrayThe list of items for the current page.
hasMorebooleanWhether there are more items after this page.
nextCursorstring or nullThe cursor to use for the next page. null when there are no more items.

Fetching the next page

To fetch the next page, pass the nextCursor value as the cursor query parameter:
# First page
curl https://api.otim.com/v0/accounts?limit=10 \
  -H "Authorization: Bearer sk_..."

# Next page
curl https://api.otim.com/v0/accounts?limit=10&cursor=abc123 \
  -H "Authorization: Bearer sk_..."
Continue paginating until hasMore is false.

Parameters

ParameterDefaultMaxDescription
limit50100Number of items to return per page.
cursor--Cursor from a previous response’s nextCursor field.