Menu

names

The names operations.

The caller's free names#

GET /names · operation listFreeNames

Every free name the caller holds (not released), oldest first, with its state and, while nothing is attached, when it will be released. Cost (credit charges in GET /credits/charges): the per_request credit charge of names.reads is charged for each call that answers successfully, after it has answered (a refused or failed call is not charged); the calls are added up and taken from the credits every hour.

Credentialan API key holding the permission below, or a session (x-weird-auth: key)
Permissionnames:read
Chargedyes — see the charges below
Retry safetya repeat makes a second one and is charged again: each successful call is charged as one request: a repeat after a lost answer is a second request and is charged again

Credit charges (each a contract of the list of credit charges; the credit charge in force is filled in from the API):

ContractRateWhenTimesCredit charge in force
names.readsper_requestafter a successful answer—see the credit charges

Answer 200 (FreeNameList): the result

  • names, array of objects, required
    • released_at, string or null
    • idle_since, string or null — since when nothing is attached
    • first_served_at, string or null
    • last_attached_at, string or null
    • release_after, string or null — when the name is released if still nothing is attached
    • label, string, required
    • id, string, required
    • base, string, required
    • name, string, required — the full name, such as ana.e-weird.ro
    • domain_id, string or null — the attached gateway domain (GET /ipfs/domains/{id})
    • state, string, required — claimed: nothing attached yet (its idle clock runs); serving: a site is attached (POST /ipfs/domains); suspended: held under an abuse review; released (one of claimed, serving, suspended, released)
    • release_reason, string or null (one of customer, idle, account-closed, abuse, platform, null)
    • claimed_at, string, required

Refusals ({"error": {"code", "message"}}; see errors):

StatusCodesWhen
401unauthorizedunauthorized
403insufficient-scope, profile-incomplete, terms-acceptance-requiredinsufficient-scope (an API key without the scope x-weird-scope names: use a key that holds it) or profile-incomplete (complete the profile first: GET /auth/profile says what is missing); terms-acceptance-required (the current terms of service or privacy notice are not accepted yet: required lists them; read them with GET /legal/documents and accept with POST /auth/legal/accept)
429rate-limitedrate-limited

Example

curl -X GET 'https://api.weird.ro/names' \
  -H "Authorization: Bearer $WEIRD_API_KEY"

With the CLI (weird names list, weird names release, weird names show):

$ weird names list$ weird names release <name|id>$ weird names show <name|id>

MCP: weird_names_list.

Claim a free name#

POST /names · operation claimFreeName

Claims label under base (absent: the first open base) for the caller: the name is the caller's to put a site on (POST /ipfs/domains with the name as hostname: the content behind it is billed as storage). A name is free: it is lent, not sold, and is released when nothing has been attached to it for idle_days (told before), when the account closes, or after an abuse decision; then nobody may claim it for quarantine_days. Only a site from the caller's stored content can be put on a name: no other DNS record, no mail (every name says it sends none). One label of the letters a-z, digits and inner hyphens (no accents or other alphabets); reserved names and look-alikes of them are refused. Refused 409 base-closed, name-reserved, name-forbidden, name-taken, name-quarantined (with until), claim-limit (the most names one account holds), base-full (this base has no room for new names right now: try another base, or later), 403 account-too-new (with retry_after, the seconds to wait, and retry_at, the instant), 429 claim-rate-limited (with retry_after, the seconds to wait, and retry_at, the instant). Charged under the contract names.free-claim. Cost (credit charges in GET /credits/charges): the per_request credit charge of names.free-claim is taken from the credits before it runs (402 insufficient-funds when they do not cover it: top up, then retry; it is refunded when the operation fails).

Credentialan API key holding the permission below, or a session (x-weird-auth: key)
Permissionnames:write
Strong authenticationa session needs an authenticator enrolled and a recent proof of it (a step-up in the last 15 minutes, or totp_code / backup_code in the body); an API key is not asked — see authentication
Chargedyes — see the charges below
Retry safetysend the Idempotency-Key header: a repeat with the same key answers the first answer and is not performed or charged again

Credit charges (each a contract of the list of credit charges; the credit charge in force is filled in from the API):

ContractRateWhenTimesCredit charge in force
names.free-claimper_requestbefore it runs—see the credit charges

Parameters

NameInTypeRequiredDescription
Idempotency-Keyheaderstringno1..255 printable ASCII characters naming this operation. Repeating the request with the same key (on the same route, within 24 hours) answers the first answer again with the header idempotent-replay: true; it is not performed or charged a second time.

