Usage
Configuration
The api_keyfollowing is provided and configured:
export API_KEY=<api_key>
export API_HOST=<base_url>Instructions for using the commands
exportandcurlare provided when running in terminal on Linux or Mac operating systems. In case you use another environment, please replace them with equivalent operations.
API Structure
Request
A typical API call looks like this:
curl $BASE_URL.Misc/CurrentAccount \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $API_KEY" \
-d '{}'All requests use HTTPS protocol, POST method and pass values in body using data format application/json. Required headers are Content-Typeand Authorization.
Response
The response uses the data format application/jsonset in the header Content-Type. If the request is successful, the HTTP status code is 200. If the request fails, the HTTP status code can be . 4xxor . 5xxwith a structure similar to the following:
{
"code": "invalid_argument",
"msg": "..."
}Common errors
400 Bad Request
{
"code": "invalid_argument",
"msg": "..."
}Please double check the provided values.
401 Unauthorized
{
"code": "unauthenticated",
"msg": "..."
}Please double check that the request includes the Authorization:<api_key>correct headers.
{
"code": "bad_route",
"msg": "unexpected Content-Type: \"\""
}Please check the path and header again Content-Type: application/json.
Last updated