Overview πŸ“¦

CardScan provides pre-built API clients for multiple programming languages to simplify integration with our platform. These clients are generated from our OpenAPI specification and provide type-safe interfaces for all API operations.

Available Clients

Language
Package
Repository

TypeScript/JavaScript

@cardscan.ai/cardscan-client

Python

cardscan-client

Swift

CardScanClient

Kotlin

com.cardscan.api

Dart

cardscan_client

Installation

TypeScript/JavaScript

npm install @cardscan.ai/cardscan-client
# or
yarn add @cardscan.ai/cardscan-client

Python

pip install cardscan-client

Swift

Kotlin

Dart

Quick Start

All clients follow a similar pattern:

  1. Initialize the client with your API key

  2. Generate a session token for your user

  3. Use the client to create cards, upload images, and retrieve results

Features

All API clients provide:

  • Type Safety: Strongly typed request and response objects

  • Authentication: Built-in handling of API keys and session tokens

  • Error Handling: Consistent error types and messages

  • Async Support: Modern async/await patterns (where applicable)

  • Auto-retry: Configurable retry logic for transient failures

  • Documentation: Inline documentation and code completion

Source Code

The API clients are open source and available at: https://github.com/CardScan-ai/api-clients

Custom Clients

If you need to generate a client for a language not listed above, you can use our OpenAPI specification with any OpenAPI code generator:

Last updated

Was this helpful?