Datlab Sankce jsou nově Datlab Rizika · stejný účet, širší prověření
přihlásit se

REST API Documentation - sankce.datlab.eu

Content

  1. About the Tool
  2. Quick Start
  3. Screening Types
  4. Business Logic
    1. Risk Categories and Severity
    2. Datasets
  5. Technical Access to Data
  6. Authorization
    1. OAuth 2.0
  7. Error Messages
  8. Unlocking Subjects
    1. Unlocking Methods
    2. Screening Requirements
    3. Important Notes
  9. Outputs of Screening
  10. Data Limitations
  11. Recommended Display Logic
  12. Watchdog Webhook
    1. Testing the webhook format
  13. My account
  14. Contact
  15. Final Additions
  16. Examples
    1. Free Entities (free-to-screen IDs)
    2. Czech test subjects by flag
    3. Python3 example - Czech screening
    4. Python3 example - Slovak screening
    5. Python3 example - Global screening
    6. Python3 example - Person screening
  17. Swagger UI - documentation of endpoints

1. About the Tool

The sankce.datlab.eu tool is designed to identify risks associated with international sanctions and restrictions. By conducting a comprehensive screening of the asset structures of subjects, businesses can uncover potential risks before making a payment or completing an order.

To facilitate this process, we have developed REST API for our clients. This API allows:


2. Quick Start

This step-by-step guide explains how to quickly screen a company or individual using the Czech screening. By providing an IČO (identification number), you can retrieve risk information and download a certificate or report based on the screening outcome.


Environment Setup and API Credentials

Before making requests, ensure you have the following:

💡 You can test the API with identifiers that do not consume credits or count against your subscription limit.


Make Your First API Request

To screen a subject, send a GET request to the flags endpoint. The request must include an authentication token in the Authorization header.


        import requests

        domain = "https://sankce.datlab.eu"
        token = "your_token"  # Replace with your actual API token
        headers = {"Authorization": "Token " + token}

        ico = "..."  # Replace with the subject’s IČO
        response = requests.get(f"{domain}/rest/v3/flags/cz/{ico}", headers=headers)  # Sending the request with headers containing the API token
        print(response.json())  # Display the API response containing risk flags
        

Download Certificate or Report

If the API response identifies a risk with severity other than "others", the subject is flagged.

Based on the risk evaluation, download either a certificate or a report.

In v3, /rest/v3/pdf/cz/{ico} does both in one request - it returns the certificate or the report, whichever the subject gets, and the X-Document-Type response header says which.


        flagged = False
        for flag in response.json():
            if flag.get("severity") not in ["others"]:
                flagged = True
                break

        # download report or certificate
        if flagged:
            download = requests.get(f'{domain}/rest/v3/report/cz/{ico}', headers=headers)
        else:
            download = requests.get(f'{domain}/rest/v3/certificate/cz/{ico}', headers=headers)

        # write the downloaded content to a PDF file
        f = open(f"{ico}.pdf", "wb")
        f.write(download.content)
        f.close()
        

Next Steps


3. Screening Types

This API provides 4 types of screening, each designed to check a specific type of subject:

  1. Czech screening - Checks subjects registered in the Czech Republic based on their IČO (Identification Number assigned by the state).
  2. Slovak screening - Checks subjects registered in the Slovak Republic based on their IČO (Identification Number assigned by the state).
  3. Global screening - Checks subjects registered in global databases.
  4. Person screening - Checks individual persons.

Global screening also supports the Watchdog functionality endpoint. It automatically monitors status changes for a subject over one year, with an option of auto-renewal.

Each screening type includes at least three endpoints:

  1. Flags - Returns a list of screening flags associated with the searched subject.
  2. Report - Generates a PDF report for a subject that has at least one flag with a severity level of low, medium or high.
  3. Certificate - Generates a PDF certificate for a subject that either has no flags or only has flags with a severity level of others.

For Global Screening, there is an additional endpoint available to retrieve the correct identifier.


Note: Until mid-2025, the PDF output for flagged subjects was referred to as a /confirmation/ endpoint. This original endpoint remains valid and backward-compatible. However, we have introduced a more descriptive naming convention: the output is now referred to as a report and is available under the /report/ endpoint. We recommend using the updated /report/ endpoints in new implementations.


