{"openapi":"3.1.0","info":{"title":"IP API","description":"Provider-separated full native IP database results. API keys via Authorization: Bearer.","version":"2026.11.19-api.1"},"paths":{"/auth/register":{"post":{"summary":"Register","operationId":"register_auth_register_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Register"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/verify":{"post":{"summary":"Verify","operationId":"verify_auth_verify_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Verify"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/resend":{"post":{"summary":"Resend","operationId":"resend_auth_resend_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Address"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/login":{"post":{"summary":"Login","operationId":"login_auth_login_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Login"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/logout":{"post":{"summary":"Logout","operationId":"logout_auth_logout_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/auth/forgot":{"post":{"summary":"Forgot","operationId":"forgot_auth_forgot_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Address"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/reset":{"post":{"summary":"Reset","operationId":"reset_auth_reset_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Reset"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/me":{"get":{"summary":"Me","operationId":"me_account_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/account/keys":{"get":{"summary":"Keys","operationId":"keys_account_keys_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Create Key","operationId":"create_key_account_keys_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeyCreate"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/keys/{kid}":{"delete":{"summary":"Revoke","operationId":"revoke_account_keys__kid__delete","parameters":[{"name":"kid","in":"path","required":true,"schema":{"type":"integer","title":"Kid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"summary":"Edit Key","operationId":"edit_key_account_keys__kid__patch","parameters":[{"name":"kid","in":"path","required":true,"schema":{"type":"integer","title":"Kid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeyCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/keys/{kid}/rotate":{"post":{"summary":"Rotate Key","operationId":"rotate_key_account_keys__kid__rotate_post","parameters":[{"name":"kid","in":"path","required":true,"schema":{"type":"integer","title":"Kid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RotateKey"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/password":{"post":{"summary":"Password","operationId":"password_account_password_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PasswordChange"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/usage":{"get":{"summary":"Usage","operationId":"usage_account_usage_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/account/analytics":{"get":{"summary":"Analytics","operationId":"analytics_account_analytics_get","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","default":30,"title":"Days"}},{"name":"key_id","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Key Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/databases":{"get":{"summary":"Databases","operationId":"databases_api_v1_databases_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/v1/consensus/sources":{"get":{"tags":["Geolocation consensus"],"summary":"Consensus Sources","operationId":"consensus_sources_api_v1_consensus_sources_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/v1/consensus/{ip}":{"get":{"tags":["Geolocation consensus"],"summary":"Coherent provider-balanced country, state and city consensus","operationId":"consensus_lookup_api_v1_consensus__ip__get","parameters":[{"name":"ip","in":"path","required":true,"schema":{"type":"string","title":"Ip"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsensusLookupResponse"}}}},"400":{"description":"Invalid address, selection or fields","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing, invalid, revoked or expired key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Client or dataset not permitted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Monthly or request-rate limit reached; retry after Retry-After seconds","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"No selected database available","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/lookup/{ip}":{"get":{"summary":"Lookup","operationId":"lookup_api_v1_lookup__ip__get","parameters":[{"name":"ip","in":"path","required":true,"schema":{"type":"string","title":"Ip"}},{"name":"database","in":"query","required":false,"schema":{"type":"string","default":"all","title":"Database"}},{"name":"fields","in":"query","required":false,"schema":{"type":"string","default":"","title":"Fields"}},{"name":"mode","in":"query","required":false,"schema":{"enum":["clean","raw"],"type":"string","default":"clean","title":"Mode"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LookupResponse"}}}},"400":{"description":"Invalid address, selection or fields","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing, invalid, revoked or expired key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Client or dataset not permitted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Monthly or request-rate limit reached; retry after Retry-After seconds","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"No selected database available","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/data":{"get":{"summary":"Admin Data","operationId":"admin_data_admin_data_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/users/{uid}":{"patch":{"summary":"Limits","operationId":"limits_admin_users__uid__patch","parameters":[{"name":"uid","in":"path","required":true,"schema":{"type":"integer","title":"Uid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LimitChange"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Delete User","operationId":"delete_user_admin_users__uid__delete","parameters":[{"name":"uid","in":"path","required":true,"schema":{"type":"integer","title":"Uid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteAccount"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/defaults":{"post":{"summary":"Defaults","operationId":"defaults_admin_defaults_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LimitChange"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/settings":{"post":{"summary":"Save Service","operationId":"save_service_admin_settings_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceSettings"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/updates":{"post":{"summary":"Queue Update","operationId":"queue_update_admin_updates_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/optout-entries":{"get":{"summary":"Optout List","operationId":"optout_list_admin_optout_entries_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Optout Add","operationId":"optout_add_admin_optout_entries_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OptoutAdd"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Optout Remove","operationId":"optout_remove_admin_optout_entries_delete","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OptoutRemove"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/usercheck-check":{"post":{"summary":"Usercheck Manual Check","operationId":"usercheck_manual_check_admin_usercheck_check_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UsercheckCheck"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/":{"get":{"summary":"Landing","operationId":"landing__get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/admin/health":{"get":{"summary":"Health","operationId":"health_admin_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/auth/mfa/verify":{"post":{"summary":"Finish Login","operationId":"finish_login_auth_mfa_verify_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Finish"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/passkey/options":{"post":{"summary":"Passkey Options","operationId":"passkey_options_auth_passkey_options_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Email"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/passkey/verify":{"post":{"summary":"Passkey Login","operationId":"passkey_login_auth_passkey_verify_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Finish"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/security/reauth":{"post":{"summary":"Reauth","operationId":"reauth_account_security_reauth_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Proof"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/security/reauth/options":{"post":{"summary":"Reauth Options","operationId":"reauth_options_account_security_reauth_options_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Proof"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/security/reauth/verify":{"post":{"summary":"Reauth Verify","operationId":"reauth_verify_account_security_reauth_verify_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Finish"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/security":{"get":{"summary":"Status","operationId":"status_account_security_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/account/security/totp/start":{"post":{"summary":"Totp Start","operationId":"totp_start_account_security_totp_start_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/account/security/totp/confirm":{"post":{"summary":"Totp Confirm","operationId":"totp_confirm_account_security_totp_confirm_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Finish"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/security/totp":{"delete":{"summary":"Totp Remove","operationId":"totp_remove_account_security_totp_delete","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/account/security/credentials/options":{"post":{"summary":"Key Options","operationId":"key_options_account_security_credentials_options_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddKey"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/security/credentials/confirm":{"post":{"summary":"Key Confirm","operationId":"key_confirm_account_security_credentials_confirm_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Finish"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/security/credentials/{credential_id}":{"patch":{"summary":"Key Name","operationId":"key_name_account_security_credentials__credential_id__patch","parameters":[{"name":"credential_id","in":"path","required":true,"schema":{"type":"string","title":"Credential Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Named"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Key Remove","operationId":"key_remove_account_security_credentials__credential_id__delete","parameters":[{"name":"credential_id","in":"path","required":true,"schema":{"type":"string","title":"Credential Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/security/backup-codes":{"post":{"summary":"Backup Codes","operationId":"backup_codes_account_security_backup_codes_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/account/security/sessions/others":{"delete":{"summary":"Revoke Others","operationId":"revoke_others_account_security_sessions_others_delete","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/account/security/sessions/{session_id}":{"delete":{"summary":"Revoke Session","operationId":"revoke_session_account_security_sessions__session_id__delete","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/bulk":{"post":{"summary":"Bulk","operationId":"bulk_api_v1_bulk_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkInput"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkResponse"}}}},"400":{"description":"Invalid address, selection or fields","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing, invalid, revoked or expired key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Client or dataset not permitted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Monthly or request-rate limit reached; retry after Retry-After seconds","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"No selected database available","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/presets":{"get":{"summary":"Presets","operationId":"presets_account_presets_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Save Preset","operationId":"save_preset_account_presets_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PresetInput"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/presets/{pid}":{"delete":{"summary":"Delete Preset","operationId":"delete_preset_account_presets__pid__delete","parameters":[{"name":"pid","in":"path","required":true,"schema":{"type":"integer","title":"Pid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/updates/{dataset_id}":{"post":{"summary":"Queue Source","operationId":"queue_source_admin_updates__dataset_id__post","parameters":[{"name":"dataset_id","in":"path","required":true,"schema":{"type":"string","title":"Dataset Id"}}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/updates/queue":{"get":{"summary":"Update Queue","operationId":"update_queue_admin_updates_queue_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}}},"components":{"schemas":{"AddKey":{"properties":{"name":{"type":"string","maxLength":64,"minLength":1,"title":"Name"},"kind":{"type":"string","enum":["passkey","security_key"],"title":"Kind"}},"type":"object","required":["name","kind"],"title":"AddKey"},"Address":{"properties":{"email":{"type":"string","format":"email","title":"Email"}},"type":"object","required":["email"],"title":"Address"},"BulkInput":{"properties":{"database":{"type":"string","maxLength":100,"minLength":1,"title":"Database","description":"Exactly one dataset identifier. all and comma-separated choices are not accepted."},"ips":{"items":{"type":"string","maxLength":64},"type":"array","maxItems":256,"title":"Ips"},"cidr":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Cidr","description":"Aligned IPv4 /24-/32 returns every address. Aligned IPv6 /40-/48 returns one network-address representative per /48, up to256, not a scan of all addresses."},"fields":{"type":"string","maxLength":2000,"title":"Fields","default":""},"mode":{"type":"string","enum":["clean","raw"],"title":"Mode","default":"clean"}},"additionalProperties":false,"type":"object","required":["database"],"title":"BulkInput"},"BulkItem":{"properties":{"ip":{"type":"string","title":"Ip"},"prefix":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prefix"},"result":{"$ref":"#/components/schemas/SourceResult"}},"type":"object","required":["ip","result"],"title":"BulkItem"},"BulkResponse":{"properties":{"request_id":{"type":"string","title":"Request Id"},"database":{"type":"string","title":"Database"},"count":{"type":"integer","title":"Count"},"charged":{"type":"integer","title":"Charged"},"items":{"items":{"$ref":"#/components/schemas/BulkItem"},"type":"array","title":"Items"},"input_cidr":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Input Cidr"},"lookup_basis":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lookup Basis"},"quota":{"$ref":"#/components/schemas/Quota"},"notice":{"type":"string","title":"Notice"}},"type":"object","required":["request_id","database","count","charged","items","quota","notice"],"title":"BulkResponse"},"ConsensusLookupResponse":{"properties":{"ip":{"type":"string","title":"Ip"},"request_id":{"type":"string","title":"Request Id"},"consensus":{"$ref":"#/components/schemas/ConsensusResult"},"quota":{"$ref":"#/components/schemas/Quota"},"notice":{"type":"string","title":"Notice"}},"type":"object","required":["ip","request_id","consensus","quota","notice"],"title":"ConsensusLookupResponse"},"ConsensusResult":{"properties":{"status":{"type":"string","title":"Status"},"country":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Country"},"state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"},"city":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"City"},"level":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Level"},"agreement":{"additionalProperties":true,"type":"object","title":"Agreement"}},"type":"object","required":["status","agreement"],"title":"ConsensusResult"},"DeleteAccount":{"properties":{"confirm_email":{"type":"string","format":"email","title":"Confirm Email"}},"type":"object","required":["confirm_email"],"title":"DeleteAccount"},"Email":{"properties":{"email":{"type":"string","format":"email","title":"Email"}},"type":"object","required":["email"],"title":"Email"},"ErrorResponse":{"properties":{"detail":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object"}],"title":"Detail"}},"type":"object","required":["detail"],"title":"ErrorResponse"},"Finish":{"properties":{"challenge_token":{"type":"string","maxLength":256,"title":"Challenge Token"},"code":{"type":"string","maxLength":100,"title":"Code","default":""},"credential":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Credential"}},"type":"object","required":["challenge_token"],"title":"Finish"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"KeyCreate":{"properties":{"name":{"type":"string","maxLength":64,"minLength":1,"title":"Name"},"monthly":{"type":"integer","maximum":1000000000.0,"minimum":1.0,"title":"Monthly","default":50000},"rps":{"type":"integer","maximum":10000.0,"minimum":1.0,"title":"Rps","default":10},"allowlist":{"type":"string","maxLength":2000,"title":"Allowlist","default":""},"expires_at":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Expires At"},"datasets":{"items":{"type":"string"},"type":"array","maxItems":50,"title":"Datasets"},"bulk_enabled":{"type":"boolean","title":"Bulk Enabled","default":true},"description":{"type":"string","maxLength":300,"title":"Description","default":""}},"type":"object","required":["name"],"title":"KeyCreate"},"LimitChange":{"properties":{"monthly":{"type":"integer","maximum":1000000000.0,"minimum":0.0,"title":"Monthly"},"rps":{"type":"integer","maximum":10000.0,"minimum":1.0,"title":"Rps"},"suspended":{"type":"boolean","title":"Suspended","default":false}},"type":"object","required":["monthly","rps"],"title":"LimitChange"},"Login":{"properties":{"email":{"type":"string","format":"email","title":"Email"},"password":{"type":"string","maxLength":128,"title":"Password"}},"type":"object","required":["email","password"],"title":"Login"},"LookupResponse":{"properties":{"ip":{"type":"string","title":"Ip"},"request_id":{"type":"string","title":"Request Id"},"results":{"additionalProperties":{"$ref":"#/components/schemas/SourceResult"},"type":"object","title":"Results"},"quota":{"$ref":"#/components/schemas/Quota"},"notice":{"type":"string","title":"Notice"}},"type":"object","required":["ip","request_id","results","quota","notice"],"title":"LookupResponse"},"Named":{"properties":{"name":{"type":"string","maxLength":64,"minLength":1,"title":"Name"}},"type":"object","required":["name"],"title":"Named"},"OptoutAdd":{"properties":{"ip":{"type":"string","title":"Ip"}},"type":"object","required":["ip"],"title":"OptoutAdd"},"OptoutRemove":{"properties":{"ip":{"type":"string","title":"Ip"},"confirm_ip":{"type":"string","title":"Confirm Ip"}},"type":"object","required":["ip","confirm_ip"],"title":"OptoutRemove"},"PasswordChange":{"properties":{"old_password":{"type":"string","title":"Old Password"},"new_password":{"type":"string","maxLength":128,"minLength":12,"title":"New Password"}},"type":"object","required":["old_password","new_password"],"title":"PasswordChange"},"PresetInput":{"properties":{"name":{"type":"string","maxLength":64,"minLength":1,"title":"Name"},"datasets":{"items":{"type":"string"},"type":"array","maxItems":50,"minItems":1,"title":"Datasets"},"fields":{"type":"string","maxLength":2000,"title":"Fields","default":""}},"additionalProperties":false,"type":"object","required":["name","datasets"],"title":"PresetInput"},"Proof":{"properties":{"password":{"type":"string","maxLength":128,"title":"Password","default":""},"code":{"type":"string","maxLength":100,"title":"Code","default":""}},"type":"object","title":"Proof"},"Quota":{"properties":{"period":{"type":"string","title":"Period"},"account_used":{"type":"integer","title":"Account Used"},"account_limit":{"type":"integer","title":"Account Limit"}},"type":"object","required":["period","account_used","account_limit"],"title":"Quota"},"Register":{"properties":{"email":{"type":"string","format":"email","title":"Email"},"password":{"type":"string","maxLength":128,"minLength":12,"title":"Password"},"accept":{"type":"boolean","title":"Accept"},"bootstrap":{"type":"string","title":"Bootstrap","default":""}},"type":"object","required":["email","password","accept"],"title":"Register"},"Reset":{"properties":{"token":{"type":"string","title":"Token"},"password":{"type":"string","maxLength":128,"minLength":12,"title":"Password"}},"type":"object","required":["token","password"],"title":"Reset"},"RotateKey":{"properties":{"overlap_seconds":{"type":"integer","maximum":86400.0,"minimum":0.0,"title":"Overlap Seconds","default":0}},"type":"object","title":"RotateKey"},"ServiceSettings":{"properties":{"service_name":{"type":"string","maxLength":60,"minLength":1,"title":"Service Name"},"contact_email":{"type":"string","maxLength":254,"title":"Contact Email","default":""},"company_name":{"type":"string","maxLength":160,"title":"Company Name","default":""},"hosting_region":{"type":"string","maxLength":160,"title":"Hosting Region","default":""},"site_theme":{"type":"string","maxLength":20,"title":"Site Theme","default":""}},"type":"object","required":["service_name"],"title":"ServiceSettings"},"SourceResult":{"properties":{"status":{"type":"string","enum":["ok","not_found","unavailable","disabled","expired"],"title":"Status"},"record":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Record"},"network":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Network"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"sections":{"anyOf":[{"additionalProperties":{"$ref":"#/components/schemas/SourceResult"},"type":"object"},{"type":"null"}],"title":"Sections"},"build":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Build"},"published":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Published"},"downloaded_at":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Downloaded At"},"sha256":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sha256"},"license":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"License"},"source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"}},"additionalProperties":true,"type":"object","required":["status"],"title":"SourceResult"},"UsercheckCheck":{"properties":{"query":{"type":"string","maxLength":254,"minLength":3,"title":"Query"}},"type":"object","required":["query"],"title":"UsercheckCheck"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"Verify":{"properties":{"token":{"type":"string","title":"Token"}},"type":"object","required":["token"],"title":"Verify"}}}}