Data API
Upload JSON file
API Documentation
Data API
- GETGet datasets
- GETGet datasources
- GETGet datasource
- GETGet datasource uploads
- POSTStart ActiveCampaign synchronization
- POSTStart Agillic synchronization
- POSTStart Big Query synchronization
- POSTUpload CSV file
- POSTStart Google Analytics 4 synchronization
- POSTStart Google Cloud Storage synchronization
- POSTUpload JSON file
- POSTStart MSSQL synchronization
- POSTStart Naviga synchronization
- POSTStart SFTP synchronization
Model API
- GETGet models
- GETGet model
- GETGet model trainings
- POSTStart model training
- GETGet model training statistics: feature impact
- GETGet model training statistics: beeswarm
- GETGet model training statistics: feature dependence
- GETGet model training statistics: feature dependence with secondary feature
- GETGet model training statistics: waterfall data
Prediction API
Export API
Recommendation API
Data API
Upload JSON file
POST
/
api
/
data
/
v1.0
/
customer
/
{customerId}
/
dataset
/
{dataSetId}
/
datasource
/
json
/
{datasourceId}
/
upload
curl --request POST \
--url https://app.allyy.io/api/data/v1.0/customer/{customerId}/dataset/{dataSetId}/datasource/json/{datasourceId}/upload \
--header 'Authorization: Bearer <token>'
{
"meta": {
"errors": [
{
"code": "<string>",
"message": "<string>"
}
],
"validation": [
{
"property": "<string>",
"message": "<string>"
}
],
"info": {}
},
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"datasourceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": 1,
"processedLines": 123,
"contactsInserted": 123,
"sizeBytes": 123,
"insertionExceptions": {
"warnings": {},
"errors": {}
},
"started": "2023-11-07T05:31:56Z",
"finished": "2023-11-07T05:31:56Z",
"lastSyncedEntityDate": "2023-11-07T05:31:56Z",
"datasourceType": 123,
"warnings": [
{
"property": "<string>",
"message": "<string>"
}
],
"isPostProcessed": true,
"resynchronize": true
}
}
Authorizations
The access token received from the authorization server in the OAuth 2.0 flow.
Path Parameters
Response
202
text/plain
Accepted
Available options:
1
, 2
, 3
, 4
, 6
, 10
curl --request POST \
--url https://app.allyy.io/api/data/v1.0/customer/{customerId}/dataset/{dataSetId}/datasource/json/{datasourceId}/upload \
--header 'Authorization: Bearer <token>'
{
"meta": {
"errors": [
{
"code": "<string>",
"message": "<string>"
}
],
"validation": [
{
"property": "<string>",
"message": "<string>"
}
],
"info": {}
},
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"datasourceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": 1,
"processedLines": 123,
"contactsInserted": 123,
"sizeBytes": 123,
"insertionExceptions": {
"warnings": {},
"errors": {}
},
"started": "2023-11-07T05:31:56Z",
"finished": "2023-11-07T05:31:56Z",
"lastSyncedEntityDate": "2023-11-07T05:31:56Z",
"datasourceType": 123,
"warnings": [
{
"property": "<string>",
"message": "<string>"
}
],
"isPostProcessed": true,
"resynchronize": true
}
}