Skip to main content

Using the SDK

The @usenotra/sdk package includes its types, so you can import them directly:
The SDK ships with full type definitions, so you do not need to maintain your own, and you only need the types below if you call the API with raw fetch.
For any endpoint, including the GEO group that the SDK does not cover yet, the OpenAPI document is the source of truth, and tools such as openapi-typescript can turn it into a complete set of types.

Using fetch

If you call the post endpoints directly with fetch, these types match the current responses:

Type definitions

Copy these types into your project:
Copy these type definitions into a types/notra.ts file in your project.

Zod schemas

Use these Zod schemas for runtime validation. Their request limits match the API:
  • Titles up to 120 characters.
  • Slugs up to 160 characters of lowercase letters, numbers and hyphens.
  • Markdown up to 100,000 characters.
  • At least one field per update.
Last modified on October 8, 2026