API
Page that describes the Datum API
Last updated
Page that describes the Datum API
Last updated
GET
https://api.jelou.ai/v2/databases
Name | Type | Description |
---|---|---|
{
"message": [
"Databases retrieved succesfully!"
],
"statusMessage": "success",
"status": 1,
"data": [
{
"id": 123456789,
"name": "JELOU TEST",
"slug": "jeloutest",
"slugInDriver": "company-135-jeloutest",
"schemaType": "jsonschema",
"driver": "elastic",
"description": "JELOU TEST",
"companyId": 135,
"schema": {
"type": "object",
"required": [
"total",
"name"
],
"properties": {
"total": {
"type": "string",
"database": "text"
},
"name": {
"type": "string",
"database": "text"
},
"phone": {
"type": "string",
"database": "text"
},
"city": {
"type": "string",
"database": "text"
},
"createdAt": {
"type": "string",
"format": "date-time",
"database": "date"
},
"updatedAt": {
"type": "string",
"format": "date-time",
"database": "date"
},
"referenceId": {
"type": "string",
"database": "keyword"
}
},
"additionalProperties": false
},
"state": true,
"isFavorite": false,
"isVisible": true,
"createdAt": "2023-08-02T15:08:14.000Z",
"updatedAt": "2023-08-02T15:08:14.000Z",
"metadata": {
"id": 125888,
"databaseId": 123456789,
"databaseMetadataSyncId": 1288,
"size": 225,
"rowsCount": 0,
"rowsIncrementPercentage": 0,
"updatedAt": "2023-08-28T08:00:04.000Z",
"createdAt": "2023-08-28T08:00:04.000Z"
}
}
]
}
Unauthorized
{
"message": [
"We are having trouble processing your request. Please try again later."
],
"statusMessage": "failed",
"status": 0,
"error": {
"code": "E0000",
"key": "UNKNOWN_ERROR",
"description": "Error to be thrown when it couldn't be determined the reason of failure",
"developerMessages": {
"es": "Error inesperado occurido, revisar logs.",
"en": "Unexpected error occurred, check logs."
},
"clientMessages": {
"es": "Estamos teniendo problemas procesando la solicitud. Por favor intenta mas tarde.",
"en": "We are having trouble processing your request. Please try again later."
}
}
}
GET
https://api.jelou.ai/v2/databases/DATABASE_ID
{
"message": [
"Database succesfully!"
],
"statusMessage": "success",
"status": 1,
"data": {
"id": 123456789,
"name": "JELOU TEST",
"slug": "jeloutest",
"slugInDriver": "company-135-jeloutest",
"schemaType": "jsonschema",
"driver": "elastic",
"description": "JELOU TEST",
"companyId": 135,
"schema": {
"type": "object",
"required": [
"total",
"name"
],
"properties": {
"total": {
"type": "string",
"database": "text"
},
"name": {
"type": "string",
"database": "text"
},
"phone": {
"type": "string",
"database": "text"
},
"city": {
"type": "string",
"database": "text"
},
"createdAt": {
"type": "string",
"format": "date-time",
"database": "date"
},
"updatedAt": {
"type": "string",
"format": "date-time",
"database": "date"
},
"referenceId": {
"type": "string",
"database": "keyword"
}
},
"additionalProperties": false
},
"state": true,
"isFavorite": false,
"isVisible": true,
"createdAt": "2023-08-02T15:08:14.000Z",
"updatedAt": "2023-08-02T15:08:14.000Z",
"columns": [
{
"id": 1,
"databaseId": 123,
"name": "Total",
"description": "Description1",
"key": "total",
"type": "boolean",
"isSortable": false,
"isRequired": false,
"isEditable": true,
"order": 0,
"state": 1,
"updatedAt": "2023-08-02T15:08:14.000Z",
"createdAt": "2023-08-02T15:08:14.000Z",
"isVisible": true,
"isMetadata": false,
"filters": []
},
{
"id": 2,
"databaseId": 123,
"name": "Client name",
"description": "Client name",
"key": "name",
"type": "text",
"isSortable": false,
"isRequired": false,
"isEditable": true,
"order": 1,
"state": 1,
"updatedAt": "2023-08-02T15:08:14.000Z",
"createdAt": "2023-08-02T15:08:14.000Z",
"isVisible": true,
"isMetadata": false,
"filters": []
},
{
"id": 3,
"databaseId": 123,
"name": "Telephone",
"description": "Telephone",
"key": "phone",
"type": "text",
"isSortable": false,
"isRequired": false,
"isEditable": true,
"order": 2,
"state": 1,
"updatedAt": "2023-08-02T15:08:14.000Z",
"createdAt": "2023-08-02T15:08:14.000Z",
"isVisible": true,
"isMetadata": false,
"filters": []
},
{
"id": 4,
"databaseId": 123,
"name": "City",
"description": "City",
"key": "city",
"type": "text",
"isSortable": false,
"isRequired": false,
"isEditable": true,
"order": 3,
"state": 1,
"updatedAt": "2023-08-02T15:08:14.000Z",
"createdAt": "2023-08-02T15:08:14.000Z",
"isVisible": true,
"isMetadata": false,
"filters": []
},
{
"id": 5,
"databaseId": 123,
"name": "Created At",
"description": "Row created at",
"key": "createdAt",
"type": "date-time",
"isSortable": false,
"isRequired": false,
"isEditable": true,
"order": 4,
"state": 1,
"updatedAt": "2023-08-02T15:08:14.000Z",
"createdAt": "2023-08-02T15:08:14.000Z",
"isVisible": true,
"isMetadata": false,
"filters": []
},
{
"id": 6,
"databaseId": 123,
"name": "Updated At",
"description": "Row updatedat",
"key": "updatedAt",
"type": "date-time",
"isSortable": false,
"isRequired": false,
"isEditable": true,
"order": 5,
"state": 1,
"updatedAt": "2023-08-02T15:08:14.000Z",
"createdAt": "2023-08-02T15:08:14.000Z",
"isVisible": true,
"isMetadata": false,
"filters": []
},
{
"id": 7,
"databaseId": 123,
"name": "Client ID",
"description": "Client ID",
"key": "referenceId",
"type": "text",
"isSortable": false,
"isRequired": false,
"isEditable": true,
"order": 6,
"state": 1,
"updatedAt": "2023-08-02T15:08:14.000Z",
"createdAt": "2023-08-02T15:08:14.000Z",
"isVisible": true,
"isMetadata": false,
"filters": []
}
],
"metadata": {
"id": 11111,
"databaseId": 123456789,
"databaseMetadataSyncId": 1111,
"size": 225,
"rowsCount": 0,
"rowsIncrementPercentage": 0,
"rowLastUpdatedAt": null,
"rowLastCreatedAt": null,
"updatedAt": "2023-08-28T08:00:04.000Z",
"createdAt": "2023-08-28T08:00:04.000Z"
},
"filters": []
}
}
{
"message": [
"We are having trouble processing your request. Please try again later."
],
"statusMessage": "failed",
"status": 0,
"error": {
"code": "E0000",
"key": "UNKNOWN_ERROR",
"description": "Error to be thrown when it couldn't be determined the reason of failure",
"developerMessages": {
"es": "Error inesperado occurido, revisar logs.",
"en": "Unexpected error occurred, check logs."
},
"clientMessages": {
"es": "Estamos teniendo problemas procesando la solicitud. Por favor intenta mas tarde.",
"en": "We are having trouble processing your request. Please try again later."
}
}
}
{
"message": [
"Database not found."
],
"statusMessage": "failed",
"status": 0,
"error": {
"code": "E1035",
"key": "DATABASE_NOT_FOUND",
"description": "Error to be thrown when database could not be found.",
"developerMessages": {
"es": "No se pudo encontrar la base de datos.",
"en": "Database not found."
},
"clientMessages": {
"es": "No se pudo encontrar la base de datos.",
"en": "Database not found."
}
}
}
POST
https://api.jelou.ai/v2/databases/DATABASE_ID/rows
{
"message": [
"Row inserted successfully!"
],
"statusMessage": "success",
"status": 1,
"data": {
"total": "123",
"name": "Jelou",
"phone": "593987592790",
"referenceId": "593987592790",
"city": "Guayaquil",
"createdAt": "2023-04-20T22:07:27.640Z",
"updatedAt": "2023-04-20T22:07:27.640Z",
"_id": "d3987f23-631b-4eeb-b5b2-3369b687e922"
}
}
{
"data": [
{
"instancePath": "/createdAt",
"schemaPath": "#/properties/createdAt/format",
"keyword": "format",
"params": {
"format": "date-time"
},
"message": "must match format \"date-time\""
}
],
"message": [
"The column could not be created in the database."
],
"statusMessage": "failed",
"status": 0,
"error": {
"code": "E1041",
"key": "ROW_INSERT_ERROR",
"description": "Error to be thrown when row has errors to insert.",
"developerMessages": {
"es": "No se pudo crear la columna en la base de datos.",
"en": "The column could not be created in the database.",
"pt": "A coluna não pôde ser criada no banco de dados."
},
"clientMessages": {
"es": "No se pudo crear la columna en la base de datos.",
"en": "The column could not be created in the database.",
"pt": "A coluna não pôde ser criada no banco de dados."
}
}
}
{
"message": [
"We are having trouble processing your request. Please try again later."
],
"statusMessage": "failed",
"status": 0,
"error": {
"code": "E0000",
"key": "UNKNOWN_ERROR",
"description": "Error to be thrown when it couldn't be determined the reason of failure",
"developerMessages": {
"es": "Error inesperado occurido, revisar logs.",
"en": "Unexpected error occurred, check logs."
},
"clientMessages": {
"es": "Estamos teniendo problemas procesando la solicitud. Por favor intenta mas tarde.",
"en": "We are having trouble processing your request. Please try again later."
}
}
}
For the following requests, the record ID is necessary. The record ID is represented by the "_id" field in all operations. This ID is unique and is generated upon record creation.
GET
https://api.jelou.ai/v2/databases/DATABASE_ID/rows/ROW_ID
{
"message": [
"Row show successfully!"
],
"statusMessage": "success",
"status": 1,
"data": {
"total": "123",
"name": "Jelou",
"phone": "593987592790",
"referenceId": "593987592790",
"city": "Guayaquil",
"createdAt": "2023-04-20T22:07:27.640Z",
"updatedAt": "2023-04-20T22:07:27.640Z",
"_id": "d3987f23-631b-4eeb-b5b2-3369b687e922"
}
}
{
"data": {
"message": {
"indexId": "11853ec-82d3-4528-990b-ad2eed63b263",
"indexName": "company-135-jeloutest"
}
},
"message": [
"The column could not be displayed in the database."
],
"statusMessage": "failed",
"status": 0,
"error": {
"code": "E1044",
"key": "ROW_SHOW_ERROR",
"description": "Error to be thrown when row has errors to show rows.",
"developerMessages": {
"es": "No se pudo mostrar la columna en la base de datos.",
"en": "The column could not be displayed in the database.",
"pt": "A coluna não pôde ser exibida no banco de dados."
},
"clientMessages": {
"es": "No se pudo mostrar la columna en la base de datos.",
"en": "The column could not be displayed in the database.",
"pt": "A coluna não pôde ser exibida no banco de dados."
}
}
}
{
"message": [
"We are having trouble processing your request. Please try again later."
],
"statusMessage": "failed",
"status": 0,
"error": {
"code": "E0000",
"key": "UNKNOWN_ERROR",
"description": "Error to be thrown when it couldn't be determined the reason of failure",
"developerMessages": {
"es": "Error inesperado occurido, revisar logs.",
"en": "Unexpected error occurred, check logs."
},
"clientMessages": {
"es": "Estamos teniendo problemas procesando la solicitud. Por favor intenta mas tarde.",
"en": "We are having trouble processing your request. Please try again later."
}
}
}
PUT
https://api.jelou.ai/v2/databases/DATABASE_ID/rows/ROW_ID
{
"message": [
"Row show successfully!"
],
"statusMessage": "success",
"status": 1,
"data": {
"total": "123",
"name": "Jelou",
"phone": "593987592790",
"referenceId": "593987592790",
"city": "Guayaquil",
"createdAt": "2023-04-20T22:07:27.640Z",
"updatedAt": "2023-04-20T22:07:27.640Z",
"_id": "d3987f23-631b-4eeb-b5b2-3369b687e922"
}
}
{
"data": {
"message": {
"indexId": "11853ec-82d3-4528-990b-ad2eed63b263",
"indexName": "company-135-jeloutest"
}
},
"message": [
"The column could not be displayed in the database."
],
"statusMessage": "failed",
"status": 0,
"error": {
"code": "E1044",
"key": "ROW_SHOW_ERROR",
"description": "Error to be thrown when row has errors to show rows.",
"developerMessages": {
"es": "No se pudo mostrar la columna en la base de datos.",
"en": "The column could not be displayed in the database.",
"pt": "A coluna não pôde ser exibida no banco de dados."
},
"clientMessages": {
"es": "No se pudo mostrar la columna en la base de datos.",
"en": "The column could not be displayed in the database.",
"pt": "A coluna não pôde ser exibida no banco de dados."
}
}
}
{
"message": [
"We are having trouble processing your request. Please try again later."
],
"statusMessage": "failed",
"status": 0,
"error": {
"code": "E0000",
"key": "UNKNOWN_ERROR",
"description": "Error to be thrown when it couldn't be determined the reason of failure",
"developerMessages": {
"es": "Error inesperado occurido, revisar logs.",
"en": "Unexpected error occurred, check logs."
},
"clientMessages": {
"es": "Estamos teniendo problemas procesando la solicitud. Por favor intenta mas tarde.",
"en": "We are having trouble processing your request. Please try again later."
}
}
}
DELETE
https://api.jelou.ai/v2/databases/DATABASE_ID/rows/ROW_ID
{
"message": [
"Row deleted successfully!"
],
"statusMessage": "success",
"status": 1,
"data": {
"_id": "119853ec-82d3-4528-990b-ad2eed63b263"
}
}
{
"data": {
"message": {
"indexId": "1192d3-4528-990b-ad2eed63b263",
"indexName": "company-135-jeloutest"
}
},
"message": [
"The column could not be deleted in the database."
],
"statusMessage": "failed",
"status": 0,
"error": {
"code": "E1045",
"key": "ROW_DELETE_ERROR",
"description": "Error to be thrown when row has errors to delete.",
"developerMessages": {
"es": "No se pudo eliminar la columna en la base de datos.",
"en": "The column could not be deleted in the database.",
"pt": "A coluna não pôde ser apagada no banco de dados."
},
"clientMessages": {
"es": "No se pudo eliminar la columna en la base de datos.",
"en": "The column could not be deleted in the database.",
"pt": "A coluna não pôde ser apagada no banco de dados."
}
}
}
{
"message": [
"We are having trouble processing your request. Please try again later."
],
"statusMessage": "failed",
"status": 0,
"error": {
"code": "E0000",
"key": "UNKNOWN_ERROR",
"description": "Error to be thrown when it couldn't be determined the reason of failure",
"developerMessages": {
"es": "Error inesperado occurido, revisar logs.",
"en": "Unexpected error occurred, check logs."
},
"clientMessages": {
"es": "Estamos teniendo problemas procesando la solicitud. Por favor intenta mas tarde.",
"en": "We are having trouble processing your request. Please try again later."
}
}
}
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Field | Type | Description |
---|---|---|
Field | Type | Description |
---|---|---|
shouldPaginate
String
Paginate the results
DATABASE_ID*
String
Database ID
DATABASE_ID*
String
Database ID
limit
Number
Number of records to retrieve
page
NUmber
Page number to retrieve
fields*
String
Fields that the record will have to insert
DATABASE_ID*
String
Database ID
ROW_ID*
String
Row ID
DATABASE_ID*
String
Database ID
ROW_ID*
String
Row ID
fields*
String
Fields to be updated
DATABASE_ID*
String
Database ID
ROW_ID*
String
Row ID
id
String
Database ID
name
String
Database name
description
String
Database description
schema
Object
Database schema, for more information, check schema structure.
state
Boolean
Database state. True=Active| False =Deleted
createdAt
Date
Database creation date
updatedAt
Date
Database update date
columns
Array
Database columns. Name, description, and order information to present on Datum.
metadata
Array
Database metadata. Metadata to be presented in Datum
type
String
Scheme type
required
Array
Array of Strings, the fields that are mandatory to insert a record are defined.
properties
Object
Each element is a field in the database, and within each field, 'type' defines the data type of the element.