v1

latestOpenAPI 3.0.02026-07-17647099.1 KB
Identity

Create Identity

Endpoint to create an identity to issue credentials. Issuer node supports two types of keys (field type):

  • BJJ Keys
  • ETH Keys

credentialStatusType field is optional and and defines how the auth core claim will be evaluated during the process to verify that it has not been revoked.

post/v2/identities

Request body

credentialStatusType'Iden3commRevocationStatusV1.0' | 'Iden3ReverseSparseMerkleTreeProof' | 'Iden3OnchainSparseMerkleTreeProof2023'
displayNamestring

Example request

{
  "didMetadata": {
    "method": "polygonid",
    "blockchain": "polygon",
    "network": "amoy",
    "type": "BJJ"
  },
  "credentialStatusType": "Iden3ReverseSparseMerkleTreeProof",
  "displayName": "KYCAgeCredential Issuer identity"
}

Response

Identity created

identifierstring
displayNamestring
addressstring
balancestring
keyTypestring required
credentialStatusType'Iden3commRevocationStatusV1.0' | 'Iden3ReverseSparseMerkleTreeProof' | 'Iden3OnchainSparseMerkleTreeProof2023' required

Example response

{
  "state": {
    "modifiedAt": "2023-10-26T10:59:08Z",
    "createdAt": "2023-10-26T10:59:08Z"
  },
  "credentialStatusType": "Iden3ReverseSparseMerkleTreeProof"
}