Batch Requests
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Header parameters
x-vaix-client-idstringRequired
Custom client header, the value should be the name of the group the user belongs to
x-vaix-authentication-methodstringOptional
Authentication method to be used, supported values [vaix, iam]. Defaults to vaix
Body
API response
Responses
200
OK
application/json
API response
statusstring · enumOptionalPossible values:
The status of the request
400
Bad Request
application/json
401
Unauthorized
application/json
403
Forbidden
application/json
406
Not Acceptable
application/json
413
Request Entity Too Large
application/json
422
Unprocessable Entity
application/json
425
Too Early
application/json
500
Internal Server Error
application/json
post/api/batch
POST /api/batch HTTP/1.1
Host: api.vaix.ai
Authorization: Bearer YOUR_SECRET_TOKEN
x-vaix-client-id: text
Content-Type: application/json
Accept: */*
Content-Length: 98
{
"requests": [
{
"body_params": {},
"name": "text",
"operation_id": "text",
"params": {},
"path_params": {}
}
]
}{
"data": [
{
"body": {
"data": [
{
"begin": "2021-07-02T19:00:00Z",
"confidence": 1,
"country": "International",
"country_id": "sr:category:4",
"event_id": "sr:match:21516115",
"event_type": null,
"league": "Euro Cup",
"league_id": "sr:tournament:1",
"participant_ids": [
"sr:competitor:4717",
"sr:competitor:4707"
],
"participants": [
"Belgium",
"Italy"
],
"sport": "Soccer",
"sport_id": "sr:sport:1",
"status": "closed",
"total_bets": 6663
},
{
"begin": "2021-07-02T16:00:00Z",
"confidence": 0.9004803362353647,
"country": "International",
"country_id": "sr:category:4",
"event_id": "sr:match:21514503",
"event_type": null,
"league": "Euro Cup",
"league_id": "sr:tournament:1",
"participant_ids": [
"sr:competitor:4699",
"sr:competitor:4698"
],
"participants": [
"Switzerland",
"Spain"
],
"sport": "Soccer",
"sport_id": "sr:sport:1",
"status": "closed",
"total_bets": 6000
}
],
"status": "success"
},
"name": "1",
"status_code": 200
},
{
"body": {
"error": "invalid value for count: cannot be less than 1, got -2",
"status": "error"
},
"name": "2",
"status_code": 400
}
],
"status": "success"
}Last updated
Was this helpful?