HRIS Private API

This site contains the technical resources required to build internal integrations or automation using CATAPA's private endpoints.

triangle-exclamation

This section is designed for developers who need to interact with CATAPA features that is not exposed via the Public API. If you are an external developer looking to build a standard integration using the Public API, please refer to the Public API Sectionarrow-up-right. Ignorance of this notice might lead to break in your integration as our private API contract might change without public notice.

Installation

pip install catapa-private

Quick Start

A complete Hello World example to get you started immediately.

from catapa_private import CatapaPrivate

def main() -> None:
    client = CatapaPrivate(
        tenant="zfrl",
        username="demo",
        password="dmo-password"
    )

    response = client.get("/core/countries", params={"page": 0, "size": 10})
    response.raise_for_status()
    data = response.json()
    print(f"Found {len(data.get('content', []))} countries")

if __name__ == "__main__":
    main()

💡 Tip: By default, the SDK connects to https://api.catapa.com. To use a different base URL (e.g., for staging or testing), pass the base_url parameter:

Getting Your Credentials

To use the SDK with your own account, you'll need the following authentication credentials:

Tenant ID

Your tenant ID is your organization's unique identifier in CATAPA. To obtain it, please contact support@catapa.comenvelope.

Username and Password

Your username and password are your CATAPA account credentials used for session-based authentication.

circle-exclamation

Private API Documentation

Explore our interactive Swagger documentation to understand the available endpoints, request schemas, and response models for each module.

Tutorials

More intermediate examples to help you learn the SDK.

Tutorial 1: Complete CRUD Operations

A complete example showing how to perform Create, Read, Update, and Delete operations.

Tutorial 2: Error Handling and Response Management

A complete example showing how to handle errors and manage responses properly.

Cookbook

Intermediate to Advanced examples for real-world scenarios. In this scenario we try to making concurrent API calls efficiently using the SDK.

Requirements

  • Python 3.11+

Last updated