DIGIT-API's
  1. Authenticate
DIGIT-API's
  • Using DIGIT-PLAYGROUND
  • User
    • Manage
      • Create User
      • Search All Users
      • Search Active Users
      • Create User Without OTP Validation
      • Update User Without OTP Validation
      • Get User
      • Update Profile
    • Authenticate
      • Logout
        POST
      • Reset Password
        POST
      • Login
        POST
  • Master Data V1
    • List
      POST
    • Search
      POST
  • Master Data V2
    • Create Schema
      • Create Schema
    • Search Schema
      • Seach Schema
    • Add Data
      • Create
    • Seach Data
      • Seach Data
    • Update data
      • Updata
  • Access-control
    • Action
      • Authorize User
      • Get the list of actions based on either roles or features.
      • Create a new action.
      • Update existing action(s).
      • getAllMDMSActions
      • Validate a particular action for a given tenant and roles of the tenant
    • Role
      • Get the list of roles based on role codes.
      • Create a new role.
      • Update existing role(s).
    • Role-Action
      • Create mapping for role and action(s).
  • Workflow-v2
    • WorkFlow
      • Create new workflow entry for a given application number(businessId).
      • Process search of the applicaition
      • Get the list of workflow applications defined in the system.
      • Get the count of applications satisfying the given criteria
      • Get the nearing sla count of workflow applications defined in the system.
      • Get the list of status count workflow applications defined in the system.
    • Escalate
      • Get the list of escalate workflow applications defined in the system.
      • Get the list of workflow applications defined in the system.
    • BusinessServiceV2
      • Create new v2 BuinessService.
      • Updates a existing v2 BuinessService.
      • Get the list of v2 BusinessServices defined in the system.
    • BusinessService
      • Create new BuinessService.
      • Updates a existing BuinessService.
      • Get the list of BusinessServices defined in the system.
  • Filestore
    • Upload File
      • Uploads different kinds of files to server.
    • Search
      • Search file url based on tenantid and filestoreid.
      • Search file url based on tenantid and tag name.
      • Get metadata of file based on tenantId and filestoreId.
      • Search file url based on tenantid and filestoreid.
  • Idgen
    • IdGeneration Controller
    • Create new id.
      POST
  • Location
    • Boundary
      • Search Location
      • It Will provide the List of boundaries based on search criteria Like "Srikakulam Municipality","Zone-1","Zone-2" etc.
    • Geography
      • Handles all requests related to Geographical boundaries by providing appropriate GeoJson and other associated data
    • Tenant
      • Resolves a given latitude / longitude to the corresponding tenant Id
  • Enc-Service
    • Crypto
      • Encrypts the given input value/s OR values of the object.
      • Decrypts the given input value/s OR values of the object.
      • Provide signature for a given value.
      • Check if the signature is correct for the provided value.
      • Deactivate the keys for the given tenant and generate new keys. It will deactivate both symmetric and asymmetric keys for the provided tenant.
      • cryptoRotateAllKeys
  • PG-Service
    • transactions-api-controller
      • transactionsV1AvailableGatewaysPost
      • transactionsV1CreatePost
      • transactionsV1SearchPost
      • transactionsV1UpdatePost
  • URL-Shortening
    • egov-url-shortening service endpoints
      • shorten given url
      • redirects user to orignal url identified by id
  • Indexer
    • egov-indexer service
      • This endpoint is used to start legacy index job to reindex records from DB. The data is fetched from DB by calling api mentioned in request in batches. The is useful when some record is present in DB but missing on index.
      • This endpoint is used to start indexing job to reindex records from one index to another index.
      • This endpoint is used to index one record on a index. The information to pick correct config is provided with the data to be indexed.
      • Index data in row
  • PDF-Service
    • PDF-Service endpoints
      • Generate PDF and store output pdfs to filestore and return their filestoreids. The information is also saved into DB so that using _search endpoint we can retrieve already generated pdfs.
      • Generates pdf without storing any information on filestore or in DB. The generated pdf would be returned as binary response
      • Get filestoreids and other information about already generated pdf by searching on jobid or entityid with other optional search parameters
  • Report
    • Report Meta
      • createv1
      • getReportDatav1
      • Metadata API for report definition
    • Report
      • Search API for report data
  • eGov-OTP
    • OTPConfig
      • create OTP Configuration entry
      • validate OTP Configuration entry
      • search OTP Configuration entry using uuid
  • User-OTP
    • user otp send
  • Localization
    • Create Message
      • create massage
    • Fetch Message
      • fetch message
    • Update message
      • update message
    • Delete message
      • delete mesage
    • Upsert message
      • upsert message
  • Service Request
    • Service Defination Create
      • Create service defination
    • Service Defination search
      • Search service defination
    • Service create
      • service create
    • Service Search
      • Service search
  • Audit Service
  1. Authenticate

Login

Developing
POST
https://unified-dev.digit.org/user/oauth/token
Last modified:2025-01-20 09:02:23

Request

