Skip to content

Authorized Partner API Specification API

by digitallocker.gov.in

API keyHTTPSOpen Data
Open documentation ↗

Overview

To access files in user’s DigiLocker account from your application, you must first obtain user’s authorization.

Authorized Partner API Specification is an open data API from digitallocker.gov.in. Requests are authenticated with an API key. It is served over HTTPS. Its OpenAPI description documents 22 endpoints.

At a glance

Authentication
API key
HTTPS
Yes
CORS
Unknown
Category
Open Data
Base URL
https://betaapi.digitallocker.gov.in/public
Version
1.0.0
Endpoints
22
Spec updated
2021-02-07

Make a first request

Replace the placeholders; the documentation says exactly where credentials go.

cURL
curl -X GET "https://betaapi.digitallocker.gov.in/public/oauth2/1/authorize" \
  -H "Accept: application/json" \
  -H "X-API-Key: YOUR_API_KEY"
JavaScript
const response = await fetch("https://betaapi.digitallocker.gov.in/public/oauth2/1/authorize", {
  method: "GET",
  headers: {
    "Accept": "application/json",
    "X-API-Key": "YOUR_API_KEY",
  },
});
const data = await response.json();
console.log(data);
Python
import requests

response = requests.request(
    "GET",
    "https://betaapi.digitallocker.gov.in/public/oauth2/1/authorize",
    headers={
    "Accept": "application/json",
    "X-API-Key": "YOUR_API_KEY",
    },
    timeout=30,
)
print(response.json())

Endpoints

MethodPathWhat it does
POST/account/1/pushuriPush URI to Account
POST/account/2/verifyVerify Account
GET/oauth2/1/authorizeGet Authorization Code
POST/oauth2/1/codeGet Device Code
POST/oauth2/1/file/uploadUpload file to locker
GET/oauth2/1/file/{uri}Get File from URI
GET/oauth2/1/files/Get List of Self Uploaded Documents
GET/oauth2/1/files/issuedIssued Documents
GET/oauth2/1/files/{id}Get List of Self Uploaded Documents
POST/oauth2/1/pull/doctypeGet List of Documents Provided by an Issuer
POST/oauth2/1/pull/issuersGet List of Issuers
POST/oauth2/1/pull/parametersGet Search Parameters for a Document
POST/oauth2/1/pull/pulldocumentPull Document
POST/oauth2/1/revokeRevoke Token.
POST/oauth2/1/tokenGet Access Token
GET/oauth2/1/userGet User Details
GET/oauth2/1/xml/{uri}Get Certificate Data in XML Format from URI
GET/oauth2/2/files/issuedIssued Documents
GET/oauth2/2/xml/eaadhaarGet e-Aadhaar Data in XML Format
POST/signup/1/demoauthverifyVerify OTP
POST/signup/2/demoauthSIGN UP
POST/statistics/1/countsGet Statistics

Questions

Does the Authorized Partner API Specification API need an API key?

Yes. The Authorized Partner API Specification API uses API key authentication; the documentation explains how to get credentials.

Does the Authorized Partner API Specification API support HTTPS?

Yes, the Authorized Partner API Specification API is served over HTTPS.

How many endpoints does the Authorized Partner API Specification API have?

Its OpenAPI description lists 22 endpoints in version 1.0.0. All of them are shown on this page.

What are alternatives to the Authorized Partner API Specification API?

Other Open Data APIs include Search Services, Wayback API, Wikipedia, Nasdaq Data Link, University of Oslo.

Compare alternatives →

Listed from APIs.guru (CC0).