4. Business Logic

The service evaluates a given subject and provides information about the risks detected for it - legal and reputational, economic, public sector and AML risks, from sanctions and Russian influence to insolvency or politically exposed persons.
The provided data mirrors the content of the sankce.datlab.eu tool and follows the same structure:

4.1. Risk Categories and Severity

Every risk category the API can return is described in our risk catalogue. The category codes are listed with every risk, so you can look up any category you receive.

The severity shown in the catalogue is the default one. We can set a different severity for particular categories for your institution on request - the API, the PDF outputs and the Watchdog then all use the severity set for your institution. Always read the severity from the severity field of the response rather than deriving it from the category.

Some Czech categories (regional_politician, local_politician, missing_profile_tender, missing_contracts, missing_invoices, missing_bulletin, linked_suppliers, conflict_of_interest_official, single_buyer_dependency, dependent_supplier) describe the relationship between a supplier and a specific contracting authority, so they are only returned for the contracting authorities registered to your account.

Example of a flags response

A Czech screening (/rest/v3/flags/cz/{ico}?lang=en) of a subject with two risks:


[
    {
        "organization_id": "27426696",
        "description": "A risk of control by a person from the Russian Federation was found. Contracting authorities of above-threshold public contracts and grant providers are advised to ask the company to document its controlling persons and assess the situation in line with the Ministry of Regional Development methodology. No risk arises for below-threshold contracts.",
        "additional_description": "",
        "dispute": false,
        "reason": null,
        "severity": "medium",
        "category": "russian_influence_company",
        "recommendation": "A risk of control from the Russian Federation was found. Contracting authorities of above-threshold public contracts and grant providers are advised to ask the company to document its controlling persons and assess the situation in line with the Ministry of Regional Development methodology. No risk arises for below-threshold contracts.",
        "datasets": [],
        "documentation_url": "https://sankce.datlab.eu/katalog/právní-a-reputační-rizika/ruský-vliv"
    },
    {
        "organization_id": "27426696",
        "description": "Risk of connection to a person on a sanctions list (including EU, USA, UA, etc.) found. This may mean a prohibition on providing financial resources to the company.",
        "additional_description": "The above findings are based on the available information about the subject\nACME s.r.o. (Hlavní 1, Praha 1).",
        "dispute": false,
        "reason": null,
        "severity": "high",
        "category": "sanctioned_company",
        "recommendation": null,
        "datasets": ["eu_fsf"],
        "documentation_url": "https://sankce.datlab.eu/katalog/právní-a-reputační-rizika/sankcionovaná-společnost"
    }
]
        

A subject with no risks returns an empty list []. The responses of the other screenings differ in the subject identifiers; examples of every endpoint are in Swagger UI.

4.2. Datasets

Many risks come from a dataset - a sanctions list, a register of politically exposed persons and similar. Which datasets apply to your institution is set on our side: by default every dataset is used, and on request we can limit your institution to selected datasets.

The filtering by datasets is done by us, not in your integration. The API, the PDF outputs and the Watchdog return only the risks found in the datasets enabled for your institution, and the datasets field of a flag lists only those datasets. Do not filter the flags by datasets on your side - treat every returned flag as applicable to you and use datasets only to show or record where a risk comes from. If you need a different set of datasets, contact us and we change the setting for your institution.

The datasets field is returned by the v3 endpoints. The filtering applies to v2 as well, v2 just does not list the datasets. Flags that do not come from a dataset (e.g. an extinct subject) have an empty list.


5. Technical Access to Data

The API provides access through a REST API with JSON responses. For data integration logic, we recommend regular screening of subjects (e.g., running checks every night). There is no limit on the number of API calls.
The API is optimized for real-time operations at the subject level and is already in use for such purposes. The screening API responds in real time within a few hundred milliseconds. Generating and downloading certificates/reports takes a few seconds. For global searches and screenings, response times can range up to several tens of seconds. In extreme cases, such as very large ownership structures, processing may take several minutes.


6. Authorization

To authenticate a request, include a valid token in the Authorization header of your HTTP request:

            Authorization: Token {token}
        

