Skip to content

Constants

DEFAULT_BASE_URL = 'https://api.notion.com' module-attribute

Default base URL for the Notion API.

DEFAULT_INITIAL_RETRY_DELAY_MS = 1000 module-attribute

Default initial delay between retries in milliseconds (1 second). Used as the base for exponential back-off when the retry-after header is absent.

DEFAULT_MAX_RETRIES = 2 module-attribute

Default maximum number of retry attempts for failed requests.

DEFAULT_MAX_RETRY_DELAY_MS = 60000 module-attribute

Default maximum delay between retries in milliseconds (60 seconds). Caps both retry-after and exponential back-off delays.

DEFAULT_TIMEOUT_MS = 60000 module-attribute

Default request timeout in milliseconds (60 seconds).

MIN_VIEW_COLUMN_WIDTH = 32 module-attribute

The minimum width of a view column in pixels. Use this with the views API to make a property column that appears minimal/collapsed in the Notion app UI (e.g. a checkbox or status-as-checkbox column).