---
title: "Create a trust anchor"
method: POST
path: "/domains/{domainId}/anchors"
tags: ["TrustAnchors"]
---

# Create a trust anchor

`POST /domains/{domainId}/anchors`

Creates a trust anchor inside the selected domain. The server assigns the anchor identifier.
The request references an Identity system identifier by `identityIdentifierId`. Use the Identity
API first when a new DID, X.509, OpenID Federation, domain, or other identifier must be created
specifically for this trust purpose.

## Request body

- TrustAnchorWrite — unresolved $ref

## Response `201`

Trust anchor created.

- TrustAnchor — unresolved $ref

## Other responses

- `400` — unresolved $ref
- `401` — unresolved $ref
- `403` — unresolved $ref
- `404` — unresolved $ref
- `500` — unresolved $ref

---

[API](https://skmtc.dev/sphereon-opensource/apis/trust-domain-api.md) · [All operations](https://skmtc.dev/sphereon-opensource/apis/trust-domain-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/sphereon-opensource/trust-domain-api/revisions/b076ec7cca02/schema)
