jsdom environment are not supported.
Installation
Create a client
In Node.js, Bun, and Deno, setGUMNUT_API_KEY in the environment and the
client reads it automatically. Do not embed an API key in browser code. For a
browser integration, use OAuth or call the SDK through a backend proxy that
keeps the API key server-side.
Upload and organize a photo
Generated request fields use snake_case, while resource methods use camelCase.library_id is optional for accounts with one library and required when an
account has multiple libraries.
Uploads accept an fs.ReadStream, a web File, a fetch Response, or the
result of the exported toFile helper. See the
generated API reference
for the complete parameter types.
Search
Pagination
List methods return async-iterable cursor pages. Afor await loop fetches
subsequent pages as needed.
hasNextPage() and getNextPage():
Retries and timeouts
The SDK retries connection errors, HTTP 408, 409, 429, and 5xx responses twice by default. Configure retries and the timeout on the client:Error handling
All SDK errors extendGumnut.APIError. HTTP failures expose a status code;
connection failures use APIConnectionError subclasses.