Get what a user owns before deleting them

gethttps://api.expiryedge.com/v1/user/dependencies/{userId}
bearer token (Firebase ID token only); role admin60/min
Request
curl 'https://api.expiryedge.com/v1/user/dependencies/u_4Np8cZe' \
  -H "Authorization: Bearer $EXPIRYEDGE_API_KEY"
Response
{
  "expiriesCount": 14,
  "assignedExpiriesCount": 1,
  "totalExpiriesCount": 15,
  "contactsCount": 6,
  "teamsCount": 1,
  "teams": [
    {
      "id": "tm_3Fh8qLx",
      "name": "Front Desk"
    }
  ],
  "assignedExpiries": [
    {
      "id": "exp_4Tq9sLm2",
      "name": "Dental license renewal"
    }
  ],
  "userData": {
    "email": "sam@northwinddental.com",
    "displayName": "Sam Ortiz",
    "role": "editor",
    "status": "active"
  }
}

Counts the user's owned and assigned expiries, contacts and team memberships.

Path parameters

  • userIdstringrequired

Returns

200
Dependency counts.
  • expiriesCountintegerrequired
    Expiries the user owns.
  • assignedExpiriesCountintegerrequired
    Expiries assigned to (but not owned by) the user.
  • totalExpiriesCountintegerrequired
  • contactsCountintegerrequired
  • teamsCountintegerrequired
  • teamsarray of objectsrequired
  • assignedExpiriesarray of objectsrequired
  • userDataobjectrequired

Errors

401
Missing, expired or invalid bearer token.
403
Authenticated, but your role or organization does not allow this action.
404
The record does not exist or is not in your organization.
405
The endpoint does not accept this HTTP method.
429
Too many requests for this endpoint from your IP. Wait Retry-After seconds.
500
Unexpected server error. Retry later; quote requestId to support.