Request body (ClaimFreeName):

  • label, string, required — one label: the letters a-z, digits and inner hyphens
  • base, string — an open base of GET /names/bases; absent: the first open one

Answer 201 (FreeName): the result

  • released_at, string or null
  • idle_since, string or null — since when nothing is attached
  • first_served_at, string or null
  • last_attached_at, string or null
  • release_after, string or null — when the name is released if still nothing is attached
  • label, string, required
  • id, string, required
  • base, string, required
  • name, string, required — the full name, such as ana.e-weird.ro
  • domain_id, string or null — the attached gateway domain (GET /ipfs/domains/{id})
  • state, string, required — claimed: nothing attached yet (its idle clock runs); serving: a site is attached (POST /ipfs/domains); suspended: held under an abuse review; released (one of claimed, serving, suspended, released)
  • release_reason, string or null (one of customer, idle, account-closed, abuse, platform, null)
  • claimed_at, string, required

Refusals ({"error": {"code", "message"}}; see errors):

StatusCodesWhen
400invalid-paramsinvalid-params (field label or base); invalid-params (field Idempotency-Key: a malformed key, or one used for a different request)
401unauthorizedunauthorized
402insufficient-fundsinsufficient-funds (the credits do not cover it: top up with POST /credits/topup, then retry)
403account-suspended, account-too-new, enrolment-required, insufficient-scope, profile-incomplete, step-up-required, terms-acceptance-requiredinsufficient-scope (an API key without the scope x-weird-scope names: use a key that holds it), profile-incomplete (complete the profile first: GET /auth/profile says what is missing) or account-too-new; enrolment-required (a session caller whose account has no authenticator: enrol one first) or step-up-required (a session without a recent step-up: POST /auth/step-up, then retry); account-suspended (the account is restricted while a report about it is reviewed: reading, support tickets and the copy of its data keep working; contact is the address to write to, GET /auth/account/restrictions says more); terms-acceptance-required (the current terms of service or privacy notice are not accepted yet: required lists them; read them with GET /legal/documents and accept with POST /auth/legal/accept)
409base-closed, base-full, claim-limit, conflict, name-forbidden, name-quarantined, name-reserved, name-takenbase-closed, name-reserved, name-forbidden, name-taken, name-quarantined, claim-limit or base-full (this base has no room for new names right now: try another base, or later); conflict (the same operation is still in progress: retry shortly)
422invalid-totpinvalid-totp (a wrong or replayed authenticator code)
429claim-rate-limited, rate-limitedclaim-rate-limited or rate-limited
502upstream-unavailableupstream-unavailable (try again later)
503charges-not-published, free-names-not-ready, ledger-unavailable, unavailablefree-names-not-ready (free addresses under this base are not open yet: try again later; with base), unavailable (free names are not available now), ledger-unavailable (the credit account did not answer: try again later) or charges-not-published (the credit charges are not published yet: try again later)

Example

curl -X POST 'https://api.weird.ro/names' \
  -H "Authorization: Bearer $WEIRD_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"label":"<label>"}'

With the CLI (weird names claim, weird names publish):

$ weird names claim <name>$ weird names publish <name> [file|folder]

MCP: weird_names_claim.

The bases free names are claimed under, and their rules#

GET /names/bases · operation listFreeNameBases

The bases (open: takes new names; closed: keeps serving its names, takes none), the label rules, the limits, and how long a name with nothing attached is kept (idle_days, told idle_notice_days before) and how long a released name stays unclaimable (quarantine_days). No complete profile needed. Cost (credit charges in GET /credits/charges): the per_request credit charge of names.reads is charged for each call that answers successfully, after it has answered (a refused or failed call is not charged); the calls are added up and taken from the credits every hour.

Credentialan API key holding the permission below, or a session (x-weird-auth: key)
Permissionnames:read
Chargedyes — see the charges below
Retry safetya repeat makes a second one and is charged again: each successful call is charged as one request: a repeat after a lost answer is a second request and is charged again

Credit charges (each a contract of the list of credit charges; the credit charge in force is filled in from the API):

ContractRateWhenTimesCredit charge in force
names.readsper_requestafter a successful answer—see the credit charges