If needed, we can generate different tokens for development, testing, staging, and production systems.

Note:
Before using the examples in Swagger UI, make sure to authorize yourself using the green ‘Authorize’ button.

6.1. OAuth 2.0 v3

Instead of the static token, REST v3 can be called with a short-lived OAuth 2.0 access token obtained with the client credentials grant. This suits integrations whose security policy does not allow long-lived API keys. The static token keeps working on all API versions.

  1. Ask us for an OAuth client. We switch OAuth on for your institution and create a client bound to one of your user accounts. You receive a client_id and a client_secret. The secret is shown only once when the client is created and we store only its hash, so keep it safe. If it gets lost or leaks, we delete the client and create a new one.
  2. Get an access token by sending the credentials to the token endpoint:
    POST /rest/v3/oauth/token
    Content-Type: application/x-www-form-urlencoded
    
    grant_type=client_credentials&client_id={client_id}&client_secret={client_secret}
    The credentials can also be sent in an HTTP Basic Authorization header. The response contains the token and its lifetime in seconds:
    {"access_token": "...", "expires_in": 3600, "token_type": "Bearer", "scope": "api"}
  3. Call REST v3 with the token in the Authorization header:
    Authorization: Bearer {access_token}

        import time
        import requests

        domain = "https://sankce.datlab.eu"
        client_id = "your_client_id"
        client_secret = "your_client_secret"


        def get_token():
            response = requests.post(f"{domain}/rest/v3/oauth/token", data={
                "grant_type": "client_credentials",
                "client_id": client_id,
                "client_secret": client_secret,
            })
            response.raise_for_status()
            data = response.json()
            # renew a minute before the token expires
            return data["access_token"], time.time() + data["expires_in"] - 60


        token, expires_at = get_token()
        if time.time() > expires_at:
            token, expires_at = get_token()

        headers = {"Authorization": "Bearer " + token}
        response = requests.get(f"{domain}/rest/v3/account", headers=headers)
        print(response.json())
        

Good to know:


7. Error Messages

For predefined errors, the API returns a JSON response with an HTTP status code 400. The response contains the key error_code, which corresponds to one of the following error types:

error_code Description
100Credit is unavailable (must be purchased)
101Parameter credit must be set to true
102Credits cannot be used in batch screening v3
200Token is not assigned to the institution
201Monthly limit exceeded
205This type of screening is not enabled for your institution
210PDF download is not enabled for your institution
300Subject not found
301Subject is not clean (i.e., has risk or issue)
302Subject is clean (no issues or risks detected)
303Flag category not found in the risk catalogue (HTTP status code 404) v3
400Name must be provided
401 Date of birth must be provided requirement lifted
402Country must be provided
403Country does not match the ISO 3166-1 alpha-2 format
406Language is not supported (use cs, en or sk) v3
407IČOs must be sent as a non-empty list of strings v3
408At most 100 IČOs can be screened in one batch request v3
500Data is currently unavailable

If you receive error_code 500, wait about a minute and try again. If the issue persists for a longer period of time, please contact us.

Authentication Errors

A request that cannot be authenticated is answered with HTTP status 401 and a JSON body with the key detail, for example {"detail": "Invalid token."} for an unknown static token. A static token can be restricted to a list of IP addresses – a request from another address is answered with {"detail": "Requests from this IP address are not allowed for this token."}, and SOAP answers with the fault IP address not allowed. Contact us to change the list.

detail Description
Invalid or expired token.The OAuth access token is unknown, has expired or its client was deleted – request a new token v3
OAuth is not enabled for this account.OAuth is switched off for your institution – contact us v3
Requests from this IP address are not allowed for this client.The client is restricted to a list of IP addresses and the request came from another one – contact us to change the list v3
User inactive or deleted.The user account the client was created for is deactivated v3

The token endpoint /rest/v3/oauth/token answers with the standard OAuth 2.0 errors in the key error: invalid_client (HTTP 401, wrong client_id or client_secret, or a request from an IP address the client is not allowed to use), unsupported_grant_type and invalid_request (HTTP 400).


8. Unlocking Subjects

