Skip to main content
POST
/
mydids
/
papers
Upload a document for numbers
curl --request POST \
  --url https://api.wavix.com/v1/mydids/papers \
  --header 'Content-Type: multipart/form-data' \
  --form did_ids=2321 \
  --form doc_id=1 \
  --form doc_attachment=@example-file
[
  {
    "id": 101,
    "allow_replace": false,
    "did_number": "+14062355770",
    "doc_content_type": "image/png",
    "doc_file_name": "user-id-card.png",
    "doc_type_id": 1,
    "status": "pending",
    "url": "https://api.wavix.com/v1/mydids/1001/papers/101"
  },
  {
    "id": 102,
    "allow_replace": true,
    "did_number": "+14062355771",
    "doc_content_type": "application/pdf",
    "doc_file_name": "driver-license.pdf",
    "doc_type_id": 2,
    "status": "approved",
    "url": "https://api.wavix.com/v1/mydids/1002/papers/102"
  }
]

Authorizations

appid
string
query
required

An API key to authorize your request

Body

multipart/form-data
did_ids
string
required

A comma-separated list of phone number IDs the document applies to.

Example:

"2321"

doc_attachment
file
required

Path to the document to be uploaded.

doc_id
enum<integer>
required

Specifies the type of document required to activate the phone number. Possible values are: 1 - Proof of identity, 2 - Proof of address, 3 - Proof of business registration.

Available options:
1,
2,
3

Response

Document uploaded successfully. The response includes a list of documents uploaded for the specified phone numbers.

allow_replace
boolean

Indicates whether the document can be replaced.

Example:

false

did_number
string

Phone number the document was applied to.

Example:

"+14062355770"

doc_content_type
string

MIME type of the uploaded document.

Example:

"image/png"

doc_file_name
string

Name of the uploaded document.

Example:

"user-id-card.png"

doc_type_id
enum<integer>

Specifies the type of document required to activate the phone number. Possible values are: 1 - Proof of identity, 2 - Proof of address, 3 - Proof of business registration.

Available options:
1,
2,
3
id
integer

Document ID.

Example:

101

status
string

Document review status.

Example:

"pending"

url
string

URL to access the uploaded document

Example:

"https://api.wavix.com/v1/mydids/1001/papers/101"

I