The DOI gets registered through datacite. They have a graphql api (https://api.datacite.org/graphql).