Unit21 is an anti-money laundering (AML) and Fraud system that runs securely in your browser. Unit21 provides:
- Identity Verification - find suspicious parties (KYB/KYC) and monitor them
- Transaction Monitoring - create rules to find fraudulent transactions
- Case Management - investigate potential offenders and suspicious transactions
- Report Filing and Actionable Webhooks - report offenders to the authorities or ban them
pip install unit21apiThe Unit21 API uses API keys to authenticate requests. These API keys can be generated within the dashboard and must be supplied with each request.
Your API keys can be used to perform a variety of actions against the API; whilst GET requests do not affect data in your account, the PATCH and POST requests can create, alter and reassign searches - so please ensure you follow best practice for managing API keys.
Please remember to:
Keep your keys secure Rotate your API keys on a frequent basis Never store your API keys in a publicly-accessible location When making requests to the Unit21 API the key must be provided in the header:
curl -X POST \
-H 'Content-Type: application/json' \
-H 'u21-key: YOUR_API_KEY' \
-d '{
"request_body": "..."
}' \
https://<API_ENDPOINT>/<path>import unit21
from unit21.models import operations, shared
s = unit21.Unit21()
s.config_security(
security=shared.Security(
api_key_auth=shared.SchemeAPIKeyAuth(
api_key="YOUR_API_KEY_HERE",
),
)
)
req = operations.DeactivateAgentRequest(
path_params=operations.DeactivateAgentPathParams(
agent_email="unde",
),
)
res = s.agents_api.deactivate_agent(req)
if res.agent_list is not None:
# handle responsedeactivate_agent- Deactivate an agentlist_agents- List agents
create_alert- Create alertsexport_alerts- Bulk export alertsget_alert_by_unit21_id- Get an alertlink_media_to_alert- Add media to an alertlist_alerts- List alertsupdate_alert- Update alert
create_case- Create a caseexport_cases- Bulk export casesget_case_by_unit21_id- Get a caselink_media_to_case- Add media to a caselist_cases- List casesupdate_case- Update case
create_datafiles- Upload datafilesget_datafile_by_unit21_id- Get datafileget_datafile_mappings- Retrieve datafile mappings
add_instruments- Add instruments to entitycreate_entity- Create an entitycreate_entity_directly- Create an entity directlydel_media_entity- Delete entity mediaexport_entities- Bulk export entitiesget_entity- Get an entitylink_media_to_entity- Add media to an entitylist_entities- List entitiesupdate_entity- Update entity
add_verification_result_to_entity- Link external verificationget_entity_verification_workflow_executions- Get entity verification workflow IDsget_verification_result- Get verification results by result idget_verification_result_from_workflow_execution- Get verification results from workflowget_verification_workflow_execution- Get verification workflow execution detailsrun_verifications_workflow_through_external_id- Verify an entityupdate_continuous_monitoring- Update continuous monitoringupdate_suppressed_provider_entities- Suppress provider entity
create_event- Create an eventexport_events- Bulk export eventsexport_transactions- Bulk export transactionsget_event- Get an eventlist_events- List eventsupdate_event- Update event
download_file_export- Download exportlist_exports- List exports
datafile_status- Retrieve datafile statusget_pre_signed_url- Get pre-signed URLlist_datafiles- Retrieve datafiles listupload_datafiles- Upload data to URL
create_instrument- Create an instrumentexport_instruments- Bulk export instrumentsget_instrument- Get an instrumentlist_instruments- List instrumentsupdate_instrument- Update instrument
add_blacklist_values- Add items to a matchlistcreate_blacklist- Create a matchlistlist_blacklists- List matchlists
export_rules- Bulk export ruleslist_rules- List rulesread_one_rule- Get a rule
export_sars- Bulk export sarslist_sars- List sarsread_one_sar- Get a sars
list_tags- List tags
create_verification_form- Verification Forms API
update_webhook- Update webhook URL