This release is a pre-release and may not be stable for production use.
Trinsic API Python Library
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.0a4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| trinsic_api-3.3.0a4.tar.gz | 373.6 kB | With provenance | Details for trinsic_api-3.3.0a4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| trinsic_api-3.3.0a4-py3-none-any.whl | Python 3 | none | any | Details for trinsic_api-3.3.0a4-py3-none-any.whl |
Total release size: 1.1 MB
Release files / trinsic_api-3.3.0a4.tar.gz
| Download URL | trinsic_api-3.3.0a4.tar.gz |
|---|---|
| Size | 373.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4986e6c1c7f9e288d3101463a578e723392733c001cdd581a218df48e5c5b541
|
|
BLAKE2b-256 checksum How to use checksums |
48494739372ca982649515af2067ab6d785976445432ef34cfb180f5eef7f674
|
| 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 logRelease files / trinsic_api-3.3.0a4-py3-none-any.whl
| Download URL | trinsic_api-3.3.0a4-py3-none-any.whl |
|---|---|
| Size | 713.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b084cefbb437f19f1b1c6353b0a00324e20389496ec3f29fcaf63630543d14db
|
|
BLAKE2b-256 checksum How to use checksums |
37cf8ba8e6c3038d7287b52cedf8ff243d234249a3e35da8f9e5da8a8dee3637
|
| 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 logSecurity for trinsic-api 3.3.0a4
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.
Attestation for trinsic_api-3.3.0a4.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 logA 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.