{"openapi":"3.1.0","info":{"title":"Divyrs RegData API","version":"1.0.0","description":"Indian regulatory changes (RBI, SEBI) and enforcement actions as structured data. Information only, not legal advice.","contact":{"url":"https://divyrs.com/contact"}},"servers":[{"url":"https://divyrs.com/api/regdata/v1"}],"security":[{"bearer":[]}],"paths":{"/changes":{"get":{"summary":"List regulatory changes, newest first","parameters":[{"name":"regulator","in":"query","required":false,"schema":{"type":"string","description":"Regulators. Comma-separated. One of: RBI, SEBI"}},{"name":"applies_to","in":"query","required":false,"schema":{"type":"string","description":"Entity types that must act. Comma-separated. One of: all_regulated_entities, bank, small_finance_bank, payments_bank, cooperative_bank, rrb, nbfc, hfc, arc, payment_aggregator, payment_system_operator, ppi_issuer, digital_lending, credit_information_company, forex_dealer, stock_broker, depository_participant, mutual_fund, aif, portfolio_manager, investment_adviser, research_analyst, listed_company, stock_exchange, clearing_corporation, registrar_transfer_agent, credit_rating_agency, merchant_banker, insurer, insurance_intermediary, other"}},{"name":"impact","in":"query","required":false,"schema":{"type":"string","description":"Impact. Comma-separated. One of: high, medium, low"}},{"name":"type","in":"query","required":false,"schema":{"type":"string","description":"Document types. Comma-separated. One of: circular, notification, master_direction, press_release, order, consultation, other"}},{"name":"enforcement","in":"query","required":false,"schema":{"type":"boolean"},"description":"Only (true) or exclude (false) documents that penalise named parties."},{"name":"q","in":"query","required":false,"schema":{"type":"string"},"description":"Keyword search in title and summary."},{"name":"since","in":"query","required":false,"schema":{"type":"string","format":"date"},"description":"Published on or after."},{"name":"until","in":"query","required":false,"schema":{"type":"string","format":"date"},"description":"Published before."},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":20},"description":"1-100."},{"name":"cursor","in":"query","required":false,"schema":{"type":"string"},"description":"next_cursor from the previous page."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Change"}},"next_cursor":{"type":["string","null"]},"delayed_days":{"type":"integer"}}}}}},"401":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/changes/{id}":{"get":{"summary":"Get one change with its enforcement actions","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","example":"chg_1024"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"allOf":[{"$ref":"#/components/schemas/Change"},{"type":"object","properties":{"enforcement_actions":{"type":"array","items":{"$ref":"#/components/schemas/Action"}}}}]}}}}}},"401":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/enforcement":{"get":{"summary":"Search enforcement actions by name, or list the latest","parameters":[{"name":"name","in":"query","required":false,"schema":{"type":"string"},"description":"Company or person name (fuzzy match)."},{"name":"min_confidence","in":"query","required":false,"schema":{"type":"number","default":0.6},"description":"0.3-1."},{"name":"regulator","in":"query","required":false,"schema":{"type":"string","description":"Regulators. Comma-separated. One of: RBI, SEBI"}},{"name":"action_type","in":"query","required":false,"schema":{"type":"string","description":"When listing without a name. Comma-separated. One of: monetary_penalty, settlement, debarment, licence_cancellation, restrictions, order, warning, other"}},{"name":"since","in":"query","required":false,"schema":{"type":"string","format":"date"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":20}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Action"}},"next_cursor":{"type":["string","null"]}}}}}},"401":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/enforcement/{id}":{"get":{"summary":"Get one enforcement action","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","example":"act_311"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Action"}}}}}},"401":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/enforcement/screen":{"post":{"summary":"Screen up to 100 names at once (one call per name)","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["names"],"properties":{"names":{"type":"array","items":{"type":"string"},"maxItems":100},"min_confidence":{"type":"number","default":0.75}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"flagged":{"type":"integer"},"data":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"flagged":{"type":"boolean"},"matches":{"type":"array","items":{"$ref":"#/components/schemas/Action"}}}}}}}}}},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/webhooks":{"get":{"summary":"List webhooks","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Webhook"}}}}}}},"401":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"summary":"Create a webhook (Starter and Business plans)","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookInput"}}}},"responses":{"201":{"description":"Created. The signing secret is returned only once.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"allOf":[{"$ref":"#/components/schemas/Webhook"},{"type":"object","properties":{"secret":{"type":"string"}}}]}}}}}},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/webhooks/{id}":{"delete":{"summary":"Delete a webhook","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","example":"wh_12"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"deleted":{"type":"boolean"}}}}}},"401":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/regulators":{"get":{"summary":"Feeds covered and when each was last checked","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/usage":{"get":{"summary":"Your plan and calls used this month","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"plan":{"type":"string"},"month":{"type":"string"},"calls":{"type":"integer"},"limit":{"type":"integer"},"plan_expires":{"type":["string","null"]}}}}}},"401":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}},"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer","description":"API key from /dashboard/regdata (starts with rdk_)."}},"schemas":{"Error":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}},"Change":{"type":"object","properties":{"id":{"type":"string"},"regulator":{"type":"string","enum":["RBI","SEBI"]},"title":{"type":"string"},"doc_type":{"type":"string","enum":["circular","notification","master_direction","press_release","order","consultation","other"]},"ref_no":{"type":["string","null"]},"published":{"type":"string","format":"date"},"effective_date":{"type":["string","null"]},"impact":{"type":["string","null"],"enum":["high","medium","low",null]},"applies_to":{"type":"array","items":{"type":"string","enum":["all_regulated_entities","bank","small_finance_bank","payments_bank","cooperative_bank","rrb","nbfc","hfc","arc","payment_aggregator","payment_system_operator","ppi_issuer","digital_lending","credit_information_company","forex_dealer","stock_broker","depository_participant","mutual_fund","aif","portfolio_manager","investment_adviser","research_analyst","listed_company","stock_exchange","clearing_corporation","registrar_transfer_agent","credit_rating_agency","merchant_banker","insurer","insurance_intermediary","other"]}},"topics":{"type":"array","items":{"type":"string"}},"summary":{"type":["string","null"]},"obligations":{"type":"array","items":{"type":"object","properties":{"what":{"type":"string"},"who":{"type":"string"},"deadline":{"type":["string","null"]},"page":{"type":["integer","null"]}}}},"deadlines":{"type":"array","items":{"type":"object","properties":{"what":{"type":"string"},"date":{"type":"string","format":"date"}}}},"amends":{"type":"array","items":{"type":"string"}},"url":{"type":"string","format":"uri"},"pdf_url":{"type":["string","null"]},"is_enforcement":{"type":"boolean"},"verified":{"type":"boolean"},"extraction":{"type":["string","null"],"enum":["ai","rules",null]},"page":{"type":"string","format":"uri"}}},"Action":{"type":"object","properties":{"id":{"type":"string"},"regulator":{"type":"string"},"entity_name":{"type":"string"},"entity_type":{"type":"string","enum":["bank","cooperative_bank","nbfc","hfc","payment_company","insurer","broker","listed_company","company","individual","intermediary","other"]},"action_type":{"type":"string","enum":["monetary_penalty","settlement","debarment","licence_cancellation","restrictions","order","warning","other"]},"amount_inr":{"type":["integer","null"]},"action_date":{"type":["string","null"]},"reason":{"type":["string","null"]},"url":{"type":"string","format":"uri"},"pdf_url":{"type":["string","null"]},"change_id":{"type":"string"},"match_confidence":{"type":"number"}}},"WebhookInput":{"type":"object","required":["url"],"properties":{"url":{"type":"string","format":"uri","description":"Public https:// endpoint."},"events":{"type":"array","items":{"type":"string","enum":["change","enforcement"]}},"regulators":{"type":"array","items":{"type":"string","enum":["RBI","SEBI"]}},"applies_to":{"type":"array","items":{"type":"string","enum":["all_regulated_entities","bank","small_finance_bank","payments_bank","cooperative_bank","rrb","nbfc","hfc","arc","payment_aggregator","payment_system_operator","ppi_issuer","digital_lending","credit_information_company","forex_dealer","stock_broker","depository_participant","mutual_fund","aif","portfolio_manager","investment_adviser","research_analyst","listed_company","stock_exchange","clearing_corporation","registrar_transfer_agent","credit_rating_agency","merchant_banker","insurer","insurance_intermediary","other"]}},"impact":{"type":"array","items":{"type":"string","enum":["high","medium","low"]}},"watchlist":{"type":"array","items":{"type":"string"},"description":"Enforcement events only fire when one of these names matches."}}},"Webhook":{"type":"object","properties":{"id":{"type":"string"},"url":{"type":"string"},"filters":{"type":"object"},"active":{"type":"boolean"},"last_status":{"type":["string","null"]},"created":{"type":"string","format":"date-time"}}}}}}