Create a code
Idempotency-Key is REQUIRED, not optional. Creating a code consumes plan quota and mints a permanent slug, so a client that times out and retries without one ends up with two codes and no way to tell which it printed. Requiring the header turns that from a silent accounting problem into a 400 on your very first call.
A retry with the same key replays the stored response verbatim, with Idempotent-Replay: true. The same key with a different body is a 409 rather than a silent no-op.
Plan quota, destination screening and reserved-slug refusal are enforced here exactly as they are in the dashboard. There is no path through this API that bypasses an abuse control.
Request
- Base URL: https://scanduro.com
- URL: https://scanduro.com/api/v1/codes
- Auth: HTTP bearer
Headers
Any unique string per logical creation, e.g. a UUID. Completed responses are retained for 24 hours. Concurrent requests are claimed before creation; an in-flight or ambiguous request returns 409 request_in_progress with Retry-After. Reuse the same key. Ambiguous unfinished claims are retained for operator reconciliation, never auto-reissued.
Request body
Example request
{
"subdomain": "sisar",
"domain": "go.example.com"
}Response
Created, or replayed from a previous identical request.
Example response
{
"data": {
"id": "lnk_4f2c19ab7d0e46f1a8b3c5d7e9f10203",
"hostname": "sisar.scandu.ro"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.