Screening of subjects requires unlocking through a specific request, which varies depending on the type of screening. However, the general principle remains the same for all cases.

8.1. Unlocking Methods

  1. Unlocking with Credits
    Subjects can be unlocked using credits. To enable this, the "credit" parameter in the request must be set to true. If this parameter is omitted or set differently, credits will not be used, and the subject will not be unlocked. This method is applicable to all types of subject screenings.
  2. Subscription-Based Unlocking
    An alternative unlocking method is available through a subscription model. This model includes a predefined monthly limit, which resets on the 1st day of each month. It applies to both Czech subject screening and person screening. If the "credit" parameter is not specified, this option is applied automatically for eligible screenings.

8.2. Screening Requirements

Each type of screening requires specific information that the user must provide before making a request:

  1. Czech screening - requires the full IČO of the subject
  2. Slovak screening - requires the full IČO of the subject
  3. Global screening - requires the BVD ID, which can be obtained from the Search endpoint. We strongly advise against using these endpoints programmatically without human input
  4. Person screening – requires the Full Name and Relevant Countries (e.g., country of birth or passport country). The Birthdate is optional, but providing it improves screening accuracy.
    If the birthdate is not provided, the screening still proceeds and may return potential matches.
    If the exact birthdate is unknown, provide as much detail as possible:
    • If only the year and month are known, use the format YYYY-MM-01.
    • If only the year is known, use the format YYYY-01-01.

8.3. Important Notes


9. Outputs of Screening

Screening results fall into three categories:

  1. No Issues Detected – The output is empty (the list contains 0 elements). The subject has no associated risks. For this result, you can generate the corresponding Certificate PDF file.
  2. Informational Flags Only – The output contains elements, but all have a severity level of “others”. This means the subject has specific characteristics (e.g., being a politically exposed person) but is not listed on any sanctions list, nor do any other sanctions apply. For this result, you can generate the corresponding Certificate PDF file.
  3. Flagged for Potential Risks – The output contains elements where at least one has a severity level other than “others”. These subjects are classified as flagged and may pose a risk or be subject to sanctions-related restrictions. For this result, you can also generate the Report PDF file.

10. Data Limitations

The provided data is sourced from public databases, which may be incomplete or sometimes inaccurate. While the overall accuracy of the data exceeds 98%, complete accuracy cannot be guaranteed.

When using the following global endpoints, temporary data outages may occur, typically lasting no more than one minute:

/rest/v3/international/search
/rest/v3/international/flags/{bvd_id}
/rest/v3/international/report/{bvd_id}
/rest/v3/international/certificate/{bvd_id}

This is not the same as the subject still being processed: in v3 the flags, report and certificate endpoints return {"status": ..., "status_counts": ...} until the screening is done, see the Global screening example.


For above-threshold public procurement contracts and EU subsidies, the most relevant risks are: 'sanction_list_cz', 'sanction_list_eu', 'sanctioned_company', 'sanctioned_person', 'russian_influence', 'russian_influence_company', 'russian_influence_person'. In all other cases, the most relevant risk is only 'sanction_list_eu'.

We recommend visually highlighting these risks (e.g., with a red background), unless they have been disputed (dispute = true). All other risks, including disputed ones, are less significant; however, we still recommend displaying them to the user for awareness (e.g., with a yellow background).
Risk information should be presented primarily in the risk description (description), optionally supplemented with text from the risk data field, and a recommendation for further screening. The recommendation should reference the relevant methodological guidance, depending on the jurisdiction and language:

If no risks are detected, we suggest displaying the following static message to the contracting authority:

"No connections to the Russian Federation or sanctioned individuals were found. The screening was conducted using the tool sankce.datlab.eu, as recommended by the relevant national or European methodological guidelines (e.g., MMR methodology, European Commission’s guidelines, or ÚVO methodological materials). However, due to limitations in publicly available data, the risk of needing to apply sanctions cannot be entirely excluded. In accordance with the aforementioned methodologies, the contracting authority should pay particular attention when verifying the actual owner in accordance with § 122 of the Public Procurement Act (ZZVZ)."


12. Watchdog Webhook

