> ## Documentation Index
> Fetch the complete documentation index at: https://developers.onio.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Quickstart

> Create a token and read your wishlists.

**1. Create a personal access token**

Sign in to [Onio](https://web.onio.app) 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.

> [!WARNING]
>
> 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**

```bash theme={null}
export ONIO_TOKEN="onio_pat_your_token"
```

**3. List your wishlists**

```bash theme={null}
curl https://web.onio.app/api/v1/wishlists \
  -H "Authorization: Bearer $ONIO_TOKEN"
```

The response is a page of wishlists:

```json theme={null}
{
  "data": [
    {
      "id": "3f6c1a52-8d1e-4b7a-9c2e-1f5d7a9b0c41",
      "title": "Birthday 2027",
      "occasion": "birthday",
      "notes": "Anything green is great.",
      "status": "published",
      "createdAt": "2026-11-02T09:15:00.000Z",
      "updatedAt": "2026-11-10T18:42:00.000Z"
    }
  ],
  "nextCursor": null
}
```

**4. List the wishes of a wishlist**

Use the `id` of a wishlist from the previous step:

```bash theme={null}
curl https://web.onio.app/api/v1/wishlists/3f6c1a52-8d1e-4b7a-9c2e-1f5d7a9b0c41/wishes \
  -H "Authorization: Bearer $ONIO_TOKEN"
```

## Next steps

> [card] [Pagination](https://developers.onio.app/pagination.md)
>
> Read all items when a list has more than one page.

> [card] [Back up your wishlists](https://developers.onio.app/guides/back-up-your-wishlists.md)
>
> Write all wishlists and wishes to a JSON file.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.