Skip to main content
POST
Download the Class X marksheet XML from DigiLocker (v1)
Returns the holder’s Class X marksheet from their DigiLocker as an XML file, not JSON. idto looks for the issued document named “Class X Marksheet” in the holder’s DigiLocker and returns it. Save the body as a file. The Content-Disposition filename is pan.xml, which does not match this document, so name the saved file yourself. Keep it under the same controls as any identity document copy. Needs a reference_key from Get a reference key, valid for one hour. Get one by starting a session with Start a DigiLocker session, letting the holder sign in and consent on DigiLocker, then exchanging the returned code. See the DigiLocker guide and the DigiLocker flow. The holder must have the Class X marksheet in their DigiLocker and consent to share it.

Environments

Billing

Charged only when the response returns the file. Errors return JSON and are not charged. The file response carries no chargeble field and no tranx_id.
This endpoint has no Idempotency-Key support. A retried call runs again and can be charged twice. Retry only after you have confirmed the first call failed.

Errors

Every wrapped detail object also carries data: null, tranx_id and timestamp.

Test scenarios

Questions: Aadhaar FAQ. Was this page helpful? Email us at tech@idto.ai with the page link.

Authorizations

X-Client-ID
string
header
default:<client-id>
required

The Client ID shown on the API Credentials page of the idto dashboard. It is not your account or customer ID, which returns 401. Send it on every server-to-server request together with X-API-Key. Staging and production client IDs are different.

X-API-Key
string
header
default:<api-key>
required

Your API key from the idto dashboard (API credentials). Keep it on your server; never ship it in a browser or mobile app. Send it on every server-to-server request together with X-Client-ID.

Body

application/json
reference_key
string
required

From /verify/digilocker/get_reference. Valid for one hour.

user_id
string

Your own reference for the end user.

Response

The Class X marksheet as an XML file. Charged.

The response is of type file.

Last modified on October 4, 2026