-
Notifications
You must be signed in to change notification settings - Fork 0
Data Formats
The Krios API primarily communicates using JSON for both request payloads and response data. This page provides an overview of the data formats used in the Krios API.
When making API requests to the Krios API, you should format the request payloads according to the following specifications:
- Supported Content Types:
application/json
text/json
application/*+json
text/csv
For application/json
and text/json
content types, the request payload should adhere to the following JSON schema:
{
"type": "object",
"properties": {
"property1": {
"type": "string"
},
"property2": {
"type": "integer"
},
...
},
"additionalProperties": false
}
Replace "property1", "property2", and so on with the actual property names and their respective data types specific to your API requests.
For the application/*+json content type, the request payload should follow the same JSON schema as mentioned above.
For the text/csv content type, the request payload should be formatted as comma-separated values (CSV) with each line representing a separate record. The first line should contain the column headers, and subsequent lines should contain the corresponding values.
The Krios API returns response data in the following formats:
Supported Content Types:
- text/plain
- application/json
- text/json
For text/plain, application/json, and text/json content types, the response data adheres to the following JSON schema:
{
"type": "object",
"properties": {
"property1": {
"type": "string"
},
"property2": {
"type": "integer"
},
...
},
"additionalProperties": false
}
Replace "property1", "property2", and so on with the actual property names and their respective data types specific to your API responses.