---
llm-context: developer-guide
category: core-concepts
title: Mobile Credentials
difficulty: intermediate
time: 5 minutes
format: markdown
updated: 
---


# Mobile Credentials

Turn smartphones into access cards using Bluetooth or NFC. Two mobile credential systems are available: HID Mobile Access and PassFlow.

## What Are Mobile Credentials?

Digital credentials stored on smartphones that unlock doors via Bluetooth Low Energy (BLE) or NFC. No physical card needed.

**Benefits:**
- Always have your phone with you
- No physical card to lose or forget
- Instant provisioning (no mailing cards)
- Easy to revoke remotely
- Perfect for remote employees who occasionally visit office

**Requirements:**
- Smartphone with BLE or NFC
- Mobile credential app installed
- Doors equipped with BLE/NFC readers

## Two Mobile Credential Systems

DoorFlow supports two mobile credential platforms:

### HID Mobile Access

**What it is:**
- Industry-standard mobile credentialing from HID Global
- Uses HID&#39;s mobile app ecosystem
- Works with HID-compatible readers

**When to use:**
- Your organization already uses HID hardware
- Need compatibility with existing HID infrastructure
- Multi-building enterprise deployment

### PassFlow

**What it is:**
- DoorFlow&#39;s native mobile credential system
- Simpler setup and management
- Integrated directly into DoorFlow

**When to use:**
- Want a DoorFlow-native solution
- Smaller to mid-size deployments
- Prefer simplified credential management

## Checking Your Mobile Credential Types

**Request:**
```bash
curl -X GET &quot;https://api.doorflow.com/api/3/credential_types&quot; \
  -H &quot;Authorization: Bearer YOUR_ACCESS_TOKEN&quot;
```

**Response:**
```json
{
  &quot;credential_types&quot;: [
    {
      &quot;id&quot;: 8,
      &quot;name&quot;: &quot;HID Mobile Access&quot;,
      &quot;format&quot;: &quot;mobile&quot;,
      &quot;description&quot;: &quot;HID Mobile Access credential&quot;
    },
    {
      &quot;id&quot;: 9,
      &quot;name&quot;: &quot;PassFlow&quot;,
      &quot;format&quot;: &quot;mobile&quot;,
      &quot;description&quot;: &quot;PassFlow mobile credential&quot;
    }
  ]
}
```

Your account will show whichever system(s) your hardware supports.

&lt;!-- related-guides[Creating Mobile Credentials]: issuing-hid-mobile-passes --&gt;

## When to Use Mobile Credentials

**Best for:**
- Modern, tech-forward organizations
- Remote employees who occasionally visit office
- Eliminating physical card logistics
- Instant credential provisioning
- Phone-first workplace cultures

**Not ideal for:**
- Users without smartphones
- Areas with poor Bluetooth connectivity
- Environments where phones are prohibited (clean rooms, secure facilities)
- Users uncomfortable with technology
- Backup access (phone batteries die)

## Comparison: HID vs PassFlow

| Feature | HID Mobile Access | PassFlow |
|---------|-------------------|----------|
| **Setup complexity** | More complex | Simpler |
| **Hardware** | HID-compatible readers | PassFlow-compatible readers |
| **App ecosystem** | HID&#39;s mobile app | PassFlow app |
| **Enterprise features** | Extensive | Standard |
| **Integration** | HID platform required | DoorFlow native |
| **Best for** | Large enterprises | Small to mid-size |

**Choosing between them:**
- Already using HID hardware? → HID Mobile Access
- New deployment or DoorFlow-focused? → PassFlow
- Need specific HID enterprise features? → HID Mobile Access
- Want simplicity? → PassFlow

## Best Practices

### Always Provide Backup Credentials

**Phone batteries die**. Always issue a backup credential:

```bash
# Issue mobile credential (primary)
POST /api/3/people/12345/credentials
{
  &quot;credential_type_id&quot;: 9,
  &quot;value&quot;: &quot;passflow-id&quot;,
  &quot;enabled&quot;: true
}

# Issue PIN (backup)
POST /api/3/people/12345/credentials
{
  &quot;credential_type_id&quot;: 6,
  &quot;value&quot;: &quot;******&quot;,
  &quot;enabled&quot;: true
}
```

### Test Bluetooth Range

Before deploying mobile credentials:
- Test at each door location
- Verify reliable connection range
- Check for interference from metal doors, concrete walls
- Ensure readers are positioned for easy phone access

### User Training

Mobile credentials require user education:
- How to install the mobile app
- How to present phone to reader
- What to do if phone is dead (use backup PIN)
- How to re-enroll if changing phones

### Handle Device Changes

**When users get new phones:**

1. Disable old mobile credential
2. User enrolls new device in mobile app
3. Issue new mobile credential with new device ID
4. Test at a door before disabling old credential

