Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

I’m using the following code (with my respective API key and domain) to make a request to get all domain records. The problem is that I don’t get back my domain records, instead, I get the Digital Ocean domain records. I have made other requests using my domain and API key and got back correct information. What part of this request is causing me to not get back my domain records?
This is my request:
curl -X GET -H 'Content-Type: application/json' -H 'Authorization: Bearer MY_API_KEY' "https://api.digitalocean.com/v2/domains/MYDOMAIN.com/records"
This is my output:
{
"domain_records": [
{
"id": 9663214,
"type": "NS",
"name": "@",
"data": "ns1.digitalocean.com",
"priority": null,
"port": null,
"weight": null
},
{
"id": 9663215,
"type": "NS",
"name": "@",
"data": "ns2.digitalocean.com",
"priority": null,
"port": null,
"weight": null
},
{
"id": 9663216,
"type": "NS",
"name": "@",
"data": "ns3.digitalocean.com",
"priority": null,
"port": null,
"weight": null
},
{
"id": 9663217,
"type": "A",
"name": "@",
"data": "159.203.105.142",
"priority": null,
"port": null,
"weight": null
},
{
"id": 9687584,
"type": "MX",
"name": "@",
"data": "@",
"priority": 5,
"port": null,
"weight": null
}
],
"links": {
},
"meta": {
"total": 5
}
}
Mario Hennenberger
2b943a6c5830489f9a3a6e3ade857e
8c5b08bc277a4e1bbfbcdd305aa232
Kailey Ketchum
9c1989c1c80144c7a9977905ce64c9
a6309a057c3f4cb38fb2e7feb67236
a6309a057c3f4cb38fb2e7feb67236
9c1989c1c80144c7a9977905ce64c9
CometAPI001
Rafiq Mohammed shah
05f65dd4216b456c9c89745746f80e