# Start with the API

Make a key, send one call and read the answer.

## Basics

| Rule | Value |
|---|---|
| Address | `https://api.usetotems.com/v1` |
| Format | JSON |
| Key | `Authorization: Bearer tm_live_...` |
| Time | UTC, such as `2026-12-03T20:00:00Z` |
| Report days | `from` and `to` are days, such as `2026-12-03`, in your workspace's time zone. Both days count. With no dates you get the last 30 days, the same as the app |
| Money | Whole cents, plus a currency |
| Schema file | `/v1/openapi.json`, no key needed |

> The address above is a placeholder until the product has its real domain. On your own server, the same API is at `/api/v1`.

## Your first call

1. **Make a test key.** Sign in, open your workspace, then Settings, then API and MCP. Give the key a name, tick what it may do, and tick "Test key". Copy it. It shows once. If the page asks you to sign in again first, do that. It's a safety check for keys.
2. **Save it** in your terminal:

   ```bash
   export TOTEMS_KEY="tm_test_..."
   ```

3. **Ask who you are:**

   ```bash
   curl "https://api.usetotems.com/v1/me" \
     -H "Authorization: Bearer $TOTEMS_KEY"
   ```

The same page shows this call with your own address filled in. Copy it from there if the address above doesn't work for you yet.

## How to know it worked

The answer has your workspace inside `data`, and a `request_id`. Keep that id if you need help.

## Next

[All 53 calls](/docs/api/reference), [errors](/docs/api/errors) and [limits](/docs/api/limits).