Answer 200 (FreeNameBases): the result

  • bases, array of objects, required
    • domain, string, required — a base such as e-weird.ro
    • state, string, required — open takes new names; closed keeps serving the names it has and takes none (one of open, closed)
  • rules, object, required
    • min_length, integer
    • max_length, integer
    • characters, string
  • limits, object, required
    • per_account, integer — the most names one account holds
    • claims_per_day, integer
  • idle_days, integer, required — a name with nothing attached for this long is released (you are told before)
  • idle_notice_days, integer, required — how long before the release you are told
  • quarantine_days, integer, required — after a release nobody may claim the name for this long

Refusals ({"error": {"code", "message"}}; see errors):

StatusCodesWhen
401unauthorizedunauthorized
403insufficient-scope, terms-acceptance-requiredinsufficient-scope (an API key without the scope x-weird-scope names: use a key that holds it); terms-acceptance-required (the current terms of service or privacy notice are not accepted yet: required lists them; read them with GET /legal/documents and accept with POST /auth/legal/accept)
429rate-limitedrate-limited

Example

curl -X GET 'https://api.weird.ro/names/bases' \
  -H "Authorization: Bearer $WEIRD_API_KEY"

With the CLI (weird names bases, weird names claim, weird names publish):

$ weird names bases$ weird names claim <name>$ weird names publish <name> [file|folder]

MCP: weird_names_bases.

Whether a free name can be claimed#

GET /names/check · operation checkFreeName

available true when label under base (absent: the first open base) can be claimed now; else reason: base-closed, name-reserved, name-forbidden, name-taken, name-yours, name-quarantined or base-full (the base has no room for new names right now: try another base or later). A label that is not one (other characters than a-z, digits and inner hyphens, out of the lengths) is refused 400. Cost (credit charges in GET /credits/charges): the per_request credit charge of names.reads is charged for each call that answers successfully, after it has answered (a refused or failed call is not charged); the calls are added up and taken from the credits every hour.

Credentialan API key holding the permission below, or a session (x-weird-auth: key)
Permissionnames:read
Chargedyes — see the charges below
Retry safetya repeat makes a second one and is charged again: each successful call is charged as one request: a repeat after a lost answer is a second request and is charged again

Credit charges (each a contract of the list of credit charges; the credit charge in force is filled in from the API):

ContractRateWhenTimesCredit charge in force
names.readsper_requestafter a successful answer—see the credit charges

Parameters

NameInTypeRequiredDescription
labelquerystringyesthe label, such as ana
basequerystringnoan open base of GET /names/bases

Answer 200 (FreeNameCheck): the result

  • name, string, required
  • available, boolean, required
  • reason, string or null (one of base-closed, name-reserved, name-forbidden, name-taken, name-yours, name-quarantined, base-full, null)

Refusals ({"error": {"code", "message"}}; see errors):

StatusCodesWhen
400invalid-paramsinvalid-params (field label or base)
401unauthorizedunauthorized
403insufficient-scope, profile-incomplete, terms-acceptance-requiredinsufficient-scope (an API key without the scope x-weird-scope names: use a key that holds it) or profile-incomplete (complete the profile first: GET /auth/profile says what is missing); terms-acceptance-required (the current terms of service or privacy notice are not accepted yet: required lists them; read them with GET /legal/documents and accept with POST /auth/legal/accept)
429rate-limitedrate-limited

Example

curl -X GET 'https://api.weird.ro/names/check?label=<label>' \
  -H "Authorization: Bearer $WEIRD_API_KEY"

With the CLI (weird names check, weird names publish):

$ weird names check <name>$ weird names publish <name> [file|folder]

MCP: weird_names_check.

One of the caller's free names#

GET /names/{id} · operation getFreeName

The name with its state, when it was claimed and first served, the attached gateway domain while it is serving, and, while nothing is attached, since when and when it will be released. Cost (credit charges in GET /credits/charges): the per_request credit charge of names.reads is charged for each call that answers successfully, after it has answered (a refused or failed call is not charged); the calls are added up and taken from the credits every hour.

Credentialan API key holding the permission below, or a session (x-weird-auth: key)
Permissionnames:read
Chargedyes — see the charges below
Retry safetya repeat makes a second one and is charged again: each successful call is charged as one request: a repeat after a lost answer is a second request and is charged again

Credit charges (each a contract of the list of credit charges; the credit charge in force is filled in from the API):

ContractRateWhenTimesCredit charge in force
names.readsper_requestafter a successful answer—see the credit charges

Parameters

NameInTypeRequiredDescription
idpathstringyes

