# Your quack address

> A private address only you have. Anything that can make a web request can POST a line to it, and Waddle walks over with it on each of your Macs. Waddle Club.

## Get yours

```sh
waddle url
```

It's copied, ready to paste: `https://quack.waddle.sh/quack/` and a secret of 24 letters and digits. `waddle url --new` makes a new one (the old one stops working), and `waddle url --stop` stops it. Run it in your own terminal: agents can't read your address. Only the Mac that made the address can show it again.

Treat it like a password. Whoever has it can make Waddle talk.

## Send a line

```sh
curl https://quack.waddle.sh/quack/<your-secret> -d 'deploy finished'
```

Plain text, or JSON with a title:

```sh
curl https://quack.waddle.sh/quack/<your-secret> \
  -H 'content-type: application/json' \
  -d '{"title":"nightly","text":"all 214 tests passed"}'
```

Waddle brings it as a paper plane, on each of your Macs that's signed in.

| Field | What it is |
|---|---|
| `text` | Up to 1,000 characters. Required. |
| `title` | Up to 60 characters. |

It's only ever drawn, never run: control characters are dropped. The server keeps a quack until each of your Macs has it, or 7 days.

## Replies

| Status | `error` | When |
|---|---|---|
| 200 | | `{ "ok": true }` |
| 400 | `no-text`, `bad-json` | Nothing to say, or JSON that doesn't parse |
| 402 | `not-in-club` | The address belongs to someone who isn't in the Waddle Club now |
| 404 | `no-such-address` | No address like that |
| 413 | `too-long` | More than 1,000 characters |
| 429 | `too-many` | More than 30 a minute, or 500 a day (a quack to two Macs counts twice). `Retry-After: 60`. |

The reply never says how many Macs you have.

## From CI

A GitHub Actions step, with the address kept as a secret named `WADDLE_QUACK`:

```yaml
- name: Tell Waddle
  if: always()
  run: |
    curl -fsS "$WADDLE_QUACK" -d "${{ github.workflow }}: ${{ job.status }}" || true
  env:
    WADDLE_QUACK: ${{ secrets.WADDLE_QUACK }}
```

More in [A deploy duck from CI](https://docs.waddle.sh/deploys.md).
