The APIMatic Core libraries provide a stable runtime that powers all the functionality of SDKs. This includes functionality like the ability to create HTTP requests, handle responses, apply authentication schemes, convert API responses back to object instances, validate user and server data, and more advanced features like templating and secure signature verification.
You will need Python 3.7+ to support this package.
pip install apimatic-core| Name | Description |
|---|---|
RequestBuilder |
A builder class used to build an API Request |
APICall |
A class used to create an API Call object |
ResponseHandler |
Used to handle the response returned by the server |
| Name | Description |
|---|---|
HeaderAuth |
HTTP authentication via headers |
QueryAuth |
HTTP authentication via query parameters |
AuthGroup |
Supports grouping of multiple authentication operations |
And |
Logical AND grouping for multiple authentication types |
Or |
Logical OR grouping for multiple authentication types |
Single |
Represents a single authentication type |
| Name | Description |
|---|---|
EndpointConfiguration |
Holds configurations specific to an endpoint |
GlobalConfiguration |
Holds global configuration properties to make a successful API call |
| Name | Description |
|---|---|
LazyProperty |
Decorator for lazy instantiation |
| Name | Description |
|---|---|
OneOfValidationException |
Thrown on failed validation of oneOf union-type cases |
AnyOfValidationException |
Thrown on failed validation of anyOf union-type cases |
AuthValidationException |
Thrown when authentication scheme validation fails |
SignatureVerificationError |
Thrown when HMAC or custom signature verification fails |
| Name | Description |
|---|---|
HttpResponseFactory |
Factory to create HTTP responses |
| Name | Description |
|---|---|
HttpCallBack |
Callback handler for HTTP lifecycle events |
HttpClientConfiguration |
Configures the HTTP client |
HttpRequest |
Represents an HTTP request |
ApiResponse |
Wraps an API response |
HttpResponse |
Represents an HTTP response |
| Name | Description |
|---|---|
ApiLoggingConfiguration |
Global logging configuration for API calls |
ApiRequestLoggingConfiguration |
Request logging configuration |
ApiResponseLoggingConfiguration |
Response logging configuration |
| Name | Description |
|---|---|
SdkLogger |
Logs requests and responses when logging configuration is provided |
NoneSdkLogger |
No-op logger used when logging is disabled |
ConsoleLogger |
Simple console logger implementation |
LoggerFactory |
Provides appropriate logger instances based on configuration |
| Name | Description |
|---|---|
SerializationFormats |
Enumeration of array serialization formats |
DateTimeFormat |
Enumeration of DateTime formats |
ErrorCase |
Represents exception types |
FileWrapper |
Wraps files for upload with content-type |
Parameter |
Represents an API parameter |
XmlAttributes |
Represents XML parameter metadata |
OneOf |
Represents OneOf union types |
AnyOf |
Represents AnyOf union types |
LeafType |
Represents a specific case in a OneOf/AnyOf union |
| Name | Description |
|---|---|
CursorPagination |
Cursor-based pagination helper |
LinkPagination |
Link-based pagination helper |
OffsetPagination |
Offset-based pagination helper |
PagePagination |
Page-number-based pagination helper |
PaginatedData |
Iterable interface to traverse items and pages in a paginated API |
| Name | Description |
|---|---|
ApiHelper |
Helper functions for API calls |
AuthHelper |
Helper functions for authentication |
ComparisonHelper |
Utilities for response comparison |
FileHelper |
File handling utilities |
XmlHelper |
XML serialization/deserialization helpers |
DateTimeHelper |
Date/time parsing and validation helpers |
UnionTypeHelper |
Deserialization and validation for OneOf/AnyOf union types |
| Name | Description |
|---|---|
TemplateEngine |
Core engine for parsing and rendering runtime message templates used in signing or validation |
TemplateResolver |
Built-in resolvers to extract method, URL, path, headers, query, and body data |
JsonPointerResolver |
Utility to resolve RFC 6901 JSON Pointers from request bodies |
Use cases include building canonicalized signing strings, consistent logging templates, and custom request signatures.
| Name | Description |
|---|---|
HmacSignatureVerifier |
Verifies HMAC signatures using configurable templates, hash algorithms, and encoders |
HexEncoder |
Encodes digest as lowercase hex |
Base64Encoder |
Encodes digest as Base64 |
Base64UrlEncoder |
Encodes digest as URL-safe Base64 without padding |
This layer enables secure handling of webhooks, callbacks, and API integrations that rely on HMAC or other signing strategies.