Answer 200 (FreeName): the result

  • released_at, string or null
  • idle_since, string or null — since when nothing is attached
  • first_served_at, string or null
  • last_attached_at, string or null
  • release_after, string or null — when the name is released if still nothing is attached
  • label, string, required
  • id, string, required
  • base, string, required
  • name, string, required — the full name, such as ana.e-weird.ro
  • domain_id, string or null — the attached gateway domain (GET /ipfs/domains/{id})
  • state, string, required — claimed: nothing attached yet (its idle clock runs); serving: a site is attached (POST /ipfs/domains); suspended: held under an abuse review; released (one of claimed, serving, suspended, released)
  • release_reason, string or null (one of customer, idle, account-closed, abuse, platform, null)
  • claimed_at, string, required

Refusals ({"error": {"code", "message"}}; see errors):

StatusCodesWhen
401unauthorizedunauthorized
403insufficient-scope, profile-incomplete, terms-acceptance-requiredinsufficient-scope (an API key without the scope x-weird-scope names: use a key that holds it) or profile-incomplete (complete the profile first: GET /auth/profile says what is missing); terms-acceptance-required (the current terms of service or privacy notice are not accepted yet: required lists them; read them with GET /legal/documents and accept with POST /auth/legal/accept)
404not-foundnot-found (not the caller's, or released)
429rate-limitedrate-limited

Example

curl -X GET 'https://api.weird.ro/names/{id}' \
  -H "Authorization: Bearer $WEIRD_API_KEY"

With the CLI (weird names show):

$ weird names show <name|id>

MCP: weird_names_get.

Release a free name#

DELETE /names/{id} · operation releaseFreeName

The site on the name stops being served (its gateway domain is retired; the content stays stored), every record of the name is removed and the name is released; nobody may claim it for quarantine_days. Not charged. A name held under an abuse review is refused 409 name-suspended. Cannot be undone. To keep a site, attach the same content to a hostname of your own domain first (POST /ipfs/domains), then release the name.

Credentialan API key holding the permission below, or a session (x-weird-auth: key)
Permissionnames:write
Strong authenticationa session needs an authenticator enrolled and a recent proof of it (a step-up in the last 15 minutes, or totp_code / backup_code in the body); an API key is not asked — see authentication
Chargedno

Parameters

NameInTypeRequiredDescription
idpathstringyes

Answer 200 (FreeNameReleased): the result

  • name, object, required
    • released_at, string or null
    • idle_since, string or null — since when nothing is attached
    • first_served_at, string or null
    • last_attached_at, string or null
    • release_after, string or null — when the name is released if still nothing is attached
    • label, string, required
    • id, string, required
    • base, string, required
    • name, string, required — the full name, such as ana.e-weird.ro
    • domain_id, string or null — the attached gateway domain (GET /ipfs/domains/{id})
    • state, string, required — claimed: nothing attached yet (its idle clock runs); serving: a site is attached (POST /ipfs/domains); suspended: held under an abuse review; released (one of claimed, serving, suspended, released)
    • release_reason, string or null (one of customer, idle, account-closed, abuse, platform, null)
    • claimed_at, string, required

Refusals ({"error": {"code", "message"}}; see errors):

StatusCodesWhen
401unauthorizedunauthorized
403account-suspended, enrolment-required, insufficient-scope, profile-incomplete, step-up-required, terms-acceptance-requiredinsufficient-scope (an API key without the scope x-weird-scope names: use a key that holds it) or profile-incomplete (complete the profile first: GET /auth/profile says what is missing); enrolment-required (a session caller whose account has no authenticator: enrol one first) or step-up-required (a session without a recent step-up: POST /auth/step-up, then retry); account-suspended (the account is restricted while a report about it is reviewed: reading, support tickets and the copy of its data keep working; contact is the address to write to, GET /auth/account/restrictions says more); terms-acceptance-required (the current terms of service or privacy notice are not accepted yet: required lists them; read them with GET /legal/documents and accept with POST /auth/legal/accept)
404not-foundnot-found (not the caller's, or released)
409name-suspendedname-suspended
422invalid-totpinvalid-totp (a wrong or replayed authenticator code)
429rate-limitedrate-limited
502upstream-unavailableupstream-unavailable (try again later)
503unavailableunavailable (try again later)

Example

curl -X DELETE 'https://api.weird.ro/names/{id}' \
  -H "Authorization: Bearer $WEIRD_API_KEY"

With the CLI (weird names release):

$ weird names release <name|id>

MCP: weird_names_release.

This page is generated from the API's public document; it changes when the document does.