---
title: "Mobile Identity Services"
description: "Verify a user's identity through their mobile phone using a variety of services."
canonical: "https://docs.cm.com/verification/mobile-identity"
---

# Mobile Identity Services

> Verify a user's identity through their mobile phone using a variety of services.

Source: https://docs.cm.com/verification/mobile-identity

Verify a user's identity through their mobile phone using a variety of services.

- Takeover Protection (SIM Swap)
- Identity Match
- Number Verify

CM.com's Mobile Identity solutions are used exclusively through the API.

For complete technical documentation with specifications for all field types, JSON objects, and methods, you can consult our complete API reference: [API reference](https://docs.cm.com/verification/mobile-identity/v1/api-reference)

If you need technical assistance, please contact your account manager or [support](https://www.cm.com/app/support/)

More information on creating test transactions with test data can be found in [Sandbox](https://docs.cm.com/verification/mobile-identity/sandbox).

## Authentication

Before you can start using the API, you need API credentials. Credentials consist of a key ID and a secret, and should be kept confidential.

If you do not yet have credentials, you can request [sandbox](https://docs.cm.com/verification/mobile-identity/sandbox) credentials via the [Mobile Identity Services Registration](https://www.cm.com/app/verification-registration/mobile-identity). Once you have completed your tests and are ready to go live, contact your account manager or our [sales team](https://www.cm.com/mobile-identity-services/) for production credentials.

To authenticate you need to use your credentials to generate a JWT Bearer token. The [JWT token](https://jwt.io/introduction/) has to be generated using the `HS256` algorithm and your credentials. This JWT has to contain the following attributes: `iat`, `nbf`, and `exp` in the payload, as well as the attribute `kid` in the header of the JWT. This `kid` attribute needs to contain the Key ID of your credentials.

The generated token needs to be passed via the HTTP Authorization header:

```text title="Request headers"
Authorization: Bearer GENERATED_TOKEN_HERE
```

There are many libraries available for different programming languages that can help you to generate a JWT. See the Libraries tab on [https://jwt.io](https://jwt.io).

**Example**

Assuming we want to create a token that is valid for 60 seconds and we have received the following credentials:

- **Key ID**: `3b438437-04a4-40bb-8389-54bb02766fba`
- **Secret**: `AC4Etykn7jusGR5FwLDAtILtQbiQbTMKedP31szXg4WlSbjGEXyNMZ`

We need to create a JWT with the following properties:

```json title="JWT header"
{
    "alg": "HS256",
    "typ": "JWT",
    "kid": "3b438437-04a4-40bb-8389-54bb02766fba"
}
```

```json title="JWT payload"
{
    "iat": 1704067200,
    "nbf": 1704067200,
    "exp": 1704067260
}
```

- `iat`: the time when the token was generated.
- `nbf`: the time after which the token is valid, usually equal to `iat`.
- `exp`: the time when the token will expire.

:::note
Make sure these are UNIX timestamps in seconds
:::

This results in the following token:

```
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6IjNiNDM4NDM3LTA0YTQtNDBiYi04Mzg5LTU0YmIwMjc2NmZiYSJ9.eyJpYXQiOjE3MDQwNjcyMDAsIm5iZiI6MTcwNDA2NzIwMCwiZXhwIjoxNzA0MDY3MjYwfQ.lTzOd4cKOan2rwL4fHjwOffc0dp3pwYjDdl4uM1WluU
```

Add this token to the `Authorization` header in the API request.

```text title="Request headers"
Authorization: Bearer GENERATED_TOKEN_HERE
```

> The [https://jwt.io](https://jwt.io) website provides a way to inspect or validate JWT tokens.
