Skip to main content

Easily Integrate
Resistant AI's API using Konfig's TypeScript SDK

Need a TypeScript SDK for Resistant AI's API?

Growing API Companies trust Konfig's SDKs to onboard developers to their API.

SnapTradeHumanloopSplititLeapGroundx

First, instantiate the SDK

It only takes a few lines of code.

index.ts

import { ResistantAi } from 'resistant-ai-typescript-sdk';
const resistantAi = new ResistantAi({
/*
* The standard [client credentials](https://developer.okta.com/docs/guides/implement-grant-type/clientcreds/main/#about-the-client-credentials-grant) flow:
*
* 1. Client makes a [request](https://developer.okta.com/docs/guides/implement-grant-type/clientcreds/main/#request-for-token) to authorization server using client credentials
* ```
* BASIC_AUTH=$(echo -n $CLIENT_ID:$CLIENT_SECRET | base64)
* curl --request POST \
* --url 'https://eu.id.resistant.ai/oauth2/aus2un1hkrKhPjir4417/v1/token' \
* --header 'accept: application/json' \
* --header "authorization: Basic $BASIC_AUTH" \
* --header 'content-type: application/x-www-form-urlencoded' \
* --data 'grant_type=client_credentials&scope=submissions.read submissions.write'
* ```
* 2. If the credentials are valid, authorization server responds with an access token
* ```
* {
* "access_token": "eyJhbG[...]1LQ",
* "token_type": "Bearer",
* "expires_in": 3600,
* "scope": "submissions.read submissions.write"
* }
* ```
* 3. Client uses the access token to make subsequent API requests with Authorization header
* ```
* Authorization: Bearer eyJhbG[...]1LQ
* ```
*
* Please note that Token URL is specific for a given environment. Correct URL is in the corresponding environment documentation.
*
*/
clientId: "CLIENT_ID",
clientSecret: "CLIENT_SECRET"
})

Then, send your first request

We made it really easy.

index.ts

// Create a submission
const analyzeDocumentResponse = resistantAi.submission.analyzeDocument()

Enjoy a buttery smooth developer experience with 11 SDK methods

How Konfig Works

Konfig collects APIs and automatically generates SDKs so you can focus on building your application.

openapi-examples

Konfig maintains the highest quality collection of OpenAPI Specifications on the internet in a GitHub repository

We pull OpenAPI Specifications from public sources, fix any errors, and make sure they pass our lint rules. We continually make sure the repository is up-to-date and collect up-time and response time metrics for every API.

openapi-examples-to-konfig

Generates AI-Augmented SDKs from openapi-examples

Our SDK generator is trusted by growing API companies and goes through a rigorous testing process to ensure the generated SDKs are high-quality and easy to use.

konfig-to-package-managers

Publishes to standard package managers

We publish to standard package managers like npm, PyPI, and Maven so you can easily integrate the SDK into your application.

Resistant AI

About Resistant AI

Resistant AI protects lenders and other fintechs from document fraud. If you are part of a fraud, risk, operations, or compliance team in the fintech/finance industry, you can now improve your risk and fraud controls, by detecting fraudulent documents automatically, and without replacing your existing systems. Detect and prevent document fraud in: • KYB / Merchant Onboarding • KYC / Customer Onboarding • Digital Lending / Mortgage Underwriting • Tenant Screening • And more. Some stats: • 500+ detectors • Less than 30 sec to get results • 90% of manual reviews eliminated • 80% of documents approved instantly • 99% accuracy in document verdicts • 50M+ documents analyzed 100+ patents. 100+ customers, including Payoneer, Habito, Planet42, and ComplyAdvantage. Digital Crime Fighter of the Year. Twice Winner of ACAMS'PwC Hackathon. Backed by GV, Index Ventures, Credo Ventures, Seedcamp, and more.

Keywords

ai
fintech
document_management
fraud_prevention
transaction_fraud
cybercrime
financial_fraud
financial_crime
document_forgery

Start integrating Resistant AI's API with Konfig