API interaction

Tomedes APIs expect data in JSON format and respond with the same format.

Request:

It is required to pass api-key in the header to make the successful API call. In case you lost the API Key, Tomedes support can help you to get the new one. If the API requires any request parameters from you, it will be already mentioned with the API detail. There are 2 types of the request used by Tomedes APIs - header and body parameters.

Response:

There is a fixed response format for all the Tomedes APIs and callbacks.

For success:

{
   "success": true,
   "code": 200,
   "message": "Response message",
   "data": [...]
}

For error:

{
   "success": false,
   "code": 401,
   "message": "Unauthorized request",
   "data": []
}

Last updated