# dar.vin custom upload for ksnip

In ksnip, open **Settings → Actions → Add custom action** and use this command
(replace the key or export `DARVIN_API_KEY` in your session first):

```sh
curl -sf -F "file=@%f" \
  -H "Authorization: Bearer $DARVIN_API_KEY" \
  -H "x-darvin-source: ksnip" \
  https://dar.vin/api/v3/screenshots | jq -r .shortUrl
```

Set the action to use the current screenshot file (`%f`), then copy the command
output to your clipboard using ksnip's command-output option or your desktop's
clipboard tool.
