v1
latestOpenAPI 3.0.22026-07-14225376.6 KBFile APIs
Upload file to locker
This API can be used to save/upload a file to uploaded documents in DigiLocker. The allowed file types are JPG, JPEG, PNG and PDF. The file size must not exceed 10MB.
post/oauth2/1/file/upload
Headers
pathstring
The destination path of the file in DigiLocker including filename.
hmacstring
This is used to verify the integrity of the file data. The client app calculates the hash message authentication code (HMAC) of the file content using SHA256 hashing algorithm and the client secret as the hashing key. The resulting HMAC is converted to Base64 format and sent in this parameter. Upon upload of file, DigiLocker calculates the HMAC of the file data and compares it with this HMAC..
Response
successful operation