Retrieve a collection of call history entry.

GET /list
Retrieve a collection of call history entry.
Path parameters
  • access_token

    string

    required

    token to be passed as a header

    minLength: 64

    maxLength: 64

  • pagination

    integer

    required

    The pagination of paging.
  • pagesize

    integer

    required

    The size of paging.
  • sort_by

    string

    optional

    Values include "DEFAULT" and "Optional". Default value will be used when user does not specify value for this field.

Sample Request

                      curl -v -X GET http://127.0.0.1:8990/api/call_sessions/list \
                        -H "Content-Type: application/json" \
                        -H "access_token: 4DFCF1D4C30B4D798ECE3AE43769F008" \
                      
                    

Responses

200
Successful operation
application/json
  • pagination

    integer

  • count

    integer

  • sort_by

    string

  • pagesize

    integer

  • call_hitorys

    array

    Show child attributes

Sample Response

                      
{
    "pagination": 8,
    "count": 100,
    "sort_by": "DEFAULT",
    "pagesize": 10
}
                      
                    

destroy call session

POST /destroy
destroy call session
Path parameters
  • access_token

    string

    required

    token to be passed as a header

    minLength: 64

    maxLength: 64

Request body
application/json
  • session_id

    integer

    required

    The call history entry ID.

Sample Request

                      curl -v -X POST http://127.0.0.1:8990/api/call_sessions/destroy \
                        -H "Content-Type: application/json" \
                        -H "access_token: 4DFCF1D4C30B4D798ECE3AE43769F008" \
                          -d '{
    "session_id": 111
}'
                      
                    

Responses

400
Invalid call session id supplied
404
User not found
200
Successful operation

Sample Response

                      
                      
                    

create call session

POST /create
create call session
Path parameters
  • access_token

    string

    required

    token to be passed as a header

    minLength: 64

    maxLength: 64

Request body
application/json
  • call_to

    string

    required

    callee
  • call_from

    string

    required

    caller

Sample Request

                      curl -v -X POST http://127.0.0.1:8990/api/call_sessions/create \
                        -H "Content-Type: application/json" \
                        -H "access_token: 4DFCF1D4C30B4D798ECE3AE43769F008" \
                          -d '{
    "call_to": 112,
    "call_from": 111
}'
                      
                    

Responses

400
Invalid call_from or call_to supplied
404
User not found
200
Successful operation

Sample Response