The Watchdog functionality continuously monitors every selected subject. Whenever a new risk appears or an existing risk increases in severity, a Webhook notification is created (in JSON format) and delivered to your configured endpoint. To enable this feature, provide us with a Webhook URL.

We will generate a secret token for you so the webhook request can be authenticated securely.

Each notification contains the following keys:

Delivery is handled via HTTP POST request and is retried automatically until your endpoint responds with HTTP 200. The request includes Watchdog-Webhook-Token: <YOUR_TOKEN> in the headers.

Note: Multiple requests (notifications) can arrive at the endpoint at the same time.

12.1. Testing Webhook Delivery


13. My account

You can check your account details, including API usage, monthly limits, and available credits. This information helps you track your screening requests and remaining available credits.


14. Contact

If you encounter any issues, please contact us at devops@datlab.eu


15. Final Additions

The documentation and endpoints may be extended, but the existing logic will remain unchanged.


16. Examples

Each endpoint in this documentation includes sample responses demonstrating typical output, including potential error messages.
The documentation of endpoints: Swagger UI

Free Entities (free-to-screen IDs)

For selected identifiers we provide screening for free — it does not consume credits and does not count towards your subscription usage.

How it works

Selected identifiers:


    # Global screening
    free_bvd_ids = [
        "US580218548", "DE2070000543", "CZ24213101", "DE2151300095", "CZ27426696",
        "HK0025791929", "CN9366692182", "GB01794877", "SE5566494174"
    ]

    # Czech screening
    free_ico_cz = [
        "26271303", "27426696", "25205838",
        "05185327", "00000078", "00466760"
    ]

    # Slovak screening
    free_ico_sk = [
        "46706305", "00024139", "52637301", "31347312",
        "31396879", "46622764", "31559123"
    ]
        

Czech test subjects by flag

To test how your implementation handles each risk, you can screen a Czech subject that currently carries it. The list below is picked from our current data (refreshed daily), one IČO per flag category. Unlike the free entities, these screenings are charged as usual. A flag is returned only if its category is enabled for your account, and a subject may carry other flags too.

category IČO
bankruptcy_risk00013226
bearer_shares00000744
company_transformation00000841
conflict_of_interest00011835
criminal_record00112836
custom_coi08269581
custom_coi_similar00010936
execution00005886
extinct00000108
frequent_extra_work00014915
geographical_risk00012092
geographical_risk_historical00011789
high_profit00001066
insolvency00000337
interpol_europol00533211
interpol_europol_similar00009890
leave_russia00147893
liquidation00000787
missing_executive00000965
missing_financial_statements00000345
missing_owner00000752
national_politician00011835
negative_publicity00000078
no_employees00012033
non_vat_payer00023442
political_donor00009971
political_donor_body00005797
risky_sector00000175
russian_influence_company00012092
russian_influence_company_historical00012092
russian_influence_person00012092
russian_influence_person_historical00012092
sanctioned_company00222640
sanctioned_company_similar01745921
sanctioned_person00460893
sanctioned_person_similar00002976
sanctions_violation00001368
sanctions_violation_similar15241556
shared_address00000345
supplier_misconduct00000205
unreliable_vat_payer00080578

Python3 example - Czech screening

            
        import requests
        

domain = "https://sankce.datlab.eu" token = "yours_token" headers = {"Authorization": "Token " + token}
ico = "...." # Czech IČO # in v3 the Czech endpoints exist only with the country code (cz) in the path response = requests.get(f'{domain}/rest/v3/flags/cz/{ico}', headers=headers) # get flags print(response.json())
flagged = False for flag in response.json(): if flag.get("severity") not in ["others"]: flagged = True break
# download report or certificate if flagged: download = requests.get(f'{domain}/rest/v3/report/cz/{ico}', headers=headers) else: download = requests.get(f'{domain}/rest/v3/certificate/cz/{ico}', headers=headers)
if download.status_code == 200: f = open(f"{ico}.pdf", "wb") f.write(download.content) f.close()
elif download.status_code == 400: print(download.json())
else: raise Exception()
# get account data response = requests.get(f'{domain}/rest/v3/account', headers=headers) print(response.json())

Python3 example - Slovak screening

            
        import requests
        

