upload a document for did

API Docs by APIMATIC

Upload a Document for DID

Use this method to upload a document for a DID(s) to the platform. Files must meet the following requirements: (1) File format must be only png, jpg, jpeg, tiff, bmp, or pdf. (2) File size must be 10MB or less. (3) Files cannot be password protected. (4) PDF files cannot have a digital signature.

This endpoint requires authentication.

POST /mydids/papers
  • EXPLORER
  • PARAMETERS
Endpoint Arguments*
Parameters*

Types of documents required for the DID activation

doc_attachment*

Binary content of the document.

An array of unique identifies of DIDs the document is uploaded for.

Response Type

Void

Errors

HTTP Status CodeError DescriptionException Class
400
Bad request. The document cannot be uploaded.
curl -X POST \
  --url 'https://api.wavix.com/v1/mydids/papers?appid=appid' \
  -H 'Content-Type: application/x-www-form-urlencoded'\
  -d 'doc_id=1' \
  -d 'doc_attachment=%7B%22key1%22%3A%22val1%22%2C%22key2%22%3A%22val2%22%7D' \
  -d 'did_ids=did_ids4'