cant use api to add a new dns record

ive been trying to create a dns record using the api but its not currently working

the data im sending:

(
        'type' => 'A',
        'name' => 'test.xytriza.com',
        'content' => 'serverip',
        'proxied' => true,
        'ttl' => 600,
)

headers:
(
        'X-Auth-Email: cryfxreal@gmail.com',
        'X-Auth-Key: my global api key',
        'Content-Type: application/json'
)


and it still returns auth error, yet ive tried with curl, php curl, and other stuff. cant seem to get it to work
Was this page helpful?