Put a domain on this account
const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({domain: '<string>'})
};
fetch('https://ownsi.dev/api/domains/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request POST \
--url https://ownsi.dev/api/domains/ \
--header 'Content-Type: application/json' \
--data '
{
"domain": "<string>"
}
'{
"id": "<string>",
"name": "<string>",
"unicodeName": "<string>",
"archived": true,
"createdAt": "<string>"
}{
"error": {
"code": "<string>",
"message": "<string>",
"docsUrl": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"docsUrl": "<string>"
}
}Put a domain on this account
Idempotent on the name: asking twice returns the same domain. It carries no status of its own — open a claim to start proving it.
POST
/
api
/
domains
/
Put a domain on this account
const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({domain: '<string>'})
};
fetch('https://ownsi.dev/api/domains/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request POST \
--url https://ownsi.dev/api/domains/ \
--header 'Content-Type: application/json' \
--data '
{
"domain": "<string>"
}
'{
"id": "<string>",
"name": "<string>",
"unicodeName": "<string>",
"archived": true,
"createdAt": "<string>"
}{
"error": {
"code": "<string>",
"message": "<string>",
"docsUrl": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"docsUrl": "<string>"
}
}