Skip to main content

Using the SDK

If you’re using the @usenotra/sdk package, types are already included. Import them directly:
The SDK ships with full type definitions, so there is no need to maintain your own. The types below are only needed if you’re calling 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. 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

For runtime validation, you can use these Zod schemas. The request limits mirror the API: titles up to 120 characters, slugs up to 160 characters of lowercase letters, numbers and hyphens, markdown up to 100,000 characters, and at least one field per update.
Last modified on September 29, 2026