domain = "https://sankce.datlab.eu" token = "yours_token" headers = {"Authorization": "Token " + token}
ico = "...." # Slovak IČO # do not forget to include the country code (sk) in all the request URLs response = requests.get(f'{domain}/rest/v3/flags/sk/{ico}', headers=headers) print(response.json())
flagged = False for flag in response.json(): if flag.get("severity") not in ["others"]: flagged = True break
# download report or certificate if flagged: download = requests.get(f'{domain}/rest/v3/report/sk/{ico}', headers=headers) else: download = requests.get(f'{domain}/rest/v3/certificate/sk/{ico}', headers=headers)
if download.status_code == 200: f = open(f"{ico}.pdf", "wb") f.write(download.content) f.close()
elif download.status_code == 400: print(download.json())
else: raise Exception()
# get account data response = requests.get(f'{domain}/rest/v3/account', headers=headers) print(response.json())

Python3 example - Global screening

            
        import time
        import requests
        

domain = "https://sankce.datlab.eu" token = "your_token" headers = {"Authorization": "Token " + token}

# global screening runs in the background - while the subject is being processed, the endpoint returns # {"status": ..., "status_counts": ...} instead of the result, no credit is charged for these responses def get_when_done(url): while True: response = requests.get(url, headers=headers) if response.status_code == 200 and response.headers.get("Content-Type", "").startswith("application/json"): data = response.json() if isinstance(data, dict) and data.get("status") not in (None, "done"): time.sleep(5) continue return response

#search for subject subject = "yours_subject" search = requests.get(f'{domain}/rest/v3/international/search?q={subject}', headers=headers) data = search.json() # manual choose of subject by person is strongly recommended for subject in data["subjects"]: print(subject)
bvd_id = input("Select bvd_id for wanted subject: ") # input of bvd_id
# get flags response = get_when_done(f'{domain}/rest/v3/international/flags/{bvd_id}?credit=true') print(response.json())
flagged = False for flag in response.json(): if flag.get("severity") not in ["others"]: flagged = True break
# download report or certificate if flagged: download = get_when_done(f'{domain}/rest/v3/international/report/{bvd_id}') else: download = get_when_done(f'{domain}/rest/v3/international/certificate/{bvd_id}')
if download.status_code == 200: f = open(f"{bvd_id}.pdf", "wb") f.write(download.content) f.close()
elif download.status_code == 400: print(download.json())
else: raise Exception()

Python3 example - Person screening

            
        import requests
        

domain = "https://sankce.datlab.eu" token = "your_token" headers = {"Authorization": "Token " + token}
name = "Vladimir Putin" countries = "RU" birthdate = "1952-10-07" # Optional (if unknown, can be left as empty string: "")
# get flags response = requests.get(f'{domain}/rest/v3/person/flags?birthdate={birthdate}&countries={countries}&name={name}&credit=true', headers=headers) print(response.json())
flagged = False for flag in response.json(): if flag.get("severity") not in ["others"]: flagged = True break
# download report or certificate if flagged: download = requests.get(f'{domain}/rest/v3/person/report?birthdate={birthdate}&countries={countries}&name={name}&credit=true', headers=headers) else: download = requests.get(f'{domain}/rest/v3/person/certificate?birthdate={birthdate}&countries={countries}&name={name}&credit=true', headers=headers)
if download.status_code == 200: f = open(f"{name}.pdf", "wb") f.write(download.content) f.close()
elif download.status_code == 400: print(download.json())
else: raise Exception()
response = requests.get(f'{domain}/rest/v3/account', headers=headers) # get account data print(response.json())

API Changelog

Summary of changes in v3 compared to v2.

v3.0

Global screening

NEEDS NEW IMPLEMENTATION

Global screening is now asynchronous. Endpoints return immediately; while the subject is still being processed they return HTTP 200 with a JSON body {"status": ..., "status_counts": ...} (for certificate/confirmation this is JSON, not a PDF).

v2: A single call blocked until the result was ready and returned the flags/PDF directly (and could time out on slow subjects).

→ See how to migrate

Czech flags - wider categories

NEEDS NEW IMPLEMENTATION

