Skip to main content
POST
/
trusted-entities
Create a new trusted entity
curl --request POST \
  --url https://test.didxtech.com/me-creds/api/trusted-entities \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "Trusted Government Issuer",
  "dids": [
    {
      "did": "did:web:example.com",
      "name": "Main DID"
    }
  ],
  "certificates": []
}
'
{
  "data": {
    "id": "cm7d9cq5600pwk3zq3kmpg8uc",
    "name": "Trusted Government Issuer",
    "createdAt": "2025-02-20T11:27:37.051Z",
    "updatedAt": "2025-02-20T11:27:37.051Z",
    "dids": [
      {
        "did": "did:web:example.com",
        "name": "Main DID"
      }
    ],
    "certificates": []
  },
  "links": {
    "self": "<string>",
    "first": "<string>",
    "last": "<string>",
    "prev": "<string>",
    "next": "<string>",
    "related": "<string>"
  },
  "meta": {},
  "errors": [
    {
      "detail": "<string>",
      "id": "<string>",
      "status": "<string>",
      "code": "<string>",
      "title": "<string>",
      "source": {
        "pointer": "<string>",
        "parameter": "<string>"
      },
      "meta": {}
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
name
string
required
dids
object[]
certificates
object[]

Response

201 - application/json

Trusted entity created

data
object
required
Example:
{
"id": "cm7d9cq5600pwk3zq3kmpg8uc",
"name": "Trusted Government Issuer",
"createdAt": "2025-02-20T11:27:37.051Z",
"updatedAt": "2025-02-20T11:27:37.051Z",
"dids": [
{
"did": "did:web:example.com",
"name": "Main DID"
}
],
"certificates": []
}
meta
object
errors
object[]