# API Examples

Show a lower third:

```bash
curl -X POST https://yourdomain.com/graphics/api.php \
  -H "Content-Type: application/json" \
  -d '{"cmd":"show_lowerthird","name":"SERGE NDAYIZEYE","role":"Presenter","topic":"Radio Itahuka Live Debate"}'
```

Show ticker:

```bash
curl -X POST https://yourdomain.com/graphics/api.php \
  -H "Content-Type: application/json" \
  -d '{"cmd":"show_ticker","label":"LIVE UPDATE","text":"This is a live crawl","speed":42}'
```

Show media popup:

```bash
curl -X POST https://yourdomain.com/graphics/api.php \
  -H "Content-Type: application/json" \
  -d '{"cmd":"show_media","type":"pdf","title":"Agreement Review","url":"assets/uploads/agreement.pdf"}'
```

Update a layer position:

```bash
curl -X POST https://yourdomain.com/graphics/api.php \
  -H "Content-Type: application/json" \
  -d '{"cmd":"update_layer","layer":"lowerthird","x":86,"y":760,"w":1180,"h":150,"visible":true}'
```
