Skip to content
PreviewNot live yet. APIs and SDKs on these pages may change before launch.

Users

Scopes users:read, users:write. Terms: Concepts.

Address a user by any alias: /apps/pidgefit-ios/users/by/external_id/u_8812.

{
"aliases": { "external_id": "u_8812", "crm_id": "c-5501" },
"tags": { "plan": "pro" },
"language": "en",
"timezone": "America/New_York",
"subscriptions": [
{ "id": "sub_2v8d", "type": "ios_push", "status": "active", "sdk": "MailPidgeLifecycleSDK/1.0.0", "lastSessionAt": "2026-11-24T18:02:11.000Z" },
{ "id": "sub_4m1q", "type": "email", "status": "active", "address": "jamie@example.com" }
],
"firstSessionAt": "2026-10-02T07:30:00.000Z",
"sessionCount": 41
}

Subscription type is ios_push, macos_push, android_push, web_push, windows_push, email or sms.

POST /api/v1/apps/{appId}/users

await mailpidge.users.create('pidgefit-ios', {
aliases: { external_id: 'u_8812' },
tags: { plan: 'pro' },
subscriptions: [{ type: 'email', address: 'jamie@example.com' }],
})

If a user with that alias exists, it is updated instead.

GET /api/v1/apps/{appId}/users/by/{aliasLabel}/{aliasValue}

PATCH /api/v1/apps/{appId}/users/by/{aliasLabel}/{aliasValue} with tags, language or timezone. A tag set to "" is removed.

DELETE /api/v1/apps/{appId}/users/by/{aliasLabel}/{aliasValue} erases the user with their subscriptions, events, feed and consent records. Returns 202; erasure finishes within 30 days.

POST /api/v1/apps/{appId}/users/by/{aliasLabel}/{aliasValue}/aliases with { "aliases": { "crm_id": "c-5501" } }. Up to 10 per user.

DELETE /api/v1/apps/{appId}/users/by/{aliasLabel}/{aliasValue}/aliases/{label}. external_id can’t be removed.

POST /api/v1/apps/{appId}/subscriptions/{subscriptionId}/transfer with { "to": { "external_id": "u_9001" } } moves a device to another user of the same app. Consent doesn’t move with it.