Menu
names
The names operations.
| Operation | Method and path |
|---|---|
| The caller's free names | GET /names |
| Claim a free name | POST /names |
| The bases free names are claimed under, and their rules | GET /names/bases |
| Whether a free name can be claimed | GET /names/check |
| One of the caller's free names | GET /names/{id} |
| Release a free name | DELETE /names/{id} |
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.
| Credential | an API key holding the permission below, or a session (x-weird-auth: key) |
| Permission | names:read |
| Charged | yes — see the charges below |
| Retry safety | a 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):
| Contract | Rate | When | Times | Credit charge in force |
|---|---|---|---|---|
names.reads | per_request | after a successful answer | — | see the credit charges |
Answer 200 (FreeNameList): the result
names, array of objects, requiredreleased_at, string or nullidle_since, string or null — since when nothing is attachedfirst_served_at, string or nulllast_attached_at, string or nullrelease_after, string or null — when the name is released if still nothing is attachedlabel, string, requiredid, string, requiredbase, string, requiredname, string, required — the full name, such asana.e-weird.rodomain_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 ofclaimed,serving,suspended,released)release_reason, string or null (one ofcustomer,idle,account-closed,abuse,platform,null)claimed_at, string, required
Refusals ({"error": {"code", "message"}}; see errors):
| Status | Codes | When |
|---|---|---|
| 401 | unauthorized | unauthorized |
| 403 | insufficient-scope, profile-incomplete, terms-acceptance-required | insufficient-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) |
| 429 | rate-limited | rate-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).
| Credential | an API key holding the permission below, or a session (x-weird-auth: key) |
| Permission | names:write |
| Strong authentication | a 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 |
| Charged | yes — see the charges below |
| Retry safety | send 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):
| Contract | Rate | When | Times | Credit charge in force |
|---|---|---|---|---|
names.free-claim | per_request | before it runs | — | see the credit charges |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | no | 1..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 hyphensbase, string — an open base of GET /names/bases; absent: the first open one
Answer 201 (FreeName): the result
released_at, string or nullidle_since, string or null — since when nothing is attachedfirst_served_at, string or nulllast_attached_at, string or nullrelease_after, string or null — when the name is released if still nothing is attachedlabel, string, requiredid, string, requiredbase, string, requiredname, string, required — the full name, such asana.e-weird.rodomain_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 ofclaimed,serving,suspended,released)release_reason, string or null (one ofcustomer,idle,account-closed,abuse,platform,null)claimed_at, string, required
Refusals ({"error": {"code", "message"}}; see errors):
| Status | Codes | When |
|---|---|---|
| 400 | invalid-params | invalid-params (field label or base); invalid-params (field Idempotency-Key: a malformed key, or one used for a different request) |
| 401 | unauthorized | unauthorized |
| 402 | insufficient-funds | insufficient-funds (the credits do not cover it: top up with POST /credits/topup, then retry) |
| 403 | account-suspended, account-too-new, enrolment-required, insufficient-scope, profile-incomplete, step-up-required, terms-acceptance-required | insufficient-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) |
| 409 | base-closed, base-full, claim-limit, conflict, name-forbidden, name-quarantined, name-reserved, name-taken | base-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) |
| 422 | invalid-totp | invalid-totp (a wrong or replayed authenticator code) |
| 429 | claim-rate-limited, rate-limited | claim-rate-limited or rate-limited |
| 502 | upstream-unavailable | upstream-unavailable (try again later) |
| 503 | charges-not-published, free-names-not-ready, ledger-unavailable, unavailable | free-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.
| Credential | an API key holding the permission below, or a session (x-weird-auth: key) |
| Permission | names:read |
| Charged | yes — see the charges below |
| Retry safety | a 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):
| Contract | Rate | When | Times | Credit charge in force |
|---|---|---|---|---|
names.reads | per_request | after a successful answer | — | see the credit charges |
Answer 200 (FreeNameBases): the result
bases, array of objects, requireddomain, string, required — a base such ase-weird.rostate, string, required —opentakes new names;closedkeeps serving the names it has and takes none (one ofopen,closed)
rules, object, requiredmin_length, integermax_length, integercharacters, string
limits, object, requiredper_account, integer — the most names one account holdsclaims_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 toldquarantine_days, integer, required — after a release nobody may claim the name for this long
Refusals ({"error": {"code", "message"}}; see errors):
| Status | Codes | When |
|---|---|---|
| 401 | unauthorized | unauthorized |
| 403 | insufficient-scope, terms-acceptance-required | insufficient-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) |
| 429 | rate-limited | rate-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.
| Credential | an API key holding the permission below, or a session (x-weird-auth: key) |
| Permission | names:read |
| Charged | yes — see the charges below |
| Retry safety | a 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):
| Contract | Rate | When | Times | Credit charge in force |
|---|---|---|---|---|
names.reads | per_request | after a successful answer | — | see the credit charges |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
label | query | string | yes | the label, such as ana |
base | query | string | no | an open base of GET /names/bases |
Answer 200 (FreeNameCheck): the result
name, string, requiredavailable, boolean, requiredreason, string or null (one ofbase-closed,name-reserved,name-forbidden,name-taken,name-yours,name-quarantined,base-full,null)
Refusals ({"error": {"code", "message"}}; see errors):
| Status | Codes | When |
|---|---|---|
| 400 | invalid-params | invalid-params (field label or base) |
| 401 | unauthorized | unauthorized |
| 403 | insufficient-scope, profile-incomplete, terms-acceptance-required | insufficient-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) |
| 429 | rate-limited | rate-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.
| Credential | an API key holding the permission below, or a session (x-weird-auth: key) |
| Permission | names:read |
| Charged | yes — see the charges below |
| Retry safety | a 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):
| Contract | Rate | When | Times | Credit charge in force |
|---|---|---|---|---|
names.reads | per_request | after a successful answer | — | see the credit charges |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes |
Answer 200 (FreeName): the result
released_at, string or nullidle_since, string or null — since when nothing is attachedfirst_served_at, string or nulllast_attached_at, string or nullrelease_after, string or null — when the name is released if still nothing is attachedlabel, string, requiredid, string, requiredbase, string, requiredname, string, required — the full name, such asana.e-weird.rodomain_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 ofclaimed,serving,suspended,released)release_reason, string or null (one ofcustomer,idle,account-closed,abuse,platform,null)claimed_at, string, required
Refusals ({"error": {"code", "message"}}; see errors):
| Status | Codes | When |
|---|---|---|
| 401 | unauthorized | unauthorized |
| 403 | insufficient-scope, profile-incomplete, terms-acceptance-required | insufficient-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) |
| 404 | not-found | not-found (not the caller's, or released) |
| 429 | rate-limited | rate-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.
| Credential | an API key holding the permission below, or a session (x-weird-auth: key) |
| Permission | names:write |
| Strong authentication | a 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 |
| Charged | no |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes |
Answer 200 (FreeNameReleased): the result
name, object, requiredreleased_at, string or nullidle_since, string or null — since when nothing is attachedfirst_served_at, string or nulllast_attached_at, string or nullrelease_after, string or null — when the name is released if still nothing is attachedlabel, string, requiredid, string, requiredbase, string, requiredname, string, required — the full name, such asana.e-weird.rodomain_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 ofclaimed,serving,suspended,released)release_reason, string or null (one ofcustomer,idle,account-closed,abuse,platform,null)claimed_at, string, required
Refusals ({"error": {"code", "message"}}; see errors):
| Status | Codes | When |
|---|---|---|
| 401 | unauthorized | unauthorized |
| 403 | account-suspended, enrolment-required, insufficient-scope, profile-incomplete, step-up-required, terms-acceptance-required | insufficient-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) |
| 404 | not-found | not-found (not the caller's, or released) |
| 409 | name-suspended | name-suspended |
| 422 | invalid-totp | invalid-totp (a wrong or replayed authenticator code) |
| 429 | rate-limited | rate-limited |
| 502 | upstream-unavailable | upstream-unavailable (try again later) |
| 503 | unavailable | unavailable (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.