We have widened the flag categories of the Czech endpoint, providing more detailed risks compared to v2. Next to the v2 categories, flags can now carry the more detailed ones (e.g. sanctioned_company, sanctioned_person, interpol_europol, russian_influence_company, leave_russia).

v2: Czech categories were more limited, containing sanction_list_cz / sanction_list_eu / sanction_list_noneu / russian_influence / conflict_of_interest.

→ See how to migrate

Czech and Slovak flags - texts

NEEDS NEW IMPLEMENTATION

Descriptions and recommendations are plain text instead of HTML. The reasoning behind a flag ("the above findings are based on ...") moved from the end of description to the new additional_description field. With the lang parameter every text comes in that one language and the _en / _sk variants and reason_en are left out; without it the plain fields come in the language set on the account and the _en / _sk variants are returned next to them (additional_description included).

v2: Descriptions and recommendations were HTML, the reasoning was appended to description and every language variant was always returned.

→ See how to migrate

Czech endpoints without country code

REMOVED

Czech endpoints exist only with the country code in the path.

v2: The paths without country code worked as aliases of the Czech endpoints.

→ See how to migrate

Language

CHANGED

Every endpoint takes the lang parameter (cs, en, sk). Texts and generated PDFs are returned in that language, any other value is rejected with error 406. Without lang the language set on the account is used (default is Czech), and the flag endpoints return the _en / _sk variants next to the plain fields.

v2: An unsupported lang value was silently ignored and the language otherwise followed the Accept-Language header of the request.

→ See how to migrate

Global and person flags - language variants

NEWLY ADDED

Without the lang parameter every flag carries description in the language set on the account together with description_en and description_sk. With lang only description is returned, in that language.

v2: Flags carried only description, in the language of the request.

For endpoints: /rest/v3/international/flags/{id}, /rest/v3/person/flags

Flags - datasets

NEWLY ADDED

Every flag carries the new datasets field - the names of the datasets the flag was found in, limited to the datasets enabled for your institution. It is empty for flags that do not come from a dataset (e.g. extinct subjects).

v2: Datasets were only named in the text of the Czech and Slovak flag descriptions.

For endpoints: /rest/v3/flags/cz/{ico}, /rest/v3/flags/sk/{ico}, /rest/v3/flags/cz, /rest/v3/flags/sk, /rest/v3/international/flags/{id}, /rest/v3/person/flags

Watchdog parameter

NEWLY ADDED

Czech, Slovak and person screening take the optional watchdog parameter. With watchdog=true a watchdog that was switched off is switched back on, the same way as in the web application. With watchdog=false the subject is only screened and not added to the watchdog. Without it screening adds the subject as in v2 and a switched off watchdog stays off. Global screening keeps its own watchdog endpoint.

v2: Screening always added the subject to the watchdog, and a switched off watchdog could only be switched back on in the web application.

For endpoints: /rest/v3/flags/cz/{ico}, /rest/v3/flags/sk/{ico}, /rest/v3/flags/cz, /rest/v3/flags/sk, /rest/v3/certificate/cz/{ico}, /rest/v3/certificate/sk/{ico}, /rest/v3/report/cz/{ico}, /rest/v3/report/sk/{ico}, /rest/v3/person/flags, /rest/v3/person/certificate, /rest/v3/person/confirmation

Batch screening

NEWLY ADDED

Flags for up to 100 IČOs in one POST request. Every IČO is answered with its own status, so one failing IČO does not fail the rest. Credits cannot be used here (error 102) and at most 10 batch requests per minute are accepted.

v2: Every IČO needed its own request.

New endpoints: POST /rest/v3/flags/cz, POST /rest/v3/flags/sk

Basic company information

NEWLY ADDED

The basic registry information on a Czech or Slovak company - name, address, legal form, institutional sector, number of employees, founding and dissolution date. It is charged like the flags: free when the subject was already screened today or is in an active watchdog, otherwise one screening of the monthly limit or a credit.

v2: Not available.

New endpoints: GET /rest/v3/subject/cz/{ico}, GET /rest/v3/subject/sk/{ico}

Risk catalogue

NEWLY ADDED

