---
title: "Add a DID service"
method: POST
path: "/identifiers/{did}/services"
tags: ["Services"]
---

# Add a DID service

`POST /identifiers/{did}/services`

Adds a DID Core service entry. `type` may be a string or an array of
strings; `serviceEndpoint` may be a URI string, object, or array.

## Parameters

- `./common-components.yml#/components/parameters/CorrelationId` — unresolved $ref

## Request body

- DidServiceCreateRequest — Request body for creating a DID service.
  - `id` string, required — Service identifier as it should appear in the DID document.
  - `type` union, required — Service type (string or array of strings).
    - string
    - string[]
  - `serviceEndpoint` union, required — Service endpoint (URI string, object, or array).
    - string
    - object
    - union[]
      - union
        - string
        - object

## Response `201`

DID service created successfully.

- DidDocumentService — 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/did-rest-api.md) · [All operations](https://skmtc.dev/sphereon-opensource/apis/did-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/sphereon-opensource/did-rest-api/revisions/d575fc307e80/schema)
