Get Company Credit Report Download Url
A short-lived URL to download the credit report your organisation bought, as a PDF.
company_id is the company's company_uuid OR its Companies-House company_number, the same pair the rest of the company surface accepts. Without ?version= this resolves the current version, the same one GET โฆ/credit-report returns. That is not a guarantee across the two calls โ if a purchase completes between them the current version moves, and the figures you read and the file you download describe different versions. Pass ?version= with the report.id or versions[].version_id you just read whenever they must match.
Fetch download_url with a plain GET and no Authorization header โ it authenticates itself and stops working at expires_at, seconds away rather than a session. Mint a fresh one per download rather than storing it. The response carries no bucket and no object key: the URL is what is published, never a location.
The URL is a bearer credential and the data is not yours to redistribute. Anyone holding the link can fetch the file until it expires, and the report is supplied by Creditsafe and licensed to your organisation for its own use โ it may not be redistributed to third parties without prior written consent. So do not proxy it, republish it, or pass it to your own customers. Every mint is logged against your API client.
Looking for the figures rather than the file? GET /v1/companies/{company_id}/credit-report is the machine-readable contract. This is the human-readable artefact; there is no raw provider payload on this API, deliberately.
Requires the credit_reports:read scope, the same one the read uses โ no purchase is made and nothing is spent. Errors: 403 missing that scope ยท 404 no such company, no report bought for it, a version your organisation does not own for this company, or a version we hold no PDF for ยท 422 an asset_type outside the list above, or a malformed version.
curl -X GET "https://api.handshaik.com/v1/companies/{company_id}/credit-report/download-url?asset_type=provider_pdf" \
-H "Authorization: Bearer $HANDSHAIK_PUBLIC_API_KEY"Authorization
AuthorizationstringheaderrequiredOAuth2 client_credentials (M2M). Request a token with the
audienceset tohttps://api.handshaik.com.Handshaik's own first-party apps, such as the Chrome extension, instead sign a Handshaik user in with the authorization code flow and PKCE, with the same
audience. Such a token acts as that user, within their organisation. Partner integrations use client_credentials.
Parameters
company_idstringpathrequiredThe company's
id(its UUID) or its Companies-Housecompany_numberโ either is acceptedasset_typeenum<string>queryrequiredWhich file to mint a URL for.
provider_pdfis the credit report as Creditsafe publishes itOne of:provider_pdfversionstring<uuid> | nullqueryDownload this specific report version instead of the current one โ a
versions[].version_idfromGET /v1/companies/{company_id}/credit-report
Response
Successful Response
asset_typeenum<string>requiredWhich file this URL points at โ the
asset_typeyou asked forOne of:provider_pdfdownload_urlstringrequiredShort-lived URL to fetch the file from. Send it as a plain GET with no Authorization header โ it authenticates itself and expires quickly
expires_atstring<date-time>requiredWhen this URL stops working, in UTC. Mint a new one rather than reusing this past it
{
"asset_type": "provider_pdf",
"download_url": "string",
"expires_at": "2026-01-15T09:30:00Z"
}