```bash
# Disable old phone&#39;s credential
PUT /api/3/people/12345/credentials/cred_oldphone
{ &quot;enabled&quot;: false }

# Issue new phone&#39;s credential
POST /api/3/people/12345/credentials
{
  &quot;credential_type_id&quot;: 9,
  &quot;value&quot;: &quot;new-phone-passflow-id&quot;,
  &quot;enabled&quot;: true
}
```

### Consider Accessibility

Not everyone can use smartphones:
- Some users don&#39;t have smartphones
- Some have accessibility needs that make phone use difficult
- Always offer alternative credential type (card or PIN)

## Managing Mobile Credentials

### Disabling Mobile Credentials

Temporarily disable without deleting:

```bash
curl -X PUT &quot;https://api.doorflow.com/api/3/people/12345/credentials/cred_pf789&quot; \
  -H &quot;Authorization: Bearer YOUR_ACCESS_TOKEN&quot; \
  -H &quot;Content-Type: application/json&quot; \
  -d &#39;{
    &quot;person_credential&quot;: {
      &quot;enabled&quot;: false
    }
  }&#39;
```

**Use cases:**
- Lost or stolen phone
- User changing devices
- Temporary suspension

### Re-enabling Mobile Credentials

```bash
curl -X PUT &quot;https://api.doorflow.com/api/3/people/12345/credentials/cred_pf789&quot; \
  -H &quot;Authorization: Bearer YOUR_ACCESS_TOKEN&quot; \
  -H &quot;Content-Type: application/json&quot; \
  -d &#39;{
    &quot;person_credential&quot;: {
      &quot;enabled&quot;: true
    }
  }&#39;
```

### Deleting Mobile Credentials

Permanently remove:

```bash
curl -X DELETE &quot;https://api.doorflow.com/api/3/people/12345/credentials/cred_pf789&quot; \
  -H &quot;Authorization: Bearer YOUR_ACCESS_TOKEN&quot;
```

## Troubleshooting Mobile Credentials

**Mobile credential not working at door:**

1. **Check credential is enabled**
   ```bash
   GET /api/3/people/12345/credentials
   ```
   Verify `&quot;enabled&quot;: true`

2. **Check person has group membership**
   ```bash
   GET /api/3/people/12345
   ```
   Verify `group_ids` includes appropriate groups

3. **Check Bluetooth is enabled on phone**
   User must have Bluetooth enabled and mobile app running (may vary by platform)

4. **Check reader compatibility**
   Verify door reader supports mobile credentials (BLE/NFC capability)

5. **Re-enroll device**
   Sometimes re-enrolling in the mobile app solves connectivity issues

## Common Questions

**Q: Do mobile credentials work when phone is offline?**

A: Depends on the technology. Some Bluetooth credentials work offline for a limited time (credentials cached on reader). Consult HID/PassFlow documentation for specifics.

**Q: Can one person have multiple mobile credentials?**

A: You cannot create multiple credentials of the same type for a single person. Apple VAS is a nuance — a single credential can be used on both an iPhone and Apple Watch, but it is still one credential and cannot span multiple phones. If a user needs access on a new device, disable the old mobile credential and issue a new one.

**Q: What happens if phone battery dies?**

A: Mobile credential won&#39;t work. This is why backup PINs are essential.

**Q: Do I need a mobile app to use mobile credentials?**

A: Yes. HID Mobile Access requires HID&#39;s app. PassFlow requires PassFlow app. Users must install and enroll their device.

**Q: Can I see which device a person used in the events log?**

A: Yes. Events show which specific credential was used, allowing you to distinguish between different devices.

**Q: How quickly do mobile credentials provision?**

A: Very fast. Once the person enrolls their device in the mobile app and you issue the credential via API, access is typically granted within seconds.

## Quick Reference

**List credential types:**
```bash
GET /api/3/credential_types
```

**Create HID mobile credential:**
```bash
POST /api/3/people/{person_id}/credentials
Body: {
  &quot;credential_type_id&quot;: 8,
  &quot;value&quot;: &quot;hid-mobile-id&quot;,
  &quot;enabled&quot;: true
}
```

**Create PassFlow credential:**
```bash
POST /api/3/people/{person_id}/credentials
Body: {
  &quot;credential_type_id&quot;: 9,
  &quot;value&quot;: &quot;passflow-id&quot;,
  &quot;enabled&quot;: true
}
```

**Disable mobile credential:**
```bash
PUT /api/3/people/{person_id}/credentials/{credential_id}
Body: { &quot;enabled&quot;: false }
```

**Required OAuth scope:** `account.person` (write) or `account.person.readonly` (read)

## Next Steps

**Deep dive into HID Mobile Access:**
- [Issuing Mobile Passes for HID Mobile Access] - Complete invitation workflow, sequence diagram, and troubleshooting

**Need different credential types?**
- [Card Credentials] - Physical access cards
- [PIN Credentials] - Keypad codes for backup

**See it in action:**
- [Common Workflows] - Complete examples including mobile credential provisioning

