---
title: "Client API Basics"
slug: "client-api-basics"
updated: 2025-04-02T09:17:03Z
published: 2025-04-02T09:17:03Z
---

> ## Documentation Index
> Fetch the complete documentation index at: https://support.fortanix.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Client API Basics

## 1.0 API Objects

Calls to Fortanix-Data-Security-Manager functions are made through API objects. The classes for these objects are defined in the com.fortanix.sdkms.v1.api package. For example, the EncryptionAndDecryptionApi defines the method calls for encrypt(), and decrypt().

## 2.0 Model Objects

Most API methods take a request object as a parameter and return a response object as a result. The classes for these objects are defined in the com.fortanix.sdmis.v1.model package. For example, EncryptionAndDecryptionApi.encrypt() takes an EncryptRequest as a parameter and returns an EncryptResponse object on success.

## 3.0 Enumerations

Common enumerations are also defined in the com.fortanix.sdkms.v1.model package. For example, the ObjectType enumeration defines cryptographic key types like ObjectType.RSA and ObjectType.AES, and the DigestAlgorithm enumeration defines message digest algorithms like DigestAlgorithm.SHA1 and DigestAlgorithm.SHA256.

## 4.0 API Call Return Values

API calls generally return Result objects on success, and raise an ApiException for all types of errors. This includes transport errors such as unable to connect to the server, as well as parameter errors such as passing an incorrect encryption algorithm for an encryption request.

Fortanix Data Security Manager (DSM) is the world’s first cloud service secured with Intel® SGX. With Fortanix DSM, you can securely generate, store, and use cryptographic keys and certificates, as well as other secrets such as passwords, API keys, tokens, or any blob of data. Your business-critical applications and containers can integrate with Fortanix DSM using legacy cryptographic interfaces (PKCS#11, CNG, and JCE) or using the native Fortanix DSM RESTful interface.

## Related

- [Configure API Client and Client Authentication](/configure-api-client-and-client-authentication.md)
- [Generating Security Objects](/generating-security-objects.md)
- [Security Objects Tokenization Quickstart](/security-objects-tokenization-quickstart.md)
- [SDKs for REST API](/clients-sdks-for-rest-api.md)
- [App Authentication with an API Key](/app-authentication-with-an-api-key.md)
