Create Proof
POST https://{{host}}/v3/proofs
Creates an identity/address proof.
Request Body Scheme
{
data (object, required)
{
type (string, required): proofs
relationships (object, required){
files (object, required): to-many
The ID of Encrypted Files associated to this proof.proof_type (object, required): to-one
The ID of Proof Type associated to this proof.entity (enumerated[object], required): to-one
Allowed entity types: identities or addresses.
}
}
}
Request Body Example
Resource Creation Example: Identities
{
"data": {
"type": "proofs",
"relationships": {
"files": {
"data": [
{
"id": "cc52b6b3-0627-47d3-a1c9-b54d3de42813",
"type": "encrypted_files"
}
]
},
"proof_type": {
"data": {
"id": "d2c1b3fb-29f7-46ca-ba82-b617f4630b78",
"type": "proof_types"
}
},
"entity": {
"data": {
"id": "54c92d8e-f135-4b55-ac48-748d44437509",
"type": "identities"
}
}
}
}
}
Resource Creation Example: Addresses
{
"data": {
"type": "proofs",
"relationships": {
"files": {
"data": [
{
"id": "cc52b6b3-0627-47d3-a1c9-b54d3de42813",
"type": "encrypted_files"
}
]
},
"proof_type": {
"data": {
"id": "d2c1b3fb-29f7-46ca-ba82-b617f4630b78",
"type": "proof_types"
}
},
"entity": {
"data": {
"id": "54c92d8e-f135-4b55-ac48-748d44437509",
"type": "addresses"
}
}
}
}
}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Accept | string | ||
Content-Type | string | ||
Api-Key | string |
RESPONSES
status: Created
{"data":{"id":"84155378-88d5-456e-844d-103596e3fb2c","type":"proofs","attributes":{"created_at":"2021-03-28T18:01:50.387Z","expires_at":null},"relationships":{"proof_type":{"links":{"self":"https://api.didww.com/v3/proofs/84155378-88d5-456e-844d-103596e3fb2c/relationships/proof_type","related":"https://api.didww.com/v3/proofs/84155378-88d5-456e-844d-103596e3fb2c/proof_type"}},"entity":{"links":{"self":"https://api.didww.com/v3/proofs/84155378-88d5-456e-844d-103596e3fb2c/relationships/entity","related":"https://api.didww.com/v3/proofs/84155378-88d5-456e-844d-103596e3fb2c/entity"}}}},"meta":{"api_version":"2021-04-19"}}