Liveforce
    Liveforce
    • Introduction
    • Staff API Overview
      • List Staff Members
        GET
      • Get Staff Member Details
        GET
      • Create a Staff Member
        POST
      • Update a Staff Member
        PUT
    • Leads API Overview
      • List Leads
        GET
      • Get Lead Details
        GET
      • Leads Summary
        GET
      • Leads Count by Status
        GET
      • Leads Types
        GET
      • Lead Notes List
        GET
      • Lead Note Detail
        GET
      • Lead Notes Create
        POST
      • Lead Notes Update
        PUT
      • Lead Files
        GET
      • Upload Lead File
        POST
      • Generate Report
        GET
      • Generate CSV Report
        GET
    • Call Logs API Overview
      • List Call Logs
        GET
      • Get Call Log Detail
        GET
    • Tickets API Overview
      • List Tickets
        GET
      • Create a Ticket
        POST
      • Get Ticket Details
        GET
      • List Ticket Statuses
        GET
    • Deals Management API Overview
      • List Deals
        GET
      • Create a Deal
        POST
      • Update a Deal
        PUT
      • Get a Deal Details
        GET
      • List Deals Sources
        GET
      • List Deals Pipeline
        GET
      • Add a Deal Comment
        POST
      • Update a Deal Comment
        PUT
      • Add an Attachment
        POST
      • Delete an Attachment
        DELETE
      • List a Deal Services
        GET
      • Get a Deal Service Detail
        GET
      • Add a Deal Service
        POST
      • Update a Deal Service
        PUT

    Introduction

    Contents#

    Overview
    Base URL
    Authentication
    Error Handling
    Contact and Support

    Overview#

    The Liveforce API allows you to integrate with Liveforce's services and access various functionalities to enhance your application. This documentation provides information on how to interact with the API, including details about endpoints, request/response formats, and error handling.

    Base URL#

    All API requests should be made to the following base URL:
    https://theliveforce.app/api/v1

    Authentication#

    The Liveforce API uses Basic Authentication to authenticate requests. To authenticate, you must include an Authorization header with each API request. The header should contain the word Basic followed by a space and a base64-encoded string client_id:access_token.
    Obtaining Client ID and Access Token
    To access your client ID and access token, follow these steps:
    Log in to your Liveforce AI client panel.
    Navigate to the "Apps" module.
    Request access to the REST API.
    Your client ID and access token will be provided upon approval.
    Example of Authentication Header
    Authorization: Basic base64_encode(client_id:access_token)

    Error Handling#

    Liveforce follows standard HTTP response codes to convey the results of API requests. Here's how they break down:
    2xx Success: These codes confirm that your request was processed successfully.
    4xx Client-Side Errors: These codes indicate that the request was not processed due to an issue on the client's side, such as missing information or invalid data. It's important to review and fix these errors in your request.
    HTTP Status Code Summary
    STATUS CODESTATUSSUMMARY
    200OKEverything worked as expected
    400Bad RequestBad Request
    401UnauthorizedNo valid API key provided.
    402Request FailedThe parameters were valid but the request failed.
    403ForbiddenThe API key doesn’t have permissions to perform the request.
    404Not FoundThe requested resource doesn’t exist.
    429Too Many RequestsToo many requests hit the API too quickly. We recommend an exponential backoff of your requests
    412Precondition FailedRequired data is not configured or not found
    500, 502, 503, 504Server ErrorsSomething went wrong on Liveforce’s end. (These are rare.)
    Some 4xx errors also provide a specific error code that gives additional insight into what went wrong—like a declined transaction or an invalid request. This allows for more precise error handling in your application.
    Error Code Summary and Handling
    ERROR CODEERROR TYPESUMMARYHANDLING ADVICE
    4001INVALID_PARAMETERA required parameter is missing or invalidCheck and correct the request parameters.
    4002UNPROCESSABLE_ENTITYThe request is well-formed, but there is a validation error.Correct the data according to the error message.
    4003RESOURCE_NOT_FOUNDThe requested resource could not be found.Verify the resource ID in the request.
    4004UNAUTHORIZED_ACCESSAuthentication credentials are missing or invalid.Ensure the correct credential is used.
    4005ACCESS_DENIEDThe client does not have permission to access this resource.Verify user permissions.
    4006DUPLICATE_DATAThe request is attempting to create data that already exists.Verify that the data being submitted is unique.
    4007NOT_CONFIGUREDThe required data for the request is not configuredEnsure the required data is correctly configured in the previous step before proceeding

    Contact and Support#

    If you have any questions or need further assistance, please contact our support team at [email protected].
    Modified at 2024-09-16 16:07:44
    Next
    Staff API Overview
    Built with