Switch user accounts

POST /api/v1/me/switch-account

Headers

application/json

Body Required

Responses

POST /api/v1/me/switch-account
curl \
 -X POST https://api.plannrcrm.com/api/v1/me/switch-account \
 -H "Authorization: Bearer {OAUTH_ACCESS_TOKEN or PERSONAL_ACCESS_TOKEN}" \
 -H "Content-Type: application/json" \
 -H "Accept: application/json" \
 -d '{"account_uuid":"2f0b3b0b-9290-4249-b2f7-f1dc2df7c055"}'
Request examples
# Headers
Authorization: Bearer {OAUTH_ACCESS_TOKEN or PERSONAL_ACCESS_TOKEN}
Content-Type: application/json
Accept: application/json

# Payload
{
  "account_uuid": "2f0b3b0b-9290-4249-b2f7-f1dc2df7c055"
}
Response examples (200)
{
  "name": "Gareth Thompson",
  "type": "standard",
  "uuid": "a2adba9c-642e-4af4-9198-092d4dd699ff",
  "email": "gareth@codepotato.co.uk",
  "last_name": "Thompson",
  "photo_url": "https://eu.ui-avatars.com/api/?name=Gareth+Thompson",
  "created_at": "2024-10-16T11:10:12+01:00",
  "first_name": "Gareth",
  "updated_at": "2024-10-16T11:10:12+01:00",
  "otp_pending": false,
  "current_login": {
    "firm": "App\\Http\\Resources\\FirmResource",
    "uuid": "ed680a90-0347-431d-bf85-ccc2a842b42f",
    "email": "gareth@plannrcrm.com",
    "account": "App\\Http\\Resources\\AccountResource",
    "primary": false,
    "last_name": "Thompson",
    "created_at": "2024-10-16T11:10:12+01:00",
    "expires_at": "2025-01-24T11:10:12+00:00",
    "first_name": "Gareth",
    "updated_at": "2024-10-16T11:10:12+01:00",
    "goals_enabled": true,
    "tasks_enabled": true,
    "wealth_enabled": true,
    "is_impersonated": false,
    "welcome_enabled": true,
    "factfind_enabled": true,
    "has_write_permission": false,
    "has_delete_permission": false,
    "receives_unread_notifications_email": true
  },
  "current_account": {
    "firm": "App\\Http\\Resources\\FirmResource",
    "name": "Gareth Thompson",
    "role": "client",
    "tags": "App\\Http\\Resources\\TagResource",
    "type": "client",
    "uuid": "8f41140a-0efd-4b90-bd18-fa45c9a44b42",
    "email": "gareth@codepotato.co.uk",
    "groups": "App\\Http\\Resources\\GroupResource",
    "owners": "App\\Http\\Resources\\AccountResource",
    "last_name": "Thompson",
    "created_at": "2024-10-16T11:10:12+01:00",
    "first_name": "Gareth",
    "updated_at": "2024-10-16T11:10:12+01:00",
    "with_login": true,
    "custom_fields": "App\\Http\\Resources\\CustomFieldValueResource",
    "introduced_by": "App\\Http\\Resources\\AccountResource",
    "primary_email": "App\\Http\\Resources\\ContactDetailResource",
    "can_be_deleted": "false",
    "assigned_adviser": "App\\Http\\Resources\\AccountResource",
    "next_review_date": "2024-10-16T11:10:12+01:00",
    "has_joint_account": true,
    "current_time_entry": "App\\Http\\Resources\\TimeEntryResource",
    "first_contact_date": "2024-10-16T11:10:12+01:00",
    "external_references": "App\\Http\\Resources\\ExternalReferenceResource",
    "assigned_paraplanner": "App\\Http\\Resources\\AccountResource",
    "previous_review_date": "2024-10-16T11:10:12+01:00",
    "primary_phone_number": "App\\Http\\Resources\\ContactDetailResource",
    "assigned_administrator": "App\\Http\\Resources\\AccountResource",
    "anniversary_review_date": "2024-10-16T11:10:12+01:00"
  },
  "two_factor_type": "sms",
  "otp_confirmed_at": "2024-10-16T11:10:12+01:00",
  "two_factor_mobile": true,
  "current_time_entry": {
    "name": "Research",
    "uuid": "27f8920e-68d2-453c-a4c0-288ee917b81e",
    "end_date": "2024-10-16T11:10:12+01:00",
    "is_active": "1",
    "trackable": "Client",
    "start_date": "2024-10-16T11:10:12+01:00"
  },
  "session_expires_at": "2024-10-16T11:10:12+01:00",
  "two_factor_enabled": true,
  "should_auto_save_notes": true,
  "sms_two_factor_enabled": true,
  "two_factor_mobile_meta": {
    "country": "GB",
    "formatted": "0333 090 3630"
  }
}