---
title: "Setup"
description: "Create an Issuer2 service inside a tenant using the walt.id Enterprise Stack."
stack: "Enterprise Stack (commercial) — version 1.2.1"
stack_version: "1.2.1"
stack_comparison: https://docs.walt.id/community-vs-enterprise.md
canonical_url: https://docs.walt.id/enterprise-stack/services/issuer2-service/setup
generated: 2026-11-11
---
# Setup

This guide walks you through creating an Issuer2 service inside a tenant. The service declares which credential types it can issue (`credentialConfigurations`) and which KMS signs its tokens. If you don't have a tenant yet, learn how to create one [here](https://docs.walt.id/enterprise-stack/administration/tenants/create.md).

## Prerequisites

Before creating an Issuer2 service, ensure you have:

- **A tenant** — An existing tenant in your organization.
- **A KMS service** — A [Key Management Service](https://docs.walt.id/enterprise-stack/services/key-management-service/overview.md) for storing signing keys.
- **A token key** — A key in the KMS used to sign OID4VCI access tokens.
- **A Credential Status Service** _(optional)_ — Only needed if a credential profile will use `credentialStatus` for revocation/suspension. See [Credential Status Service](https://docs.walt.id/enterprise-stack/services/credential-status-service/overview.md).

---

## Create an Issuer2 Service

Services are created through the generic resource API. The body's `type` field selects the service kind (`issuer2`), and the new service's own ID is taken from the `target` in the path.

**Option: CURL**

**Endpoint:** `POST /v1/{target}/resource-api/services/create` | [API Reference](https://enterprise.sandbox.walt.id/swagger/index.html#/Service%20%7C%20Resource/post_v1__target__resource_api_services_create)

##### Example Request

```bash
curl -X 'POST' \
  'https://{orgID}.enterprise-sandbox.waltid.dev/v1/{target}/resource-api/services/create' \
  -H 'accept: application/json' \
  -H 'Authorization: Bearer {yourToken}' \
  -H 'Content-Type: application/json' \
  -d '{
  "type": "issuer2",
  "baseUrl": "https://myorg.enterprise-sandbox.waltid.dev",
  "kms": "waltid.tenant1.kms1",
  "tokenKeyId": "waltid.tenant1.kms1.tokenKey",
  "credentialConfigurations": {
    "identity_credential_vc+sd-jwt": {
      "format": "dc+sd-jwt",
      "vct": "{vctBaseURL}/identity_credential",
      "cryptographic_binding_methods_supported": ["jwk", "did:key", "did:web"],
      "credential_signing_alg_values_supported": ["ES256"],
      "proof_types_supported": {
        "jwt": { "proof_signing_alg_values_supported": ["ES256"] }
      }
    },
    "UniversityDegree_jwt_vc_json": {
      "format": "jwt_vc_json",
      "cryptographic_binding_methods_supported": ["jwk", "did:key", "did:web", "did:jwk"],
      "credential_signing_alg_values_supported": ["ES256", "EdDSA"],
      "proof_types_supported": {
        "jwt": { "proof_signing_alg_values_supported": ["ES256", "EdDSA"] }
      },
      "credential_definition": {
        "type": ["VerifiableCredential", "UniversityDegree"]
      }
    },
    "org.iso.18013.5.1.mDL": {
      "format": "mso_mdoc",
      "doctype": "org.iso.18013.5.1.mDL",
      "cryptographic_binding_methods_supported": ["cose_key"],
      "credential_signing_alg_values_supported": [-7, -9],
      "proof_types_supported": {
        "jwt": { "proof_signing_alg_values_supported": ["ES256"] }
      }
    }
  },
  "issuerDisplayConfiguration": [
    {
      "name": "My Organization Issuer",
      "locale": "en-US",
      "logo": {
        "uri": "https://example.com/logo.png",
        "alt_text": "Organization logo"
      }
    }
  ]
}'
```

**Path Parameters**

- **orgID**: _String_ (required) - Your organization ID, i.e. its base URL. For an organization named `test`, this is `test.enterprise-sandbox.waltid.dev` on the sandbox environment.
- **target**: _String_ (required) - The resource identifier for the new issuer service, `{organizationID}.{tenantID}.{newIssuerServiceID}`, e.g. `waltid.tenant1.issuer1`.

**Header Parameters**

- **Authorization**: _String_ (required) - Bearer token for Enterprise Stack authentication. Format: `Bearer {token}`.

**Body Parameters**

- **type**: _String_ (required) - Must be `issuer2` for the Issuer2 Service.
- **kms**: _resourceIdentifier_ (required) - Reference to a [KMS service](https://docs.walt.id/enterprise-stack/services/key-management-service/overview.md) in the same tenant, e.g. `waltid.tenant1.kms1`.
- **tokenKeyId**: _resourceIdentifier_ (required) - Reference to a key in the KMS used to sign OID4VCI access tokens, e.g. `waltid.tenant1.kms1.tokenKey`.
- **credentialConfigurations**: _Object_ (required) - Map of the credential types this issuer supports, keyed by credential configuration ID. Each value declares `format`, signing/binding support, and format-specific fields (`vct`, `credential_definition`, or `doctype`). The example uses the self-hosted `{vctBaseURL}` VCT placeholder and integer COSE signing algorithms for the mDoc. See [Credential Types](https://docs.walt.id/enterprise-stack/services/issuer2-service/configurations/credential-types.md) for the full field reference, validation rules, and per-format options.
- **dependencies**: _Array of Strings_ (optional) - Resource paths of other services this issuer depends on, e.g. `["waltid.tenant1.credstatus1"]`. Each listed service must already exist. **Required** when any credential profile will reference a [Credential Status Service](https://docs.walt.id/enterprise-stack/services/credential-status-service/overview.md) via `credentialStatus.statusCredentialConfig` (see [Credential Status](https://docs.walt.id/enterprise-stack/services/issuer2-service/credential-profiles/create-profile.md#credential-status)) — otherwise credential issuance fails. Can also be set (or added to) after creation — see [Attaching Dependencies Later](#attaching-dependencies-later) below.
- **baseUrl**: _String_ (optional) - The public URL where the issuer is reachable; included in credential offers and OpenID metadata, e.g. `https://{orgID}.yourEnterpriseStackUrl.com`.
- **issuerDisplayConfiguration**: _Array_ (optional) - Display metadata for the issuer, one entry per locale (`name`, `locale`, `logo`). See [Display Configuration](https://docs.walt.id/enterprise-stack/services/issuer2-service/configurations/display-configuration.md).
- **sdJwtVcTypeMetadataConfiguration**: _Object_ (optional) - Not shown above. Supplies the local SD-JWT VC Type Metadata document for a self-hosted `{vctBaseURL}` VCT or a URN such as `urn:eudi:pid:1`, keyed by the same credential configuration ID as in `credentialConfigurations` (only valid for `dc+sd-jwt` configurations). If omitted, the issuer serves a minimal auto-generated document. For a URN, `schema` or `schema_uri` in this document is used to validate credential data when an offer is created. `/.well-known/vct/<urn>` exposes that local document; SD-JWT VC still retrieves an HTTPS `vct` from the URL itself. This is distinct from a configuration's `credential_metadata` (wallet display/claims). See [VCT Handling](https://docs.walt.id/enterprise-stack/services/issuer2-service/configurations/credential-types.md#vct-handling).
- **clientAuthenticationConfig**: _Object_ (optional) - Declares which client authentication methods the issuer supports (anonymous pre-authorized code access and/or attestation-based wallet authentication). When a `client-attestation` method is included, token requests must carry valid `OAuth-Client-Attestation` and `OAuth-Client-Attestation-PoP` headers. See [Client Attestation — Issuer Integration](https://docs.walt.id/enterprise-stack/services/client-attestation-service/issuer-integration.md) for JSON shape, examples, and how this maps to authorization server metadata.
- **requirePushedAuthorizationRequests**: _Boolean_ (optional) - Set `"requirePushedAuthorizationRequests": true` in the service creation or configuration update body to require Pushed Authorization Requests (PAR). The default is `false`, which allows both direct authorization and PAR.

  When enabled, wallets must POST the authorization parameters to the `pushed_authorization_request_endpoint` advertised in authorization server metadata, then open its `authorization_endpoint` with their `client_id` and the returned `request_uri`. Direct authorization requests are rejected with `invalid_request`. Authorization server metadata exposes the setting as `require_pushed_authorization_requests`.

- **credentialEncryptionKey**: _resourceIdentifier_ – Reference to an EC P-256 key in KMS used for OID4VCI Credential Request decryption and Credential Response encryption.
- **batchCredentialIssuance**: _Object_ (optional) - OpenID4VCI Credential Endpoint batch. When set, advertise `batch_credential_issuance.batch_size` and accept several holder proofs (`proofs.jwt`) on one Credential Request. Omit the object to reject `proofs` with `invalid_credential_request`. See [batchCredentialIssuance](#batchcredentialissuance).

`credentialEncryptionKey` enables OID4VCI Credential Request encryption and Credential Response encryption.

Issuer2 supports this profile:

- Key type: EC P-256
- JWE `alg`: `ECDH-ES`
- JWE `enc`: `A128GCM`
- Compression: not supported

When configured, issuer metadata includes `credential_request_encryption` and `credential_response_encryption` with `encryption_required = false`.

Wallets can keep using normal JSON credential requests while `encryption_required` is false. The walt.id wallet uses the advertised profile automatically: it sends the Credential Request as `application/jwt` and stores the decrypted Credential Response. A Deferred Credential Request is encrypted the same way when that profile is advertised, with its own `credential_response_encryption`. Other wallets that send an encrypted Credential Request as `application/jwt` and include `credential_response_encryption` receive the Credential Response as an encrypted JWE.

```json
{
  "credentialEncryptionKey": "waltid.tenant1.kms1.ecKey1"
}
```

**Error:**

  Use a dedicated key for credential encryption. Do not reuse the token signing key or credential signing keys.

<br/>

**Note:**

  Omit `clientAuthenticationConfig` entirely, or set `supportedMethods` to an empty list, to keep the default behavior where this layer does not enforce client authentication. Use `supportedMethods` with only `preauth-anonymous` when you want OID4VCI pre-authorized token requests without `client_id` but no wallet attestation.

---

##### Example Response

```json
{
  "id": "waltid.tenant1.issuer1",
  "type": "issuer2",
  "baseUrl": "https://myorg.enterprise-sandbox.waltid.dev",
  "kms": "waltid.tenant1.kms1",
  "tokenKeyId": "waltid.tenant1.kms1.tokenKey",
  "credentialConfigurations": { "...": "..." },
  "issuerDisplayConfiguration": [ "..." ]
}
```

**Response Fields**

- **id**: _String_ - The resource identifier of the created issuer service, `{organizationID}.{tenantID}.{issuerServiceID}`.
- **type**: _String_ - The service type, `issuer2`.

**Response Codes**

- `201` — Service created successfully.
- `400` — Invalid request body (e.g. an SD-JWT VC configuration missing `vct`).
- `401` — Invalid or missing authentication token.
- `409` — A service with this ID already exists.

🎉 You've created an Issuer2 service.

---

## batchCredentialIssuance

Optional OpenID4VCI 1.0 Credential Endpoint batch: the wallet sends several holder proofs in `proofs.jwt` and receives one credential per proof. This is not the draft-13 `/batch_credential` endpoint, and it is not the same as a multi-credential offer (`credentials[]` against the issuer service).

Set it on service create (or a later configuration update). When set, `batch_size` must be an integer `>= 2`. A request whose proof count exceeds `batch_size` is rejected with `invalid_credential_request`. Omit the object to keep single-proof issuance only.

```json
{
  "batchCredentialIssuance": {
    "batch_size": 10
  }
}
```

Each proof issues a copy of the selected offer item. If that item uses `credentialStatus`, Issuer2 calls the [Credential Status Service](https://docs.walt.id/enterprise-stack/services/credential-status-service/overview.md) once per copy and embeds a **distinct** status-list entry in each credential. A later Credential Request for the same `credential_identifier` is rejected. To revoke one copy, update that entry by `index`; a session-scoped status update applies to every entry bound to the issuance session. See [Create a Profile](https://docs.walt.id/enterprise-stack/services/issuer2-service/credential-profiles/create-profile.md#credential-status).

---

## Credential Types

The `credentialConfigurations` map above declares one entry per credential type. Its shape depends on the `format` (`vct` for SD-JWT VC, `credential_definition` for W3C JWT, `doctype` for mDoc), and the service validates format-specific rules on create — binding/proof co-dependency, DID method form, and JOSE-vs-COSE signing identifiers.

For the full field reference, validation rules, per-format examples, and VCT handling, see [Credential Types Configuration](https://docs.walt.id/enterprise-stack/services/issuer2-service/configurations/credential-types.md).

## Attaching Dependencies Later

`dependencies` doesn't have to be set at creation time. You can attach a service (e.g. a [Credential Status Service](https://docs.walt.id/enterprise-stack/services/credential-status-service/overview.md)) to an existing Issuer2 service:

**Option: CURL**

Endpoint: `/v2/{target}/issuer-service-api/dependencies/add` | [API Reference](https://enterprise.sandbox.walt.id/swagger/index.html#/Service%20%7C%20Issuer%20Service%20V2/post_v2__target__issuer_service_api_dependencies_add)

**Example Request**

```bash
curl -X 'POST' \
  'https://{orgID}.enterprise-sandbox.waltid.dev/v2/{target}/issuer-service-api/dependencies/add' \
  -H 'accept: */*' \
  -H 'Authorization: Bearer {yourToken}' \
  -H 'Content-Type: application/json' \
  -d '{
  "dependency": "waltid.tenant1.credstatus1"
}'
```

**Body**

```text
waltid.tenant1.credstatus1
```

**Path Parameters**

- `orgID`: - When performing operations within an organization, it is essential to use the organization's Base URL or
  another valid host alias. For example, if your organization is named `test`, your default Base URL will
  be `test.enterprise-sandbox.walt.dev` when using the sandbox environment.
- `target`: _resourceIdentifier_ - The target indicates the organization + tenant + Issuer2 service to which to attach the dependency
  (`{organizationID}.{tenantID}.{issuerServiceID}`), e.g. `waltid.tenant1.issuer1`.

**Body Parameters**

- Specifies the resource path of the service that should be attached as a dependency.

---

**Response Codes**

- `201` - Dependency attached.

---

---

## Next Steps

After creating your Issuer2 service:

1. [Issue your first credential](https://docs.walt.id/enterprise-stack/services/issuer2-service/credential-issuance/sd-jwt-vc.md) – End-to-end guide from profile to a credential in a wallet.
2. [Create credential profiles](https://docs.walt.id/enterprise-stack/services/issuer2-service/credential-profiles/create-profile.md) – Define reusable configurations for each credential type.
3. [Configure display metadata](https://docs.walt.id/enterprise-stack/services/issuer2-service/configurations/display-configuration.md) – Customize how your issuer appears in wallets.
