Skip to content

Data Formats

Zachary Way edited this page May 30, 2023 · 5 revisions

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.

Request Payloads

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

application/json and text/json

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.

application/*+json

For the application/*+json content type, the request payload should follow the same JSON schema as mentioned above.

text/csv

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.

Response Data

The Krios API returns response data in the following formats:

Supported Content Types:

  • text/plain
  • application/json
  • text/json

text/plain, application/json, and 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.

Clone this wiki locally