Suggestions

close search

Call log

URL: https://api.stringee.com/v1/call/log

HTTP method: GET

Custom HTTP GET header: Name: X-STRINGEE-AUTH Value: JSON web token (JWT), see REST API Authentication

GET params:

Field Type Require Description
id String No ID of call
from_number String No From number
to_number String No To number
from_user_id String No From UserID
from_start_time Int No Timestamp in milliseconds
to_start_time Int No Timestamp in milliseconds
from_answer_time Int No Timestamp in milliseconds
to_answer_time Int No Timestamp in milliseconds
from_stop_time Int No Timestamp in milliseconds
to_stop_time Int No Timestamp in milliseconds
from_created_time Int No Timestamp in seconds
to_created_time Int No Timestamp in seconds
page Int No Default page=1
limit Int No Default limit=100; max=100
sort_by String No Default: sort_by=start_time; (id,from_number,to_number, start_time, answer_time, stop_time, amount, created)
order_by String No Default: order_by=desc; (asc, desc)

Sample request

a) Get calls with default

GET https://api.stringee.com/v1/call/log
X-STRINGEE-AUTH: json_web_token

b) Get calls with params

GET https://api.stringee.com/v1/call/log?from_date=1529054778&to_date=1529141178&page=1&limit=10
X-STRINGEE-AUTH: json_web_token

Sample response

{
    "r": 0,
    "message": "Load call(s) success",
    "data": {
        "totalCalls": "28",
        "totalPages": 1,
        "currentPage": 1,
        "limit": 100,
        "calls": [
            {
                "id": "call-vn-1-Y8JUX5TVSZ-1530721756050",
                "project_id": "225",
                "from_user_id": null,
                "from_number": "84901701xxx",
                "to_number": "USER_ID",
                "from_alias": "",
                "from_internal": 0,
                "to_internal": 1,
                "start_time": 1531458029710,
                "answer_time": 0,
                "stop_time": 1531458075819,
                "amount": "0.00000",
                "created": 1531458075,
                "recorded": 0,
                "uuid": "a814fcea-8659-11e8-9a18-5d6dd4e28e50",
                "project_name": "Stringee ICC",
                "start_time_datetime": "2018/07/13, 12:00:29",
                "answer_time_datetime": "1970/01/01, 08:00:00",
                "stop_time_datetime": "2018/07/13, 12:01:15",
                "created_datetime": "2018/07/13, 12:01:15"
            }
        ]
    }
}