Skip to main content
POST
/
v1
/
domains
Create domain
curl --request POST \
  --url https://api.shingleai.com/v1/domains \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "domain": "<string>",
  "source": "verified",
  "status": "pending",
  "zoneId": null,
  "data": null,
  "verificationAttempts": 0,
  "verificationStatus": "pending",
  "verifiedAt": null,
  "verificationToken": null,
  "verificationExpiresAt": null,
  "resendApiKey": null,
  "resendEmailEnabled": false,
  "resendFromEmail": null,
  "resendDomainId": null,
  "resendDomainRecords": null
}
'
{
  "data": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z",
    "deletedAt": "2023-11-07T05:31:56Z",
    "organizationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "domain": "<string>",
    "source": "<string>",
    "status": "<string>",
    "zoneId": "<string>",
    "createdBy": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "data": {},
    "verificationAttempts": 123,
    "verificationStatus": "<string>",
    "verifiedAt": "2023-11-07T05:31:56Z",
    "verificationToken": "<string>",
    "verificationExpiresAt": "2023-11-07T05:31:56Z",
    "resendApiKey": "<string>",
    "resendEmailEnabled": true,
    "resendFromEmail": "<string>",
    "resendDomainId": "<string>",
    "resendDomainRecords": [
      "<unknown>"
    ]
  },
  "meta": {
    "pagination": {
      "limit": 123,
      "offset": 123,
      "hasMore": true,
      "total": 123
    }
  }
}

Authorizations

Authorization
string
header
required

API key authentication via Bearer token

Body

application/json
domain
string
required
source
enum<string>
default:verified
Available options:
registered,
verified
status
enum<string>
default:pending
Available options:
active,
expiring,
expired,
pending
zoneId
string | null
data
object
verificationAttempts
integer
default:0
Required range: x >= 0
verificationStatus
enum<string>
default:pending
Available options:
pending,
verified,
failed
verifiedAt
string<date-time> | null
verificationToken
string | null
verificationExpiresAt
string<date-time> | null
resendApiKey
string | null
resendEmailEnabled
boolean
default:false
resendFromEmail
string | null
resendDomainId
string | null
resendDomainRecords
object[] | null
  • Option 1
  • Option 2

Response

Domain created successfully

data
object
required
meta
object