def verification(base_url: str, verification_id: str=None) ->str:
    """
    Build the URL to communicate with the verification API.
    """
    if not verification_id:
        return '/'.join([base_url, 'verifications'])
    return '/'.join([base_url, 'verifications', verification_id])
