GET /v3/downloads/{scanId}/report.pdf

This method allows you to get access to the report PDF which includes your scan results with complete details including the similarity score, sources found and matched text.

Request

Request Example

curl -XGET -H 'Authorization: Bearer YOUR-LOGIN-TOKEN' 'https://api.copyleaks.com/v3/downloads/{scanId}/report.pdf'
GET https://api.copyleaks.com/v3/downloads/{scanId}/report.pdf

Authorization: Bearer YOUR-LOGIN-TOKEN;
import requests

headers = {
    'Authorization': 'Bearer YOUR-LOGIN-TOKEN',
}

response = requests.get('https://api.copyleaks.com/v3/downloads/%7BscanId%7D/report.pdf', headers=headers)

using (var httpClient = new HttpClient())
{
    using (var request = new HttpRequestMessage(new HttpMethod("GET"), "https://api.copyleaks.com/v3/downloads/{scanId}/report.pdf"))
    {
        request.Headers.TryAddWithoutValidation("Authorization", "Bearer YOUR-LOGIN-TOKEN"); 

        var response = await httpClient.SendAsync(request);
    }
}
var request = require('request');

var headers = {
    'Authorization': 'Bearer YOUR-LOGIN-TOKEN'
};

var options = {
    url: 'https://api.copyleaks.com/v3/downloads/{scanId}/report.pdf',
    headers: headers
};

function callback(error, response, body) {
    if (!error && response.statusCode == 200) {
        console.log(body);
    }
}

request(options, callback);
<?php
include('vendor/rmccue/requests/library/Requests.php');
Requests::register_autoloader();
$headers = array(
    'Authorization' => 'Bearer YOUR-LOGIN-TOKEN'
);
$response = Requests::get('https://api.copyleaks.com/v3/downloads/{scanId}/report.pdf', $headers);

Responses

Status Code Description Example
200

The command was executed.

A PDF file attached to response body.

401

Authorization has been denied for this request