Unauthorized 401 on calling scan URL CopyLeaks API

140 Views Asked by At

I am trying to call an api of copyleaks using Postman https://api.copyleaks.com/v3/scans/submit/url/my-special-id but I am getting this error

{
    "type": "https://tools.ietf.org/html/rfc7235#section-3.1",
    "title": "Unauthorized",
    "status": 401,
    "traceId": "00-65af4c471c39e69a5ee1a561f3a45e3b-462c61c6f42e1771-00"
}

I have provided bearer token in authorization which is get from this api of copyleaks https://id.copyleaks.com/v3/account/login/api which is working fine.

The body I am passing in for https://api.copyleaks.com/v3/scans/submit/url/my-special-id is

{
    "url" : "https://edition.cnn.com/",
    "properties" : {
      "sandbox: : true,
      "webhooks" : {
        "status" : "https://enqfhwydhpa6b.x.pipedream.net/%7BSTATUS%7D/my-special-id"
       }
     }
}

The refrence I took from the video given on Copyleaks offical site this video, the webhook url I take from requestbin to test the result if completed . .plz help!!!!!!!!!!!

0

There are 0 best solutions below