Sla CRUD

Get SLA URL : api/get-enforcer/sla/{slaId} Method : GET Response : { “success”: true, “data”: { “sla”: { “id”: 84, “name”: “Test Sla”, “status”: 1, “order”: 1, “matcher”: “all”, “priority_id”: 1, “respond_within”: “diff::2~minute”, “resolve_within”: “diff::2~minute”, “business_hour_id”: 1, “send_email_notification”: 0, “send_app_notification”: 0, “is_default”: 0, “internal_notes”: “”, “created_at”: “2019-12-09 11:12:15”, “updated_at”: “2019-12-09 11:12:15”, “reminders”: { “approaching”: [{ “id”: […]

Read More

SLA reminders

NOTE: These API is going to change in near future. Not meant for extenal purpose for now Gets SLA Reminders URL : api/admin/sla-reminders/slaId Method : GET Response : { “id”: 58, “reminders”: { “approach”: [{ “id”: 1, “reminder_delta”: 10, “reminder_receivers”: { “agents”: [{ “id”: 1, “name”: “demo admin” }], “agent_types”: [{ “id”: 1, “name”: “Department […]

Read More

Form Group

URL : api/post-form-group Method : POST Query Parameters : None Body Parameters :   Parameter Type Possible values Optional/Required Description name string Required Name of the form group form-fields array Array of objects Required Form fields which are updated or newly created. Please read below for detailed explanation help_topic_ids array Optional array of help topic […]

Read More

Login

Description: Authenticates a user and gives his/her profile information back if successful. URL: api/login Method: POST Response Format: JSON Parameters : Name Data Type Required / Optional Description username String Required Username of the Agent password String Required Password of the Agent Success Response : { “success”: true, “data”: {     “token”: “eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjEsImlzcyI6Imh0dHA6Ly9sb2NhbGhvc3Q6ODAwMC9hcGkvbG9naW4iLCJpYXQiOjE1MTg2MDI1NTAsImV4cCI6MTUxODYwMjc5MCwibmJmIjoxNTE4NjAyNTUwLCJqdGkiOiJpTjFMSkl5M0U2UXB5aUpaIn0.QrXxRYlowT4v2BayTNvapnHUe1vMJ_NlXydgJoS7y1E”,     “user”: […]

Read More

Refresh Token

URL: api/refresh Method: get Response Format: JSON Parameters: Name Data Type Required / Optional Description token String Required Old token Success Response { “success”: true, “data”: {     “token”: “eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjEsImlzcyI6Imh0dHA6Ly9sb2NhbGhvc3Q6ODAwMC9hcGt3uPtvQARsvo” } }

Read More

Logout

URL: api/logout Method: get Response Format: JSON Parameters: Name Data Type Required / Optional Description token String Required token Success Response { “success”: true, “message”: “Successfully logged out” }

Read More

Social login redirect

URL: social/login/redirect/{provider} Method: get Response Format: Redirect Description: Provider name has to be provided by frontend for the backend to authenticate based on the given provider. Parameters: None

Read More

Social login

URL: social/login/{provider} Method: get Response Format: JSON Description: Gets redirected by the provider to this route, which in change redirects to ‘/social/auth?token=’, from which token has to be obtained. Parameters: None

Read More

Active Social Login Providers

URL: api/active-providers Method: GET Response Format: JSON Description: Gets a list of active social logins Parameters: None Response: { “Success”:true, “Data”: {“providers” :[‘google’, ‘facebook ’] }}

Read More

Forgot Password

URL: api/password/email Method: post Response Format: JSON Description :  Sends set password link to the given email ID if that email is register Parameters: Name Data Type Required / Optional Description email String Required Password reset token which is sent as email Response: {    “success”: true,    “message”: “We can’t find a user with that email […]

Read More