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

# Wonderment API

> The Wonderment API provides shipment tracking for merchants using Wonderment.

> [!WARNING]
>
> The Wonderment API is a **separate API** from the Loop Returns API. It uses a different host, authentication method, and version scheme. Do not mix Loop API keys or OAuth tokens with Wonderment API requests.

## Base URL

All Wonderment API requests use this base URL:

```
https://api.wonderment.com/2022-10
```

The API version (`2022-10`) is part of the path. There is currently one version.

## Authentication

Wonderment uses its own access tokens, separate from Loop API keys and OAuth.

Send the token in the `X-Wonderment-Access-Token` header on every request:

```bash theme={null}
curl "https://api.wonderment.com/2022-10/shipments/search/%231001?t=${t}" \
  -H "X-Wonderment-Access-Token: sk_live_..."
```

> [!NOTE]
>
> Customer verification is required. See [Search shipments](https://docs.loopreturns.com/api-reference/wonderment/search-shipments.md#customer-verification) for details on the `t` parameter.

### Create an access token

1. Log in to the Wonderment app.
2. Navigate to **Settings → Integrations → Access Tokens**.
3. Create a new token. The token is shown once, when you create it.

> [!WARNING]
>
> **Keep your token secret.** Call the Wonderment API from your server, not from a browser or mobile app. If a token appears anywhere in the URL, the API responds with `400` and asks you to rotate it.

## Available endpoints

| Endpoint | Description |
| - | - |
| [Search shipments](https://docs.loopreturns.com/api-reference/wonderment/search-shipments.md) | Look up shipments by order name or tracking code |

## Next steps

> [card] [Search shipments](https://docs.loopreturns.com/api-reference/wonderment/search-shipments.md)
>
> Look up an order's shipments by order name or tracking code.


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