Open a claim on a domain
const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({domainId: '<string>'})
};
fetch('https://ownsi.dev/api/claims/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request POST \
--url https://ownsi.dev/api/claims/ \
--header 'Content-Type: application/json' \
--data '
{
"domainId": "<string>"
}
'{
"id": "<string>",
"domainId": "<string>",
"domain": "<string>",
"unicodeDomain": "<string>",
"state": "pending",
"token": "<string>",
"records": [
{
"host": "<string>",
"name": "<string>",
"type": "TXT",
"value": "<string>"
}
],
"verificationId": "<string>",
"expiresAt": "<string>",
"endedAt": "<string>",
"createdAt": "<string>",
"coexistence": {
"type": "unnamed"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"docsUrl": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"docsUrl": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"docsUrl": "<string>"
}
}Open a claim on a domain
Mints the token, opens the seven-day window and starts the verification that runs against it. The record to create comes back with the claim; the process comes back as verificationId.
POST
/
api
/
claims
/
Open a claim on a domain
const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({domainId: '<string>'})
};
fetch('https://ownsi.dev/api/claims/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request POST \
--url https://ownsi.dev/api/claims/ \
--header 'Content-Type: application/json' \
--data '
{
"domainId": "<string>"
}
'{
"id": "<string>",
"domainId": "<string>",
"domain": "<string>",
"unicodeDomain": "<string>",
"state": "pending",
"token": "<string>",
"records": [
{
"host": "<string>",
"name": "<string>",
"type": "TXT",
"value": "<string>"
}
],
"verificationId": "<string>",
"expiresAt": "<string>",
"endedAt": "<string>",
"createdAt": "<string>",
"coexistence": {
"type": "unnamed"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"docsUrl": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"docsUrl": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"docsUrl": "<string>"
}
}Body
application/jsonapplication/x-www-form-urlencodedmultipart/form-data
Minimum string length:
1Response
Response for status 201
Available options:
pending, proved, expired, canceled Show child attributes
Show child attributes
- Option 1
- Option 2
Show child attributes
Show child attributes