Get Domains
GET
/domains
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://22.do/api/v2/domains'
Responses
🟢200Success
application/json
Body
code
integerÂ
required
status
booleanÂ
required
msg
stringÂ
required
data
array [object {3}]Â
required
domain
stringÂ
required
type
stringÂ
required
mx
booleanÂ
required
Example
{
"code": 200,
"status": true,
"msg": "success",
"data": [
{
"domain": "example.com",
"type": "premium"
},
{
"domain": "example1.com",
"type": "premium"
},
{
"domain": "example2.com",
"type": "premium"
},
{
"domain": "example3.com",
"type": "private",
"mx": true
},
{
"domain": "example4.com",
"type": "private",
"mx": true
}
]
}