API Calls

Records of API calls and their responses are accessible via the API itself.

Attributes

  • limit integer

  • countOnly boolean

  • code integer

    The status code given in response to the call.

Endpoints

List API Calls

get /api/calls

See recent API calls with their codes and responses.

Arguments

  • code integer

    The status code given in response to the call.

  • limit integer

    A limit on the number of objects to be returned. Limit can range between 1 and 1000, and the default is 250.

    Default value: 250

  • countOnly boolean

    When "true", will only return a count of the amount of items in the query.

    Default value: false

  • page integer

    Page-numbering is based on the value of the "limit" argument. If limit=20, then page=0 will display the hits from 1 to 20. (Page numbers are zero-based.) Using page without a limit returns all items.

Request with curl
curl "http://[Your IP] /api/calls" \ -X get \ -H "Content-Type: application/json" \ -H "Authorization: Bearer [Your JWT Access Token]"
Example Response
{
    "calls": [
        {
            "code": 200,
            "creationDate": "2022-04-12T18:17:24",
            "username": "Sample API",
            "body": "{\"username\": \"Sample API\", \"password\": \"********\"}",
            "endpoint": "POST http://demo.itempath.com/api/users/login",
            "response": "Sample API logged in successfully.",
            "id": 51686,
            "error": null
        }
    ]
}