---
title: "Setup"
description: "Enable the trust-registry feature and create a Trust Registry Service instance for your organization in 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/trust-registry-service/setup
generated: 2026-11-11
---
# Setup

Create a Trust Registry Service instance for your organization.

## Prerequisites

Ensure you have the `trust-registry` feature enabled via the `_features.conf`:

```hocon
enabledFeatures = [
    trust-registry
]
```

## Create the Service

**Option: CURL**

**Endpoint:** `POST /v1/{target}/resource-api/services/create` | [API Reference](https://enterprise.sandbox.walt.id/swagger/index.html#/Service%20%2F%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: */*' \
  -H 'Authorization: Bearer {yourToken}' \
  -H 'Content-Type: application/json' \
  -d '{
  "type": "trust-registry",
  "sourceAcceptancePolicy": "REQUIRE_VALID_SIGNATURE"
}'
```

**Path Parameters**

- `orgID`: _String_ - Your organization's Base URL prefix, e.g. `myorg.enterprise-sandbox.waltid.dev`.
- `target`: _String_ - The target path for the new service: `{organizationID}.{tenantID}.{serviceID}`, e.g. `myorg.tenant1.trust-registry`.

**Header Parameters**

- `Authorization`: _String_ - Bearer token for your organization.

**Body**

- `type`: _String_ - Must be `trust-registry`.
- `sourceAcceptancePolicy`: _String (optional)_ - Default admission policy for newly loaded sources. Defaults to `REQUIRE_VALID_SIGNATURE`. See [Acceptance Policies](https://docs.walt.id/enterprise-stack/services/trust-registry-service/trust-source-management.md#acceptance-policies).
- `trustedSourceSignerCertificates`: _Array of strings (optional)_ - PEM or Base64-DER certificates or trust anchors authorized to sign XMLDSig TSL and compact-JWS LoTE sources. Configure them independently from the loaded artifact.
- `validateSignaturesByDefault`: _Boolean (legacy, optional)_ - Compatibility setting for existing configurations. Prefer `sourceAcceptancePolicy` for new services.
- `autoRefreshIntervalSeconds`: _Integer (optional)_ - Stored for compatibility, but no background refresh scheduler currently uses it. Refresh sources explicitly through the refresh endpoint.

---

##### Example Response

| Status | Description |
|--------|-------------|
| `201` | Service created successfully |
| `400` | Invalid request |
| `401` | Invalid or missing authentication token |

To require independent signer trust by default, set `sourceAcceptancePolicy` to `REQUIRE_AUTHENTICATED` and configure `trustedSourceSignerCertificates`. A certificate embedded in XMLDSig or JWS `x5c` does not establish trust by itself.

**Info:**

Signer certificates are public certificates, not private keys. Keep the configured set limited to source signers or trust anchors that your organization has authorized.

Once the service is created, load trust sources into it. See [Trust Source Management](https://docs.walt.id/enterprise-stack/services/trust-registry-service/trust-source-management.md).

## Next Steps

- [Trust source management](https://docs.walt.id/enterprise-stack/services/trust-registry-service/trust-source-management.md) — load the trust sources the registry resolves against.
- [Trust resolution](https://docs.walt.id/enterprise-stack/services/trust-registry-service/trust-resolution.md) — resolve certificates, fingerprints and provider IDs.
- [Default Requests](https://docs.walt.id/enterprise-stack/services/trust-registry-service/default-requests.md) — optional: save the entity type you always expect, so each lookup only sends the certificate.