Query Params
_
string 
required
Example:
1700804704480
Header Params
authority
string 
required
Example:
unified-dev.digit.org
authorization
string 
required
Example:
Basic ZWdvdi11c2VyLWNsaWVudDo=
Cookie
string 
required
Example:
_ga_6130JJKLD4=GS1.1.1689144121.1.1.1689144147.34.0.0; _ga_2E44ZSYXS7=GS1.1.1693551022.10.0.1693551537.0.0.0; _ga=GA1.1.1506416593.1687179320; _ga_P1TZCPKF6S=GS1.1.1695629661.2.0.1695629664.57.0.0; _ga_H9YC8FEN6F=GS1.1.1696831541.125.1.1696831564.37.0.0; io=f_4QRb-VaOOVAUJ0AAAB; locale=en_IN; PGADMIN_LANGUAGE=en; __cuid=44ff2be0a12e4499973904b80d92ef3d; amp_fef1e8=21a46ed7-716d-4b59-aa13-c513dd00a213R...1hflua14j.1hflua14o.kq.46.p0; _ga_XBQP06FR8V=GS1.1.1700469736.4.0.1700469739.57.0.0; _oauth2_proxy=eyJFbWFpbCI6ImFuc2guZ295YWxAZWdvdmVybm1lbnRzLm9yZyIsIlVzZXIiOiJhbnNoLWVnb3YifQ
content-type
string 
required
Example:
application/x-www-form-urlencoded
Body Params application/x-www-form-urlencoded
username
string 
required
Example:
AllAcessMustak
password
string 
required
Example:
Must@123NK
userType
string 
required
Example:
EMPLOYEE
tenantId
string 
required
Example:
pg
scope
string 
required
Example:
read
grant_type
string 
required
Example:
password

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://unified-dev.digit.org/user/oauth/token?_=1700804704480' \
--header 'authority: unified-dev.digit.org' \
--header 'authorization: Basic ZWdvdi11c2VyLWNsaWVudDo=' \
--header 'Cookie: _ga_6130JJKLD4=GS1.1.1689144121.1.1.1689144147.34.0.0; _ga_2E44ZSYXS7=GS1.1.1693551022.10.0.1693551537.0.0.0; _ga=GA1.1.1506416593.1687179320; _ga_P1TZCPKF6S=GS1.1.1695629661.2.0.1695629664.57.0.0; _ga_H9YC8FEN6F=GS1.1.1696831541.125.1.1696831564.37.0.0; io=f_4QRb-VaOOVAUJ0AAAB; locale=en_IN; PGADMIN_LANGUAGE=en; __cuid=44ff2be0a12e4499973904b80d92ef3d; amp_fef1e8=21a46ed7-716d-4b59-aa13-c513dd00a213R...1hflua14j.1hflua14o.kq.46.p0; _ga_XBQP06FR8V=GS1.1.1700469736.4.0.1700469739.57.0.0; _oauth2_proxy=eyJFbWFpbCI6ImFuc2guZ295YWxAZWdvdmVybm1lbnRzLm9yZyIsIlVzZXIiOiJhbnNoLWVnb3YifQ' \
--header 'content-type: application/x-www-form-urlencoded' \
--data-urlencode 'username=AllAcessMustak' \
--data-urlencode 'password=Must@123NK' \
--data-urlencode 'userType=EMPLOYEE' \
--data-urlencode 'tenantId=pg' \
--data-urlencode 'scope=read' \
--data-urlencode 'grant_type=password'

Responses

🟢200Success
application/json
Body
access_token
string 
required
token_type
string 
required
refresh_token
string 
required
expires_in
integer 
required
scope
string 
required
ResponseInfo
object 
required
api_id
string 
required
ver
string 
required
ts
string 
required
res_msg_id
string 
required
msg_id
string 
required
status
string 
required
UserRequest
object 
required
id
integer 
required
uuid
string 
required
userName
string 
required
name
string 
required
mobileNumber
string 
required
emailId
string 
required
locale
string 
required
type
string 
required
roles
array [object {3}] 
required
active
boolean 
required
tenantId
string 
required
permanentCity
string 
required
Example
{
  "access_token": "b8129599-872d-4083-aa19-662447c1ad93",
  "token_type": "bearer",
  "refresh_token": "b962d3e6-9e04-4502-94a9-2a358a9fe8d7",
  "expires_in": 276829,
  "scope": "read",
  "ResponseInfo": {
    "api_id": "",
    "ver": "",
    "ts": "",
    "res_msg_id": "",
    "msg_id": "",
    "status": "Access Token generated successfully"
  },
  "UserRequest": {
    "id": 29392,
    "uuid": "3b68bb99-310b-4fb4-ae27-ddb948cab9e3",
    "userName": "AllAcessMustak",
    "name": "mustak",
    "mobileNumber": "9353822214",
    "emailId": "xyz@egovernments.org",
    "locale": "string",
    "type": "EMPLOYEE",
    "roles": [
      {
        "name": "FSM Administrator",
        "code": "FSM_ADMIN",
        "tenantId": "pg"
      },
      {
        "name": "Employee",
        "code": "EMPLOYEE",
        "tenantId": "pg"
      },
      {
        "name": "Grievance Routing Officer",
        "code": "GRO",
        "tenantId": "pg"
      },
      {
        "name": "FSM Desluding Operator",
        "code": "FSM_DSO",
        "tenantId": "pg"
      },
      {
        "name": "FSM Employee Report Viewer",
        "code": "FSM_REPORT_VIEWER",
        "tenantId": "pg"
      },
      {
        "name": "System user",
        "code": "SYSTEM",
        "tenantId": "pg"
      },
      {
        "name": "PGR Last Mile Employee",
        "code": "PGR_LME",
        "tenantId": "pg"
      },
      {
        "name": "Citizen",
        "code": "CITIZEN",
        "tenantId": "pg"
      },
      {
        "name": "Super User",
        "code": "SUPERUSER",
        "tenantId": "pg"
      },
      {
        "name": "HRMS ADMIN",
        "code": "HRMS_ADMIN",
        "tenantId": "pg"
      },
      {
        "name": "Department Grievance Routing Officer",
        "code": "DGRO",
        "tenantId": "pg"
      }
    ],
    "active": true,
    "tenantId": "pg",
    "permanentCity": "Kaikoo"
  }
}
Previous
Reset Password
Next
List
Built with