Is it possible to auto-generate a DOI via the REST API?

To do this you need to include your prefix in the body of the payload without a DOI and send a POST request to https:// endpoint (or production). The below example shows the body of the payload required to autogenerate a suffix for a draft state metadata:

  "data": {
    "type": "dois",
    "attributes": {
      "prefix": "10.5438",
      "creators": [{
        "name": "example"
      "titles": [{
        "title": "This is an example"
      "publisher": "DataCite",
      "publicationYear": 2019,
      "types": {
        "resourceTypeGeneral"­: "Text"
      "url": ""

More information here.