Introduction
Contents
Overview Base URL Authentication Error Handling Contact and Support
Overview
Base URL
https://theliveforce.app/api/v1
Authentication
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.
Authorization: Basic base64_encode(client_id:access_token)
Error Handling
STATUS CODE | STATUS | SUMMARY |
---|---|---|
200 | OK | Everything worked as expected |
400 | Bad Request | Bad Request |
401 | Unauthorized | No valid API key provided. |
402 | Request Failed | The parameters were valid but the request failed. |
403 | Forbidden | The API key doesn’t have permissions to perform the request. |
404 | Not Found | The requested resource doesn’t exist. |
429 | Too Many Requests | Too many requests hit the API too quickly. We recommend an exponential backoff of your requests |
412 | Precondition Failed | Required data is not configured or not found |
500, 502, 503, 504 | Server Errors | Something went wrong on Liveforce’s end. (These are rare.) |
ERROR CODE | ERROR TYPE | SUMMARY | HANDLING ADVICE |
---|---|---|---|
4001 | INVALID_PARAMETER | A required parameter is missing or invalid | Check and correct the request parameters. |
4002 | UNPROCESSABLE_ENTITY | The request is well-formed, but there is a validation error. | Correct the data according to the error message. |
4003 | RESOURCE_NOT_FOUND | The requested resource could not be found. | Verify the resource ID in the request. |
4004 | UNAUTHORIZED_ACCESS | Authentication credentials are missing or invalid. | Ensure the correct credential is used. |
4005 | ACCESS_DENIED | The client does not have permission to access this resource. | Verify user permissions. |
4006 | DUPLICATE_DATA | The request is attempting to create data that already exists. | Verify that the data being submitted is unique. |
4007 | NOT_CONFIGURED | The required data for the request is not configured | Ensure the required data is correctly configured in the previous step before proceeding |
Contact and Support
Modified at 2024-09-16 16:07:44