Create a DID
Changed onThis endpoint creates a DID. As input it takes the DID, a DID document, plus optional DID registration options and secrets needed to create a DID. The output is a state object that represents the current state of the DID creation process.
See the DID Registration specification for additional details.
Request
- Base URL/1.0/ (relative, and the document was published on a file host, not at the API’s origin)
- Authnone declared
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
The requested DID method for the operation.
Request body
Example request
{
"options": {
"clientSecretMode": true,
"network": "testnet"
},
"secret": {
"seed": "72WGp7NgFR1Oqdi8zlt7jQQ434XR0cNQ",
"verificationMethod": [
{
"id": "did:indy:sovrin:WRfXPg8dantKVubE3HX8pw#key-1",
"type": "JsonWebKey2020",
"privateKeyJwk": {
"kty": "OKP",
"crv": "Ed25519",
"d": "NzJXR3A3TmdGUjFPcWRpOHpsdDdqUVE0MzRYUjBjTlE",
"x": "jpIKKU2b77lNXKTNW2NGvw1GUMjU6v_l_tLJAH5uYz0"
}
}
]
}
}Response
The request was successful, but the DID may not be fully created yet, as indicated by the "didState.state" and "jobId" output fields. Additional state information plus metadata are available in the response body.
Example response
{
"didState": {
"secret": {
"verificationMethod": [
{
"id": "did:indy:sovrin:WRfXPg8dantKVubE3HX8pw#key-1",
"type": "JsonWebKey2020",
"privateKeyJwk": {
"kty": "OKP",
"crv": "Ed25519",
"d": "NzJXR3A3TmdGUjFPcWRpOHpsdDdqUVE0MzRYUjBjTlE",
"x": "jpIKKU2b77lNXKTNW2NGvw1GUMjU6v_l_tLJAH5uYz0"
}
}
]
}
}
}Changes
- breaking
the
////request property type changed fromstringto no type - breaking
added
subschema #1subschema #2subschema #3to the////response propertyoneOflist for the response status - breaking
added
subschema #1subschema #2subschema #3to the////response propertyoneOflist for the response status - breaking
added
subschema #1subschema #2subschema #3to the////response propertyoneOflist for the response status - breaking
added
subschema #1subschema #2subschema #3to the////response propertyoneOflist for the response status - breaking
the
////response's property type changed fromstringto no type for status - breaking
the
////response's property type changed fromstringto no type for status - breaking
the
////response's property type changed fromstringto no type for status - breaking
the
////response's property type changed fromstringto no type for status - info
added
subschema #1subschema #2subschema #3to the////request propertyoneOflist
- breaking
- breaking
removed from the
//////request propertyoneOflist - breaking
added to the
///////response propertyoneOflist for the response status - breaking
added to the
///////response propertyoneOflist for the response status - breaking
added to the
///////response propertyoneOflist for the response status - breaking
added to the
///////response propertyoneOflist for the response status - info
added to the
//////request propertyoneOflist - info
removed from the
///////response propertyoneOflist for the response status - info
removed from the
///////response propertyoneOflist for the response status - info
removed from the
///////response propertyoneOflist for the response status - info
removed from the
///////response propertyoneOflist for the response status
- breaking