Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Trinsic API Python Library

Version Build Status

The Trinsic API Python library provides convenient access to the Trinsic API from applications written in Python

Documentation

See the Trinsic docs for more detailed information on how to start integrating with our identity acceptance network.

Installation

Install the package with:

pip install trinsic-api

Usage

The package needs to be configured with your app's access token, which is available in the Trinsic Dashboard.

from trinsic_api.api_client import ApiClient
from trinsic_api.api.attachments_api import AttachmentsApi
from trinsic_api.api.network_api import NetworkApi
from trinsic_api.api.sessions_api import SessionsApi

auth_token = "Bearer " + "your-access-token"
configuration = Configuration.get_default()
# Set to true if you want debug request logging
configuration.debug = False
configuration.access_token = token

api_client = ApiClient(configuration=configuration)

attachments_api = AttachmentsApi(api_client)
network_api = NetworkApi(api_client)
sessions_api = SessionsApi(api_client)

You can find a full Python server example in the samples folder.

Data residency

By default, the SDK communicates with https://api.trinsic.id. If you have a Verification Profile configured for EU data residency, point the SDK at the EU endpoint by setting the configuration host.

from trinsic_api.api_client import ApiClient
from trinsic_api.configuration import Configuration
from trinsic_api.api.sessions_api import SessionsApi

configuration = Configuration.get_default()
configuration.host = "https://api.eu.trinsic.id"  # omit to use the default endpoint
configuration.access_token = "your-access-token"

api_client = ApiClient(configuration=configuration)
sessions_api = SessionsApi(api_client)

Unknown enum values

The API can add enum values after this SDK version was released. A value this version does not know is read as the enum's UNKNOWN_DEFAULT_OPEN_API member instead of failing the response:

if session.error_code is SessionErrorCode.UNKNOWN_DEFAULT_OPEN_API:
    ...  # An error code newer than this SDK version.

Upgrade the SDK to read the new value. Do not send the fallback member in requests; the API does not accept it.

SDK Versioning

Our SDKs follow the Semantic Versioning ("SemVer") scheme.

For example, the version number 1.13.0 has a major version of 1, a minor version of 13, and a patch version of 0.

Breaking changes are only introduced alongside a new major version.

Support

Any issues, inquiries, and feature requests can be sent to support@trinsic.id, or feel free to open a GitHub issue here.

More Information

Metadata

Release files for trinsic-api 3.3.0a3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for trinsic-api 3.3.0a3
File Size Uploaded Provenance Actions
trinsic_api-3.3.0a3.tar.gz 373.3 kB With provenance Details for trinsic_api-3.3.0a3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for trinsic-api 3.3.0a3
File Interpreter ABI Platform Actions
trinsic_api-3.3.0a3-py3-none-any.whl Python 3 none any Details for trinsic_api-3.3.0a3-py3-none-any.whl

Total release size: 1.1 MB

Release files / trinsic_api-3.3.0a3.tar.gz

Download URL trinsic_api-3.3.0a3.tar.gz
Size 373.3 kB
Tags Source
SHA-256 checksum
How to use checksums
7923873ca9a7f3eb28a854c60d3b42030acfef0f6f3a7ca229fdd6040dc9eb6c
BLAKE2b-256 checksum
How to use checksums
a2c6d02c34e6e8dfcddccad0c5ac06b3a601b2ff68f581878941cc40722fe41b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 10, 2026.

Transparency log

Release files / trinsic_api-3.3.0a3-py3-none-any.whl

Download URL trinsic_api-3.3.0a3-py3-none-any.whl
Size 713.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
72d7b3bbae3b93c7760f3919528343b72c4d3e2e58c121126f3c906877aca0b4
BLAKE2b-256 checksum
How to use checksums
b7a80744c76ee26e26aca577feab92e59a133ba160d2d7bd56f2593d73f39385
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 10, 2026.

Transparency log

Security for trinsic-api 3.3.0a3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for trinsic_api-3.3.0a3.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 10, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page