The risk catalogue as data - for every flag category enabled for your institution its name, severity, the screenings it applies to, what the risk means, how it is detected, the recommended steps and the link to the catalogue. It is free to use.

v2: Only documentation_url with the link to the catalogue.

New endpoints: GET /rest/v3/catalogue, GET /rest/v3/catalogue/{category}

PDF whatever the result

NEWLY ADDED

One endpoint for the PDF of a screening - a certificate for a clean subject, a report for a flagged one, decided by the flags the subject really has. The X-Document-Type response header tells which document it is. Charged like the certificate and report.

v2: The certificate and report endpoints refuse the other result (errors 301 and 302), so the flags had to be fetched first to pick the right one.

New endpoints: GET /rest/v3/pdf/cz/{ico}, GET /rest/v3/pdf/sk/{ico}, GET /rest/v3/pdf/international/{id}, GET /rest/v3/pdf/person

OAuth 2.0 authentication

NEWLY ADDED

Next to the static token, v3 accepts OAuth 2.0 access tokens obtained with the client credentials grant (Authorization: Bearer ...). A token is valid for 1 hour. The OAuth client is created by us on request, see the Authorization section.

v2: Only the static token (Authorization: Token ...).

New endpoints: POST /rest/v3/oauth/token


Migration Guide (v2 → v3)

Steps to move an existing integration from /rest/v2 to /rest/v3. Anything not listed here works the same as in v2.

Global screening - switch to polling

For endpoints: /rest/v3/international/flags/{id}, /rest/v3/international/certificate/{id}, /rest/v3/international/confirmation/{id}

  1. Call the endpoint exactly as you did in v2.
  2. Check the response. For /flags a JSON object containing a "status" field (instead of the flags array), and for /certificate and /confirmation any application/json body (instead of a PDF), means the subject is still being processed.
  3. Wait a few seconds and call the same endpoint again. No credit is charged for these "still processing" responses.
  4. Repeat until "status" is "done": /flags then returns the flags array, and /certificate and /confirmation return the PDF.

        import time
        import requests

        while True:
            response = requests.get(f"{domain}/rest/v3/international/flags/{bvd_id}?credit=true", headers=headers)
            data = response.json()
            if response.status_code == 200 and isinstance(data, dict) and data.get("status") != "done":
                time.sleep(5)  # Still processing - no credit charged
                continue
            break

        print(data)  # The flags array
        

Czech flags - wider categories

For endpoints: /rest/v3/flags/cz/{ico}, /rest/v3/flags/cz

  1. Update any code that branches on the category field of Czech flags.
  2. Keep handling the v2 categories and add the more detailed ones from the mapping below.
v2 categoryv3 categories
sanction_list_cz / sanction_list_eu / sanction_list_noneusanction_list_cz, sanction_list_eu, sanction_list_noneu, sanctioned_company, sanctioned_person, interpol_europol (and their *_similar variants)
russian_influencerussian_influence, russian_influence_person, russian_influence_company, leave_russia

→ See the full list of categories

Czech and Slovak flags - texts

For endpoints: /rest/v3/flags/cz/{ico}, /rest/v3/flags/sk/{ico}, /rest/v3/flags/cz, /rest/v3/flags/sk

  1. Treat description and recommendation as plain text - they no longer contain HTML.
  2. If you need the reasoning that v2 appended to the end of description, read additional_description.

Czech endpoints - add the country code

For endpoints: /rest/v3/flags/cz/{ico}, /rest/v3/certificate/cz/{ico}, /rest/v3/confirmation/cz/{ico}, /rest/v3/report/cz/{ico}

  1. If you're calling /rest/v2/flags/{ico}, /certificate/{ico}, /confirmation/{ico} or /report/{ico}, switch to the same path with cz in it, e.g. /rest/v3/flags/cz/{ico}.

Language

For endpoints: all under /rest/v3

  1. If you need the texts or PDFs in a particular language, send lang=cs, lang=en or lang=sk. Without it the language set on your account is used (default is Czech).
  2. If you read the _en / _sk fields of flags, keep omitting lang - they are returned next to the plain fields, which then come in the language set on your account.
  3. Do not send any other lang value - it is rejected with error 406.