API Sathi docs
← All products

Driving License Verification

kyc

Verify a Driving License number with date of birth against the Sarathi source.

POST /gw/v1/driving-license-v1/SLA p95: 2200 ms

Authentication

Pass your key in the X-API-Key header. Use a test_ key against the sandbox and a live_ key in production. Send an optional Idempotency-Key header to safely retry — the same key returns the same response for 24h.

X-API-Key: live_xxxxxxxxxxxx

Request

Endpoint: POST https://apisathi.dsasathi.com/gw/v1/driving-license-v1

FieldTypeRequiredConstraints
dobstringrequiredformat: date
dl_numberstringrequiredminLength: 8 · maxLength: 20

Code snippets

curl -X POST https://apisathi.dsasathi.com/gw/v1/driving-license-v1/ \
  -H "X-API-Key: $API_SATHI_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{"dob":"1990-01-15","dl_number":"RJ1420190001234"}'

Response

FieldTypeRequiredConstraints
dobstringoptionalformat: date
namestringoptional
verifiedbooleanoptional
dl_numberstringoptional
valid_fromstringoptionalformat: date
valid_uptostringoptionalformat: date
vehicle_classesstring[]optional
issuing_authoritystringoptional

Sample response

{
  "dob": "1990-01-15",
  "name": "SUNIL VERMA",
  "verified": true,
  "dl_number": "RJ1420190001234",
  "valid_from": "2019-03-10",
  "valid_upto": "2039-01-14",
  "vehicle_classes": [
    "LMV",
    "MCWG"
  ],
  "issuing_authority": "RTO JAIPUR"
}

Error codes

CodeHTTPWhen
INVALID_INPUT422Request body failed schema validation.
INVALID_API_KEY401Missing, malformed, or revoked X-API-Key.
OUT_OF_SCOPE403API key is not scoped for this product.
INSUFFICIENT_BALANCE402Wallet balance is below the per-call sale price.
RATE_LIMITED429Per-key RPS or RPM limit exceeded. See Retry-After.
ROUTER_NO_VENDOR503No healthy vendor is currently available for this product.
VENDOR_AUTH_FAILED502Upstream vendor rejected our credentials.
VENDOR_ERROR502Upstream vendor returned an unexpected error.
TIMEOUT504Upstream vendor did not respond within the SLA window.

OpenAPI 3.1

Generated from this product's request/response JSON Schemas.

{
  "openapi": "3.1.0",
  "info": {
    "title": "API Sathi — Driving License Verification",
    "version": "1.0.0",
    "description": "Verify a Driving License number with date of birth against the Sarathi source."
  },
  "servers": [
    {
      "url": "https://apisathi.dsasathi.com/gw/v1"
    }
  ],
  "components": {
    "securitySchemes": {
      "ApiKeyAuth": {
        "type": "apiKey",
        "in": "header",
        "name": "X-API-Key",
        "description": "Your live or test key, e.g. `live_xxxxxxxxxxxx`."
      }
    }
  },
  "paths": {
    "/driving-license-v1": {
      "post": {
        "operationId": "drivingLicenseV1",
        "tags": [
          "kyc"
        ],
        "summary": "Driving License Verification",
        "description": "Verify a Driving License number with date of birth against the Sarathi source.",
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Optional. Same key returns the same response for 24h."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "dl_number",
                  "dob"
                ],
                "properties": {
                  "dob": {
                    "type": "string",
                    "format": "date"
                  },
                  "dl_number": {
                    "type": "string",
                    "maxLength": 20,
                    "minLength": 8
                  }
                },
                "additionalProperties": false
              },
              "example": {
                "dob": "1990-01-15",
                "dl_number": "RJ1420190001234"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful, normalized response.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "dob": {
                      "type": "string",
                      "format": "date"
                    },
                    "name": {
                      "type": "string"
                    },
                    "verified": {
                      "type": "boolean"
                    },
                    "dl_number": {
                      "type": "string"
                    },
                    "valid_from": {
                      "type": "string",
                      "format": "date"
                    },
                    "valid_upto": {
                      "type": "string",
                      "format": "date"
                    },
                    "vehicle_classes": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "issuing_authority": {
                      "type": "string"
                    }
                  }
                },
                "example": {
                  "dob": "1990-01-15",
                  "name": "SUNIL VERMA",
                  "verified": true,
                  "dl_number": "RJ1420190001234",
                  "valid_from": "2019-03-10",
                  "valid_upto": "2039-01-14",
                  "vehicle_classes": [
                    "LMV",
                    "MCWG"
                  ],
                  "issuing_authority": "RTO JAIPUR"
                }
              }
            }
          },
          "401": {
            "description": "Missing, malformed, or revoked X-API-Key.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "call_id": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "402": {
            "description": "Wallet balance is below the per-call sale price.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "call_id": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "API key is not scoped for this product.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "call_id": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Request body failed schema validation.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "call_id": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Per-key RPS or RPM limit exceeded. See Retry-After.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "call_id": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "502": {
            "description": "Upstream vendor rejected our credentials.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "call_id": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "No healthy vendor is currently available for this product.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "call_id": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "504": {
            "description": "Upstream vendor did not respond within the SLA window.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "call_id": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}