Skip to main content
1

Create a personal access token

Sign in to Onio and open your profile. In API Access, select Create Token. Give the token a name that tells you where you use it, for example Home dashboard. Keep the default permission, Read wishlists and wishes.Copy the token. Onio shows it only once.
Treat the token like a password. Do not put it in client-side code or in a public repository.
2

Store the token in an environment variable

3

List your wishlists

The response is a page of wishlists:
4

List the wishes of a wishlist

Use the id of a wishlist from the previous step:

Next steps

Pagination

Read all items when a list has more than one page.

Back up your wishlists

Write all wishlists and wishes to a JSON file.