# Mint an Entri DNS session

> Source: /api-reference/partner/explorer/custom-domains/mint-session
> Returns a short-lived Entri configuration the browser hands to the Entri widget so the domain owner can apply the DNS records. Human-in-the-loop by design.
> Full spec: https://docs.journey.com/openapi/partner.v1.json

## `POST /v1/partner/custom-domains/{externalId}/entri-session`

```json
{
  "description": "Returns a short-lived Entri configuration the browser hands to the Entri widget so the domain owner can apply the DNS records. Human-in-the-loop by design.",
  "operationId": "customDomainsPartner_mintSession",
  "parameters": [
    {
      "description": "External custom domain id.",
      "in": "path",
      "name": "externalId",
      "required": true,
      "schema": {
        "type": "string"
      }
    }
  ],
  "responses": {
    "201": {
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/PartnerEntriSessionResponse"
          }
        }
      },
      "description": "An Entri session for the domain."
    },
    "400": {
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/PartnerErrorResponse"
          }
        }
      },
      "description": "Request validation failed. `errors` lists the offending fields."
    },
    "401": {
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/PartnerErrorResponse"
          }
        }
      },
      "description": "No usable credential. Send `Authorization: Bearer <jwt>` or `X-API-Key: jny_...`."
    },
    "403": {
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/PartnerErrorResponse"
          }
        }
      },
      "description": "The credential authenticated but lacks the scopes in `x-required-scopes`, or the resource belongs to another organization."
    },
    "404": {
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/PartnerErrorResponse"
          }
        }
      },
      "description": "No such resource, or it is outside the organization the credential resolves to."
    }
  },
  "security": [
    {
      "partnerBearer": []
    },
    {
      "partnerApiKey": []
    }
  ],
  "summary": "Mint an Entri DNS session",
  "tags": [
    "partner/custom-domains"
  ],
  "x-required-scopes": [
    [
      "partner:custom-domains:manage"
    ]
  ]
}
```