Updating your whitelist IP¶
With a whitelist IP set, your endpoint only accepts requests from that address: one IPv4 address and, if you connect over IPv6, one IPv6 address. The whitelist is optional, but we recommend it. See Access & data handling for what it is and why it matters.
A new service starts locked: nothing can connect until you either set an address or remove the whitelist. You can change it at any time from the client area, or programmatically with the API below. The API is ideal when your public IP changes often (home connection, VPN, a new server) and you want to update it from a script.
In the client area¶
Open your service in the client area and find the IP Whitelist panel. It shows which state you're in:
| State | What it means |
|---|---|
| "No address set yet" | A new service: nothing can connect until you set an address or remove the whitelist. |
| "Only requests from the address below can use your keys." | A whitelist is set. |
| "No whitelist" | Your keys work from any address. |
- To set or change it: enter your public IPv4 address in Whitelisted IPv4 Address (on the machine that needs access, Detect my current IP fills it in), then click Save Changes. An IPv6 address set through the API is shown in the panel and kept when you save an IPv4 address.
- To remove it: click Remove whitelist and confirm. This clears both the IPv4 and the IPv6 address. Your keys then work from any address, so anyone who has them can use your service. You can set an address again at any time.
Either way, the change takes effect immediately. The client area allows 3 changes per week, removals included. Saving an empty field is refused: to allow any address, use Remove whitelist.
Removing it is client-area only
The API below sets addresses; it can't remove the whitelist.
The endpoint¶
POST https://dashboard.the777seas.com/clearstream-api/whitelist-ip/
You authenticate with the same S3 access key and secret key you use to connect to your storage (from your welcome email). The request must be over HTTPS — plain HTTP is rejected.
Already using the /zendrive-api/ URL? Nothing to change
This API was first published at
https://dashboard.the777seas.com/zendrive-api/whitelist-ip/. That URL keeps
working and does exactly the same thing, so existing cron jobs and scripts
need no change. /clearstream-api/ is a second address for the same API, and
it's the one used in the examples on this page.
Quick examples¶
curl -X POST https://dashboard.the777seas.com/clearstream-api/whitelist-ip/ \
-H "Content-Type: application/json" \
-d '{
"access_key": "YOUR_ACCESS_KEY",
"secret_key": "YOUR_SECRET_KEY",
"ip": "203.0.113.55"
}'
Omit the IP entirely and the API uses the public IP the request came from — handy for a cron job on the machine that needs access:
curl -X POST https://dashboard.the777seas.com/clearstream-api/whitelist-ip/ \
-H "Content-Type: application/json" \
-d '{
"access_key": "YOUR_ACCESS_KEY",
"secret_key": "YOUR_SECRET_KEY"
}'
curl -X POST https://dashboard.the777seas.com/clearstream-api/whitelist-ip/ \
-H "Content-Type: application/json" \
-d '{
"access_key": "YOUR_ACCESS_KEY",
"secret_key": "YOUR_SECRET_KEY",
"ipv6": "2606:4700:4700::1111"
}'
curl -X POST https://dashboard.the777seas.com/clearstream-api/whitelist-ip/ \
-H "Content-Type: application/json" \
-d '{
"access_key": "YOUR_ACCESS_KEY",
"secret_key": "YOUR_SECRET_KEY",
"ipv4": "203.0.113.55",
"ipv6": "2606:4700:4700::1111"
}'
Parameters¶
| Field | Required | Description |
|---|---|---|
access_key |
Yes | Your S3 access key. |
secret_key |
Yes | Your S3 secret key. |
ip |
No | An IPv4 or IPv6 address — routed to the matching family automatically. |
ipv4 |
No | Set the IPv4 whitelist specifically. |
ipv6 |
No | Set the IPv6 whitelist specifically. |
If you send none of ip / ipv4 / ipv6, the API auto-detects from the IP your
request arrives from. The address must be a public address — private and reserved
ranges (e.g. 192.168.x.x, 10.x.x.x, 127.0.0.1) are rejected.
Updating one family leaves the other untouched
Sending only ipv6 updates your IPv6 whitelist and keeps your existing IPv4
(and vice-versa). To change both, send both — or use a single ip value to
replace whichever family it belongs to.
IPv4 and IPv6 are checked separately
A request over IPv4 must come from exactly your whitelisted IPv4 address, and a request over IPv6 from exactly your whitelisted IPv6 address. Set only an IPv4 address and every IPv6 request is refused, and the other way round. Ranges aren't supported: one address per family.
A successful response¶
{
"status": "ok",
"service_id": 1234,
"client_ipv4": "203.0.113.55",
"client_ipv6": null
}
The change takes effect immediately: the next request from the new IP is accepted, and the old IP stops working. If a client kept retrying while your whitelist was wrong, it may already have got your IP temporarily blocked for an hour.
Errors¶
| HTTP | message |
Meaning |
|---|---|---|
400 |
access_key and secret_key are required |
A credential field was missing. |
400 |
... must be a public address |
The IP was private, reserved, or malformed. |
400 |
HTTPS is required |
The request wasn't over HTTPS. |
401 |
Invalid credentials |
Access key or secret key didn't match. |
403 |
Service is not active |
The service is suspended or cancelled. |
405 |
POST is required |
Use POST, not GET. |
429 |
Too many requests, slow down |
Wait a moment — there's a short per-key rate limit. |
Generate an auto-updater with an AI assistant¶
Want a hands-off updater that keeps your whitelist IP in sync with your machine's changing public IP? Paste the prompt below into an AI assistant and fill in the bracketed details.
I need to keep my ClearStream whitelist IP in sync with my machine's changing public IP.
Generate a dynamic-IP updater using the auto-detect API call.
Reference: https://wiki.clearstreamer.com/connecting/whitelist-ip/
My details:
- API endpoint: https://dashboard.the777seas.com/clearstream-api/whitelist-ip/
- My S3 access key + secret key: [paste — treat the secret like a password]
- OS / scheduler I want: [cron / systemd timer / NetworkManager dispatcher / other]
- Update frequency: [e.g. every 15 minutes]
Produce the script plus the scheduler unit/entry to run it, and a one-line way to test it.
Rules you must follow:
- POST over HTTPS only. Send just access_key + secret_key (omit the IP) so the API
auto-detects my current public IP.
- Store my keys in a root-owned file with chmod 600 — never inline them in a
world-readable script, a committed file, or logs.
- Respect the per-key rate limit: don't run more often than necessary (15 minutes is
fine), and back off on HTTP 429.
- Only act on success; log failures (400/401/403/429) without printing the keys.
- Don't invent credentials — leave placeholders for anything I didn't provide.
Keeping it secure¶
- The request carries your secret key, so the endpoint enforces HTTPS — never send it over plain HTTP, and don't log it. Treat any script holding these keys the same way you'd treat the keys themselves.
- If your keys may have been exposed, rotate them — see Credentials & rotation.
Auto-update on a schedule
Run the auto-detect call from a cron job on the machine that needs access, and your whitelist IP follows that machine's public IP automatically:
*/15 * * * * curl -s -X POST https://dashboard.the777seas.com/clearstream-api/whitelist-ip/ \
-H "Content-Type: application/json" \
-d '{"access_key":"YOUR_ACCESS_KEY","secret_key":"YOUR_SECRET_KEY"}' >/dev/null