Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Version History

« Previous Version 5 Next »

Authentication

Zapier authentication.

Login

Zapier login.

Request

POST /api/login

Header parameters

Parameter

Value

Accept

STRING REQUIRED

application/json

Path parameters

None

Body parameters

Parameter

Value

Email

STRING REQUIRED

The email of the user

E.g. admin@thiio.com

Password

STRING REQUIRED

The password for the email

E.g. 123456789

Domain

STRING REQUIRED

User’s domain

E.g. https://my-domain.thiio.io

Response

200 OK

{
  "data": {
    "user": {
      ...
    },
    "token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJhdWQiOiIxIiwianRpIjoiNDUxMzA2YTkzZDYzY2Q3MTdhNTdmNTNkYjY3MDkxNDgzZDNjMzEyYmMyMTEyMGM5M2IyYWM3ZjJhODkyNjAzOTE1NDBlYzVmMmIxZGFlYWQiLCJpYXQiOjE3MjM1NzkzODAuNzYxNzc2LCJuYmYiOjE3MjM1NzkzODAuNzYxNzgxLCJleHAiOjE4ODEzNDU3ODAuNzM1MzQzLCJzdWIiOiIxIiwic2NvcGVzIjpbXX0.d4fwmsSomnRsDv7l1Ly86D8hlpz2RHPbq37bOuj7Qf_ngoVw3ffe_vbuqI0nQ0tqD6fy5Cqdcycevk3mr52SpcY0hiuDwBHW50w1qSbheKGIYtQOLqA7pNzaAWa5UWFTRQmja1FxZpGq_Iwp3IPztHgM_zTcSGgsclrbn7NT69sGw04hbGxkr2p_q5vMjUyUaC0XSLq5cIcKNPTnna_oVJdN4_gf4G6Q4lNfij5FdE5FZSohnX2r5IrfSgoZdX42jJIsT6SI1vcIrDkqvNDU1XWcE2H1epRQJtcm9a7zvuxWMaQdJIw3Ih7UNe7FRewtxCsQUSgALRkyuZLnhhhKgFtcS-Vx0dY6Mk3sijvpeW4ruYTxuyI85g5E4MFwlQcbYpHLLzWSCLLQqtaiqTXuR94cWyIv0Eyz1td3bLa-26ki9d-zChzkMtze-oO48dPshw1zEIpWeUuE1MnwQ7cqgDLreKtcwKsGxNh5ZcuA0OW7I2Ai6kgMDOX7MNG9DFuOU7YI1qi3KvZtSFxd1C6BRXHzcDIHeJcT_-FC996kg46kNeVW5F7U-bpAFdKoXDPw5sP93KmDv7KVoOCxWjHDLKtlw_l2KnYwLvf4dyiQOxqB0m8SVZUF9dTdRfPgwfIfLAS5iBFzmCNzclk-wKVXiuFULykDAlk4t3Vg9xYFEa8",
    "expires": 1881345780,
    "setup_finished": true,
    "integration_uuid": "92e1234af-d123-4ece-b222-54a1437x4831a"
  }
}

Check user logged in

Zapier check user logged.

Request

GET /api/check

Header parameters

Parameter

Value

Accept

STRING REQUIRED

application/json

Authorization

STRING REQUIRED

Base 64 encoded string containing the token value got it from login endpoint. The header value should be Bearer <token>

Path parameters

None

Body parameters

None

Response

200 OK

{
  "user": {
    "id": 1,
    "uuid": "32ce1a5a-8e9c-4a20-afff-57c1deaee136",
    "contact_id": 1,
    "type": "customer_employee",
    "email": "admin@thiio.com",
    "email_verified_at": null,
    "password": "$2y$10$hg98Bo7a9QFwZPGOf.xRe.9ZXfgb9N2NHfeW9vDHQiQr37gC.MOY2",
    "metadata": {
      "language": "en",
      "dashboards": {
        "default": "set_up",
        "favorites": [
          "set_up",
          "default"
        ]
      },
      "date_format": "DD/MM/YYYY",
      "workspace_type": "advanced",
      "test_token_time": 30,
      "worker_attributes": {
        "lucas_uri": "agent_1_admin",
        "contact_uri": "client:1_admin",
        "inbound_calls": 0,
        "inbound_conversations": 0
      }
    },
    "integrations_meta": null,
    "dialer_extension": null,
    "dialer_worker_sid": "WK4a1887b78f41363a21d5e03f3171a873",
    "dialer_activity_sid": "WA993d72c19cd2b35bfc6e2cc9b2690348",
    "dialer_activity_name": "Idle",
    "remember_token": null,
    "welcome_email_sent": 0,
    "two_factor_enabled": 0,
    "two_factor_secret_key": null,
    "deactivated_at": null,
    "created_at": "2024-06-21 00:23:02",
    "updated_at": "2024-06-24 12:33:14",
    "deleted_at": null,
    "uri": "client:1_admin"
  }
}

  • No labels