Guide: Having a custom response schema

For API requests, Cohesive supports semantic instructions for structuring the API response. You can specify a JSON response format in the request, and Cohesive will extract and return the data in the requested structure.

Provide comments (via //<comment>) to help describe or provide more instructional context into the data request

Example: time-based metric import

Note: this schema is available as a template. This example simply illustrates how it could be custom-defined.

For the above metric data, we could pass in a request specifying the JSON response format as below:

Cohesive would then return all of the processed metrics in the requested response structure:

Last updated