MENU navbar-image
bash javascript php

Introduction

This documentation aims to provide all the information you need to work with our API.

Base URL

https://app.hipcall.com.tr

Authenticating requests

Authenticate requests to this API's endpoints by sending an Authorization header with the value "Bearer {YOUR_AUTH_KEY}".

All authenticated endpoints are marked with a requires authentication badge in the documentation below.

You can retrieve your token by visiting your dashboard and clicking Generate API token.

Call

List all Calls

requires authentication

This endpoint let you list calls. You can use embed, sort, search and filter feature at this endpoint.

Direction enum

Call resource has a direction field with integer type.

key description
1 Inbound
2 Outbound
3 Internal

Channel type enum

Hipcall plans to add web widget for call directly from your website until that channel_type always return 1 ( number ) and channel_id means number's id.

key description
1 Number
2 Web widget (coming soon)

Caller type enum

key description
1 Contact
2 User

Callee type enum

key description
1 Contact
2 User
3 Greeting (IVR)
4 Team (Queue)
null Hangup

Missing call reason enum

key description
1 out_of_business_hours
3 abandoned
2 short_abandoned
4 callback

Important note on record_url

This URL will be expired in 60 minutes. It isn't a good idea to store this URL in your database.

Hangup by enum

Call resource has a hangup_by field with integer type.

key description
1 User
2 Contact
3 System

Important note on record_url

This URL will be expired in 60 minutes. It isn't a good idea to store this URL in your database.

Example request:
curl --request GET \
    --get "https://app.hipcall.com.tr/api/v20211124/cdrs" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
const url = new URL(
    "https://app.hipcall.com.tr/api/v20211124/cdrs"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://app.hipcall.com.tr/api/v20211124/cdrs',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 30
x-ratelimit-remaining: 29
vary: Origin
 

{
    "data": [
        {
            "resource_type": "cdr",
            "uuid": "caedfd1b-25ec-447e-ad87-3b7eb3d358ea",
            "direction": 1,
            "user_id": 2,
            "contact_id": 0,
            "channel_type": 1,
            "channel_id": 1,
            "started_at": "2022-09-08T10:59:40+0000",
            "answered_at": null,
            "bridged_at": null,
            "ended_at": "2022-09-08T11:01:29+0000",
            "call_duration": 109,
            "first_touch_duration": 0,
            "missing_call": false,
            "missing_call_reason": 0,
            "caller_id": 1,
            "caller_type": 1,
            "caller_number": "+905326202911",
            "callee_id": 2,
            "callee_type": 3,
            "callee_number": "101",
            "record_url": null,
            "hangup_by": 3
        },
        {
            "resource_type": "cdr",
            "uuid": "279a32b6-4961-49ac-8586-0b92201af0f0",
            "direction": 1,
            "user_id": 2,
            "contact_id": 0,
            "channel_type": 1,
            "channel_id": 1,
            "started_at": "2022-09-08T10:59:40+0000",
            "answered_at": null,
            "bridged_at": null,
            "ended_at": "2022-09-08T11:06:54+0000",
            "call_duration": 434,
            "first_touch_duration": 0,
            "missing_call": false,
            "missing_call_reason": 0,
            "caller_id": 1,
            "caller_type": 1,
            "caller_number": "+905326202911",
            "callee_id": 2,
            "callee_type": 3,
            "callee_number": "101",
            "record_url": null,
            "hangup_by": 1
        },
        {
            "resource_type": "cdr",
            "uuid": "a6db97de-1a23-4a08-b0e9-5d7144889e8e",
            "direction": 1,
            "user_id": 1,
            "contact_id": 0,
            "channel_type": 1,
            "channel_id": 1,
            "started_at": "2022-09-08T10:59:40+0000",
            "answered_at": null,
            "bridged_at": null,
            "ended_at": "2022-09-08T11:01:18+0000",
            "call_duration": 98,
            "first_touch_duration": 0,
            "missing_call": false,
            "missing_call_reason": 0,
            "caller_id": 1,
            "caller_type": 1,
            "caller_number": "+905326202911",
            "callee_id": 2,
            "callee_type": 3,
            "callee_number": "101",
            "record_url": null,
            "hangup_by": 2
        },
        {
            "resource_type": "cdr",
            "uuid": "1fc0dc4d-ae50-485f-99f2-cd86f2ed8fab",
            "direction": 1,
            "user_id": 1,
            "contact_id": 0,
            "channel_type": 1,
            "channel_id": 1,
            "started_at": "2022-09-08T10:59:40+0000",
            "answered_at": null,
            "bridged_at": null,
            "ended_at": "2022-09-08T11:09:05+0000",
            "call_duration": 565,
            "first_touch_duration": 0,
            "missing_call": false,
            "missing_call_reason": 0,
            "caller_id": 1,
            "caller_type": 1,
            "caller_number": "+905326202911",
            "callee_id": 2,
            "callee_type": 3,
            "callee_number": "101",
            "record_url": null,
            "hangup_by": 2
        },
        {
            "resource_type": "cdr",
            "uuid": "22fd752e-add5-47e7-9fa2-a3678e7469f5",
            "direction": 1,
            "user_id": 2,
            "contact_id": 0,
            "channel_type": 1,
            "channel_id": 1,
            "started_at": "2022-09-08T10:59:40+0000",
            "answered_at": null,
            "bridged_at": null,
            "ended_at": "2022-09-08T11:00:34+0000",
            "call_duration": 54,
            "first_touch_duration": 0,
            "missing_call": false,
            "missing_call_reason": 0,
            "caller_id": 1,
            "caller_type": 1,
            "caller_number": "+905326202911",
            "callee_id": 2,
            "callee_type": 3,
            "callee_number": "101",
            "record_url": null,
            "hangup_by": 1
        },
        {
            "resource_type": "cdr",
            "uuid": "e698003e-e599-4cfb-a181-96339cf5cab1",
            "direction": 1,
            "user_id": 1,
            "contact_id": 0,
            "channel_type": 1,
            "channel_id": 1,
            "started_at": "2022-09-08T10:59:40+0000",
            "answered_at": null,
            "bridged_at": null,
            "ended_at": "2022-09-08T11:00:57+0000",
            "call_duration": 77,
            "first_touch_duration": 0,
            "missing_call": false,
            "missing_call_reason": 0,
            "caller_id": 1,
            "caller_type": 1,
            "caller_number": "+905326202911",
            "callee_id": 2,
            "callee_type": 3,
            "callee_number": "101",
            "record_url": null,
            "hangup_by": 2
        },
        {
            "resource_type": "cdr",
            "uuid": "3eaa657a-0dc2-438e-a6b0-b61926e8bc11",
            "direction": 1,
            "user_id": 1,
            "contact_id": 0,
            "channel_type": 1,
            "channel_id": 1,
            "started_at": "2022-09-08T10:59:40+0000",
            "answered_at": null,
            "bridged_at": null,
            "ended_at": "2022-09-08T11:01:19+0000",
            "call_duration": 99,
            "first_touch_duration": 0,
            "missing_call": false,
            "missing_call_reason": 0,
            "caller_id": 1,
            "caller_type": 1,
            "caller_number": "+905326202911",
            "callee_id": 2,
            "callee_type": 3,
            "callee_number": "101",
            "record_url": null,
            "hangup_by": 1
        },
        {
            "resource_type": "cdr",
            "uuid": "f5045def-8280-43a2-b052-6e278c90d89f",
            "direction": 2,
            "user_id": 1,
            "contact_id": 0,
            "channel_type": 1,
            "channel_id": 1,
            "started_at": "2022-09-08T10:59:40+0000",
            "answered_at": null,
            "bridged_at": null,
            "ended_at": "2022-09-08T11:06:22+0000",
            "call_duration": 402,
            "first_touch_duration": 0,
            "missing_call": false,
            "missing_call_reason": 0,
            "caller_id": 1,
            "caller_type": 2,
            "caller_number": "+908508850000",
            "callee_id": 1,
            "callee_type": 1,
            "callee_number": "1015",
            "record_url": null,
            "hangup_by": 2
        },
        {
            "resource_type": "cdr",
            "uuid": "d3c11cf3-8b19-4891-b29c-f03b0e42c1b4",
            "direction": 2,
            "user_id": 2,
            "contact_id": 0,
            "channel_type": 1,
            "channel_id": 1,
            "started_at": "2022-09-08T10:59:40+0000",
            "answered_at": null,
            "bridged_at": null,
            "ended_at": "2022-09-08T11:06:37+0000",
            "call_duration": 417,
            "first_touch_duration": 0,
            "missing_call": false,
            "missing_call_reason": 0,
            "caller_id": 2,
            "caller_type": 2,
            "caller_number": "+908508850000",
            "callee_id": 1,
            "callee_type": 1,
            "callee_number": "1015",
            "record_url": null,
            "hangup_by": 3
        },
        {
            "resource_type": "cdr",
            "uuid": "e1868c6e-1340-410c-9918-ee9a4a990427",
            "direction": 2,
            "user_id": 1,
            "contact_id": 0,
            "channel_type": 1,
            "channel_id": 1,
            "started_at": "2022-09-08T10:59:40+0000",
            "answered_at": null,
            "bridged_at": null,
            "ended_at": "2022-09-08T11:01:41+0000",
            "call_duration": 121,
            "first_touch_duration": 0,
            "missing_call": false,
            "missing_call_reason": 0,
            "caller_id": 1,
            "caller_type": 2,
            "caller_number": "+908508850000",
            "callee_id": 1,
            "callee_type": 1,
            "callee_number": "1015",
            "record_url": null,
            "hangup_by": 1
        }
    ],
    "links": {
        "first": "https://app.hipcall.com.tr/api/v20211124/cdrs?page=1",
        "last": null,
        "prev": null,
        "next": "https://app.hipcall.com.tr/api/v20211124/cdrs?page=2"
    },
    "meta": {
        "current_page": 1,
        "from": 1,
        "path": "https://app.hipcall.com.tr/api/v20211124/cdrs",
        "per_page": "10",
        "to": 10
    }
}
 

Request      

GET api/v20211124/cdrs

URL Parameters

yyyy  integer  

The year of the call.

mm  integer  

The month of the call.

dd  integer  

The day of the call.

id  string  

The UUID of the call.

Body Parameters

q  string optional  

optional Search at caller_number, callee_number. Example ?q=497788123123.

embed  string optional  

The title of the post. No-example.

sort  string optional  

optional Field to sort by. Defaults to 'started_at'. Sortable fields: started_at and call_duration. Example ?sort=started_at,-call_duration.

direction  string optional  

optional Filter by direction field. Supported params: 1, inbound, 2, outbound, 3, internal. Example ?direction=inbound,outbound.

users  string optional  

optional Filter by users field. Add users' ids. Example ?users=1 or ?users=1,4,5.

missing_call  string optional  

optional Filter by missing_call field. Supported param: true or false. Example ?missing_call=true.

missing_call_reason  string optional  

optional Filter by missing_call_reason field. Supported params: 1, out_of_business_hours, 2, short_abandoned, 3, abandoned, 4, callback. Example ?missing_call_reason=1,2 or ?missing_call_reason=callback.

Retrieve a Call

requires authentication

Use this endpoint to retrieve a Call data. You can use embed feature at this endpoint.

Example request:
curl --request GET \
    --get "https://app.hipcall.com.tr/api/v20211124/cdrs/2021/11/25/caedfd1b-25ec-447e-ad87-3b7eb3d358ea" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
const url = new URL(
    "https://app.hipcall.com.tr/api/v20211124/cdrs/2021/11/25/caedfd1b-25ec-447e-ad87-3b7eb3d358ea"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://app.hipcall.com.tr/api/v20211124/cdrs/2021/11/25/caedfd1b-25ec-447e-ad87-3b7eb3d358ea',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 30
x-ratelimit-remaining: 28
vary: Origin
 

{
    "data": {
        "resource_type": "cdr",
        "uuid": "caedfd1b-25ec-447e-ad87-3b7eb3d358ea",
        "direction": 1,
        "user_id": 2,
        "contact_id": 0,
        "channel_type": 1,
        "channel_id": 1,
        "started_at": "2022-09-08T10:59:40+0000",
        "answered_at": null,
        "bridged_at": null,
        "ended_at": "2022-09-08T11:01:29+0000",
        "call_duration": 109,
        "first_touch_duration": 0,
        "missing_call": false,
        "missing_call_reason": 0,
        "caller_id": 1,
        "caller_type": 1,
        "caller_number": "+905326202911",
        "callee_id": 2,
        "callee_type": 3,
        "callee_number": "101",
        "record_url": null,
        "hangup_by": 3
    }
}
 

Request      

GET api/v20211124/cdrs/{yyyy}/{mm}/{dd}/{uuid}

URL Parameters

yyyy  integer  

Cdr year.

mm  integer  

Cdr month.

dd  integer  

Cdr day.

uuid  string optional  

uuid required CDR's uuid.

Body Parameters

embed  string optional  

Extension

List all Extensions

requires authentication

This endpoint let you list extensions. You can use sort, search and filter feature at this endpoint.

Example request:
curl --request GET \
    --get "https://app.hipcall.com.tr/api/v20211124/extensions" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
const url = new URL(
    "https://app.hipcall.com.tr/api/v20211124/extensions"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://app.hipcall.com.tr/api/v20211124/extensions',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 30
x-ratelimit-remaining: 25
vary: Origin
 

{
    "data": [
        {
            "resource_type": "extension",
            "id": 1,
            "number": "1001",
            "target_id": 1,
            "target_type": "user",
            "created_at": "2022-09-08T10:59:40+0000",
            "updated_at": "2022-09-08T10:59:40+0000"
        },
        {
            "resource_type": "extension",
            "id": 2,
            "number": "1002",
            "target_id": 2,
            "target_type": "user",
            "created_at": "2022-09-08T10:59:40+0000",
            "updated_at": "2022-09-08T10:59:40+0000"
        },
        {
            "resource_type": "extension",
            "id": 4,
            "number": "101",
            "target_id": 1,
            "target_type": "greeting",
            "created_at": "2022-09-08T10:59:40+0000",
            "updated_at": "2022-09-08T10:59:40+0000"
        },
        {
            "resource_type": "extension",
            "id": 5,
            "number": "102",
            "target_id": 2,
            "target_type": "greeting",
            "created_at": "2022-09-08T10:59:40+0000",
            "updated_at": "2022-09-08T10:59:40+0000"
        },
        {
            "resource_type": "extension",
            "id": 3,
            "number": "300",
            "target_id": 1,
            "target_type": "team",
            "created_at": "2022-09-08T10:59:40+0000",
            "updated_at": "2022-09-08T10:59:40+0000"
        }
    ],
    "links": {
        "first": "https://app.hipcall.com.tr/api/v20211124/extensions?page=1",
        "last": "https://app.hipcall.com.tr/api/v20211124/extensions?page=1",
        "prev": null,
        "next": null
    },
    "meta": {
        "current_page": 1,
        "from": 1,
        "last_page": 1,
        "links": [
            {
                "url": null,
                "label": "« Previous",
                "active": false
            },
            {
                "url": "https://app.hipcall.com.tr/api/v20211124/extensions?page=1",
                "label": "1",
                "active": true
            },
            {
                "url": null,
                "label": "Next »",
                "active": false
            }
        ],
        "path": "https://app.hipcall.com.tr/api/v20211124/extensions",
        "per_page": 10,
        "to": 5,
        "total": 5
    }
}
 

Request      

GET api/v20211124/extensions

Body Parameters

q  string optional  

optional Search at number. Example ?q=497788123123.

sort  string optional  

optional Field to sort by. Defaults to 'created_at'. Sortable fields: number, created_at and target_type. Example ?sort=target_type,number.

target  string optional  

optional Filter by target field. Supported params: user, team, greeting. Example ?target=inbound,team.

Retrieve an Extension

requires authentication

Use this endpoint to retrieve an Extension data.

Example request:
curl --request GET \
    --get "https://app.hipcall.com.tr/api/v20211124/extensions/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://app.hipcall.com.tr/api/v20211124/extensions/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://app.hipcall.com.tr/api/v20211124/extensions/1',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 30
x-ratelimit-remaining: 24
vary: Origin
 

{
    "data": {
        "resource_type": "extension",
        "id": 1,
        "number": "1001",
        "target_id": 1,
        "target_type": "user",
        "created_at": "2022-09-08T10:59:40+0000",
        "updated_at": "2022-09-08T10:59:40+0000"
    }
}
 

Request      

GET api/v20211124/extensions/{id}

URL Parameters

id  integer  

The ID of the Extension.

Greeting

List all Greetings (IVRs)

requires authentication

This endpoint let you list greetings.

Example request:
curl --request GET \
    --get "https://app.hipcall.com.tr/api/v20211124/greetings" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://app.hipcall.com.tr/api/v20211124/greetings"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://app.hipcall.com.tr/api/v20211124/greetings',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 30
x-ratelimit-remaining: 23
vary: Origin
 

{
    "data": [
        {
            "resource_type": "greeting",
            "id": 1,
            "name": "Out of business hours",
            "direct_dial_extension": false,
            "timeout": 0,
            "max_input_try_count": 0,
            "state": "active"
        },
        {
            "resource_type": "greeting",
            "id": 2,
            "name": "Welcome to Microsoft",
            "direct_dial_extension": true,
            "timeout": 0,
            "max_input_try_count": 3,
            "state": "active"
        }
    ],
    "links": {
        "first": "https://app.hipcall.com.tr/api/v20211124/greetings?page=1",
        "last": "https://app.hipcall.com.tr/api/v20211124/greetings?page=1",
        "prev": null,
        "next": null
    },
    "meta": {
        "current_page": 1,
        "from": 1,
        "last_page": 1,
        "links": [
            {
                "url": null,
                "label": "« Previous",
                "active": false
            },
            {
                "url": "https://app.hipcall.com.tr/api/v20211124/greetings?page=1",
                "label": "1",
                "active": true
            },
            {
                "url": null,
                "label": "Next »",
                "active": false
            }
        ],
        "path": "https://app.hipcall.com.tr/api/v20211124/greetings",
        "per_page": 10,
        "to": 2,
        "total": 2
    }
}
 

Request      

GET api/v20211124/greetings

Retrieve a Greeting (IVR)

requires authentication

Use this endpoint to retrieve a Greeting (IVR) data.

Example request:
curl --request GET \
    --get "https://app.hipcall.com.tr/api/v20211124/greetings/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://app.hipcall.com.tr/api/v20211124/greetings/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://app.hipcall.com.tr/api/v20211124/greetings/1',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 30
x-ratelimit-remaining: 22
vary: Origin
 

{
    "data": {
        "resource_type": "greeting",
        "id": 1,
        "name": "Out of business hours",
        "direct_dial_extension": false,
        "timeout": 0,
        "max_input_try_count": 0,
        "state": "active"
    }
}
 

Request      

GET api/v20211124/greetings/{id}

URL Parameters

id  integer  

The ID of the Greeting (IVR).

Number

List all Numbers

requires authentication

This endpoint let you list numbers.

Example request:
curl --request GET \
    --get "https://app.hipcall.com.tr/api/v20211124/numbers" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://app.hipcall.com.tr/api/v20211124/numbers"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://app.hipcall.com.tr/api/v20211124/numbers',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 30
x-ratelimit-remaining: 21
vary: Origin
 

{
    "data": [
        {
            "resource_type": "number",
            "id": 1,
            "name": "Turkey Support Number",
            "number": "+908503902777"
        },
        {
            "resource_type": "number",
            "id": 3,
            "name": "test 1",
            "number": "+447788123123"
        }
    ],
    "links": {
        "first": "https://app.hipcall.com.tr/api/v20211124/numbers?page=1",
        "last": "https://app.hipcall.com.tr/api/v20211124/numbers?page=1",
        "prev": null,
        "next": null
    },
    "meta": {
        "current_page": 1,
        "from": 1,
        "last_page": 1,
        "links": [
            {
                "url": null,
                "label": "« Previous",
                "active": false
            },
            {
                "url": "https://app.hipcall.com.tr/api/v20211124/numbers?page=1",
                "label": "1",
                "active": true
            },
            {
                "url": null,
                "label": "Next »",
                "active": false
            }
        ],
        "path": "https://app.hipcall.com.tr/api/v20211124/numbers",
        "per_page": 10,
        "to": 2,
        "total": 2
    }
}
 

Request      

GET api/v20211124/numbers

Retrieve a Number

requires authentication

Use this endpoint to retrieve a Number data.

Example request:
curl --request GET \
    --get "https://app.hipcall.com.tr/api/v20211124/numbers/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://app.hipcall.com.tr/api/v20211124/numbers/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://app.hipcall.com.tr/api/v20211124/numbers/1',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 30
x-ratelimit-remaining: 20
vary: Origin
 

{
    "data": {
        "resource_type": "number",
        "id": 1,
        "name": "Turkey Support Number",
        "number": "+908503902777"
    }
}
 

Request      

GET api/v20211124/numbers/{id}

URL Parameters

id  integer  

The ID of the Number.

Task

List all Tasks

requires authentication

This endpoint let you list tasks. You can use sort and filter feature at this endpoint.

Example request:
curl --request GET \
    --get "https://app.hipcall.com.tr/api/v20211124/tasks" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
const url = new URL(
    "https://app.hipcall.com.tr/api/v20211124/tasks"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://app.hipcall.com.tr/api/v20211124/tasks',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 30
x-ratelimit-remaining: 17
vary: Origin
 

{
    "data": [
        {
            "resource_type": "task",
            "id": 1,
            "name": "Id accusamus delectus sed.",
            "description": "Aut fuga architecto ad. Vel sunt fugiat ea. Ut numquam et expedita unde perferendis est ea. Rem mollitia quia ducimus commodi eius rerum.",
            "due_date": "2022-09-22T05:54:15+0000",
            "done": true,
            "done_at": "1990-01-22T23:06:53+0000",
            "assign_to": null,
            "priority": "",
            "task_list_id": null,
            "created_at": "2022-09-08T10:59:40+0000",
            "updated_at": "2022-09-08T10:59:40+0000"
        },
        {
            "resource_type": "task",
            "id": 2,
            "name": "Aut amet ad aut officiis modi minima fugit.",
            "description": "Velit dolorem et necessitatibus pariatur quam et. Id totam ea quis saepe. Similique dolor soluta eos non.",
            "due_date": null,
            "done": true,
            "done_at": "2007-12-24T19:32:13+0000",
            "assign_to": null,
            "priority": "high",
            "task_list_id": null,
            "created_at": "2022-09-08T10:59:40+0000",
            "updated_at": "2022-09-08T10:59:40+0000"
        },
        {
            "resource_type": "task",
            "id": 3,
            "name": "Rem sit eos cumque quidem eveniet beatae.",
            "description": "Quis et temporibus doloribus aspernatur. Ratione sed et dolorum. Error ut voluptate quas ducimus in dolorem.",
            "due_date": "2022-09-03T17:25:24+0000",
            "done": true,
            "done_at": "1998-10-31T23:52:42+0000",
            "assign_to": null,
            "priority": "medium",
            "task_list_id": null,
            "created_at": "2022-09-08T10:59:40+0000",
            "updated_at": "2022-09-08T10:59:40+0000"
        },
        {
            "resource_type": "task",
            "id": 4,
            "name": "Neque distinctio debitis ut repellat.",
            "description": "Molestiae sequi at mollitia. Eius deserunt et aut possimus quisquam. Quia deserunt enim et. Nostrum excepturi pariatur non ad ex culpa sapiente.",
            "due_date": "2022-10-02T16:43:49+0000",
            "done": true,
            "done_at": "1996-02-23T03:33:50+0000",
            "assign_to": null,
            "priority": "",
            "task_list_id": null,
            "created_at": "2022-09-08T10:59:40+0000",
            "updated_at": "2022-09-08T10:59:40+0000"
        },
        {
            "resource_type": "task",
            "id": 5,
            "name": "Assumenda qui doloribus voluptas eum hic.",
            "description": "Aut amet assumenda nobis quia adipisci. Aut dolores fuga ullam qui exercitationem. Nihil quod aspernatur sunt.",
            "due_date": "2022-09-07T06:59:58+0000",
            "done": true,
            "done_at": "1972-04-28T07:00:49+0000",
            "assign_to": null,
            "priority": "",
            "task_list_id": null,
            "created_at": "2022-09-08T10:59:40+0000",
            "updated_at": "2022-09-08T10:59:40+0000"
        },
        {
            "resource_type": "task",
            "id": 6,
            "name": "Sit et officia quae dolore. Quia aliquam ab aut.",
            "description": "Eaque corrupti laudantium doloremque cumque reiciendis nobis. Sit aspernatur nam non saepe. Quod modi officiis dignissimos molestiae quia.",
            "due_date": null,
            "done": false,
            "done_at": null,
            "assign_to": null,
            "priority": "high",
            "task_list_id": null,
            "created_at": "2022-09-08T10:59:40+0000",
            "updated_at": "2022-09-08T10:59:40+0000"
        },
        {
            "resource_type": "task",
            "id": 7,
            "name": "Earum atque earum voluptates qui iure sunt.",
            "description": "Provident rerum qui omnis occaecati et numquam. Error expedita voluptates sit quae. Sit ex molestiae dolores eligendi reiciendis.",
            "due_date": null,
            "done": true,
            "done_at": "2002-10-08T11:28:50+0000",
            "assign_to": null,
            "priority": "",
            "task_list_id": null,
            "created_at": "2022-09-08T10:59:40+0000",
            "updated_at": "2022-09-08T10:59:40+0000"
        },
        {
            "resource_type": "task",
            "id": 8,
            "name": "Atque numquam at occaecati sit.",
            "description": "Sequi id sint repellat doloremque occaecati. Deserunt iste iusto ab alias reprehenderit. Quis perferendis minima aliquid quo minus quia.",
            "due_date": null,
            "done": false,
            "done_at": null,
            "assign_to": null,
            "priority": "low",
            "task_list_id": null,
            "created_at": "2022-09-08T10:59:40+0000",
            "updated_at": "2022-09-08T10:59:40+0000"
        },
        {
            "resource_type": "task",
            "id": 9,
            "name": "Aut expedita at eos libero officia omnis.",
            "description": "Est necessitatibus in nulla consequuntur. Aut soluta sit porro quisquam magnam laudantium quaerat.",
            "due_date": "2022-10-02T21:44:59+0000",
            "done": false,
            "done_at": null,
            "assign_to": null,
            "priority": "",
            "task_list_id": null,
            "created_at": "2022-09-08T10:59:40+0000",
            "updated_at": "2022-09-08T10:59:40+0000"
        },
        {
            "resource_type": "task",
            "id": 10,
            "name": "Aut omnis quod natus impedit molestias.",
            "description": "Officiis consectetur hic sint sed. Qui sed minus est nemo. Quasi commodi soluta qui unde quia.",
            "due_date": "2022-08-27T11:05:06+0000",
            "done": false,
            "done_at": null,
            "assign_to": null,
            "priority": "",
            "task_list_id": null,
            "created_at": "2022-09-08T10:59:40+0000",
            "updated_at": "2022-09-08T10:59:40+0000"
        }
    ],
    "links": {
        "first": "https://app.hipcall.com.tr/api/v20211124/tasks?page=1",
        "last": "https://app.hipcall.com.tr/api/v20211124/tasks?page=2",
        "prev": null,
        "next": "https://app.hipcall.com.tr/api/v20211124/tasks?page=2"
    },
    "meta": {
        "current_page": 1,
        "from": 1,
        "last_page": 2,
        "links": [
            {
                "url": null,
                "label": "« Previous",
                "active": false
            },
            {
                "url": "https://app.hipcall.com.tr/api/v20211124/tasks?page=1",
                "label": "1",
                "active": true
            },
            {
                "url": "https://app.hipcall.com.tr/api/v20211124/tasks?page=2",
                "label": "2",
                "active": false
            },
            {
                "url": "https://app.hipcall.com.tr/api/v20211124/tasks?page=2",
                "label": "Next »",
                "active": false
            }
        ],
        "path": "https://app.hipcall.com.tr/api/v20211124/tasks",
        "per_page": 10,
        "to": 10,
        "total": 11
    }
}
 

Request      

GET api/v20211124/tasks

Body Parameters

q  string optional  

priority  string optional  

optional Filter by priority field. Supported params: low, medium, high. Example ?priority=high,medium.

assign_to  string optional  

optional Filter by assign_to field. Add users' ids. Example ?assign_to=1 or ?assign_to=1,4,5.

embed  string optional  

optional Embed resource to response. Embeddable resources: assign_to. Example ?embed=assign_to.

sort  string optional  

optional Field to sort by. Defaults to 'due_date'. Sortable fields: due_date. Example ?sort=due_date.

Retrieve a Task

requires authentication

Use this endpoint to retrieve a Task data.

Example request:
curl --request GET \
    --get "https://app.hipcall.com.tr/api/v20211124/tasks/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://app.hipcall.com.tr/api/v20211124/tasks/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://app.hipcall.com.tr/api/v20211124/tasks/1',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 30
x-ratelimit-remaining: 16
vary: Origin
 

{
    "data": {
        "resource_type": "task",
        "id": 1,
        "name": "Id accusamus delectus sed.",
        "description": "Aut fuga architecto ad. Vel sunt fugiat ea. Ut numquam et expedita unde perferendis est ea. Rem mollitia quia ducimus commodi eius rerum.",
        "due_date": "2022-09-22T05:54:15+0000",
        "done": true,
        "done_at": "1990-01-22 23:06:53",
        "assign_to": null,
        "priority": "",
        "task_list_id": null,
        "created_at": "2022-09-08T10:59:40+0000",
        "updated_at": "2022-09-08T10:59:40+0000"
    }
}
 

Request      

GET api/v20211124/tasks/{id}

URL Parameters

id  integer  

The ID of the Task.

Create a Task

requires authentication

Use this endpoint to create a Task data.

Example request:
curl --request POST \
    "https://app.hipcall.com.tr/api/v20211124/tasks" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"Sent an email to client\",
    \"description\": \"necessitatibus\",
    \"due_date\": \"20220612 12:12:12\",
    \"assign_to\": 1,
    \"priority\": \"low\",
    \"task_list\": 9
}"
const url = new URL(
    "https://app.hipcall.com.tr/api/v20211124/tasks"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "Sent an email to client",
    "description": "necessitatibus",
    "due_date": "20220612 12:12:12",
    "assign_to": 1,
    "priority": "low",
    "task_list": 9
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://app.hipcall.com.tr/api/v20211124/tasks',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'name' => 'Sent an email to client',
            'description' => 'necessitatibus',
            'due_date' => '20220612 12:12:12',
            'assign_to' => 1,
            'priority' => 'low',
            'task_list' => 9,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Request      

POST api/v20211124/tasks

Body Parameters

name  string  

The name of the Task. min:2|max:255.

description  string optional  

The desciption of the Task. min:2|max:255 .

due_date  string optional  

The due date of the task. min:2.

assign_to  integer optional  

The user ID.

priority  string optional  

The priority of the task. Can be low, medium or high.

task_list  integer optional  

The ID of the Task list.

Team

List all Teams

requires authentication

This endpoint let you list teams. You can use search and filter feature at this endpoint.

Example request:
curl --request GET \
    --get "https://app.hipcall.com.tr/api/v20211124/teams" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
const url = new URL(
    "https://app.hipcall.com.tr/api/v20211124/teams"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://app.hipcall.com.tr/api/v20211124/teams',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 30
x-ratelimit-remaining: 19
vary: Origin
 

{
    "data": [
        {
            "resource_type": "team",
            "id": 1,
            "name": "Microsoft Team",
            "user_case": "all",
            "wrap_up_time": 15,
            "strategy": "random",
            "say_line_number": true,
            "say_line_number_in_second": 120,
            "callback": false,
            "callback_dtmf": 0,
            "callback_action": "none",
            "state": "active"
        }
    ],
    "links": {
        "first": "https://app.hipcall.com.tr/api/v20211124/teams?page=1",
        "last": "https://app.hipcall.com.tr/api/v20211124/teams?page=1",
        "prev": null,
        "next": null
    },
    "meta": {
        "current_page": 1,
        "from": 1,
        "last_page": 1,
        "links": [
            {
                "url": null,
                "label": "« Previous",
                "active": false
            },
            {
                "url": "https://app.hipcall.com.tr/api/v20211124/teams?page=1",
                "label": "1",
                "active": true
            },
            {
                "url": null,
                "label": "Next »",
                "active": false
            }
        ],
        "path": "https://app.hipcall.com.tr/api/v20211124/teams",
        "per_page": 10,
        "to": 1,
        "total": 1
    }
}
 

Request      

GET api/v20211124/teams

Body Parameters

q  string optional  

optional Search at name. Example ?q=Sales.

status  string optional  

optional Filter by status field. Supported params: 1, active, 0, passive. Example ?status=active.

Retrieve a Team

requires authentication

Use this endpoint to retrieve a Team data.

Example request:
curl --request GET \
    --get "https://app.hipcall.com.tr/api/v20211124/teams/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://app.hipcall.com.tr/api/v20211124/teams/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://app.hipcall.com.tr/api/v20211124/teams/1',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 30
x-ratelimit-remaining: 18
vary: Origin
 

{
    "data": {
        "resource_type": "team",
        "id": 1,
        "name": "Microsoft Team",
        "user_case": "all",
        "wrap_up_time": 15,
        "strategy": "random",
        "say_line_number": true,
        "say_line_number_in_second": 120,
        "callback": false,
        "callback_dtmf": 0,
        "callback_action": "none",
        "state": "active"
    }
}
 

Request      

GET api/v20211124/teams/{id}

URL Parameters

id  integer  

The ID of the Team.

User

List all Users

requires authentication

This endpoint let you list users. You can use search and filter feature at this endpoint.

Example request:
curl --request GET \
    --get "https://app.hipcall.com.tr/api/v20211124/users" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
const url = new URL(
    "https://app.hipcall.com.tr/api/v20211124/users"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://app.hipcall.com.tr/api/v20211124/users',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 30
x-ratelimit-remaining: 27
vary: Origin
 

{
    "data": [
        {
            "resource_type": "user",
            "id": 2,
            "email": "satya@microsoft.com",
            "name": "Satya Nadella",
            "full_name": "Satya Nadella",
            "title": "",
            "owner": false,
            "locale": "en",
            "status": "active",
            "default_number_id": 1,
            "default_extension_id": 2,
            "2fa": false,
            "last_logged_in": null,
            "created_at": "2022-09-08T10:59:40+0000",
            "updated_at": "2022-09-08T10:59:40+0000"
        },
        {
            "resource_type": "user",
            "id": 3,
            "email": "ned.weber@example.com",
            "name": "Petra Barrows",
            "full_name": "Petra Barrows",
            "title": "Aircraft Structure Assemblers",
            "owner": false,
            "locale": "en",
            "status": "active",
            "default_number_id": null,
            "default_extension_id": null,
            "2fa": false,
            "last_logged_in": null,
            "created_at": "2022-09-08T10:59:42+0000",
            "updated_at": "2022-09-08T10:59:42+0000"
        },
        {
            "resource_type": "user",
            "id": 4,
            "email": "bud63@example.com",
            "name": "Wiley Leffler",
            "full_name": "Wiley Leffler",
            "title": "Housekeeping Supervisor",
            "owner": false,
            "locale": "en",
            "status": "active",
            "default_number_id": null,
            "default_extension_id": null,
            "2fa": false,
            "last_logged_in": "1972-07-03T00:31:00+0000",
            "created_at": "2022-09-08T10:59:42+0000",
            "updated_at": "2022-09-08T10:59:42+0000"
        },
        {
            "resource_type": "user",
            "id": 5,
            "email": "claud64@example.net",
            "name": "Finn Zulauf",
            "full_name": "Finn Zulauf",
            "title": "Forensic Investigator",
            "owner": false,
            "locale": "en",
            "status": "active",
            "default_number_id": null,
            "default_extension_id": null,
            "2fa": false,
            "last_logged_in": null,
            "created_at": "2022-09-08T10:59:42+0000",
            "updated_at": "2022-09-08T10:59:42+0000"
        },
        {
            "resource_type": "user",
            "id": 6,
            "email": "aida.borer@example.org",
            "name": "Dave Connelly",
            "full_name": "Dave Connelly",
            "title": "Management Analyst",
            "owner": false,
            "locale": "en",
            "status": "active",
            "default_number_id": null,
            "default_extension_id": null,
            "2fa": false,
            "last_logged_in": "1979-08-04T12:42:56+0000",
            "created_at": "2022-09-08T10:59:42+0000",
            "updated_at": "2022-09-08T10:59:42+0000"
        },
        {
            "resource_type": "user",
            "id": 7,
            "email": "cheathcote@example.org",
            "name": "Lacey Ratke",
            "full_name": "Lacey Ratke",
            "title": "Talent Acquisition Manager",
            "owner": false,
            "locale": "en",
            "status": "active",
            "default_number_id": null,
            "default_extension_id": null,
            "2fa": false,
            "last_logged_in": null,
            "created_at": "2022-09-08T10:59:42+0000",
            "updated_at": "2022-09-08T10:59:42+0000"
        },
        {
            "resource_type": "user",
            "id": 8,
            "email": "vbarrows@example.org",
            "name": "Vidal O'Kon",
            "full_name": "Vidal O'Kon",
            "title": "Pharmacy Aide",
            "owner": false,
            "locale": "en",
            "status": "active",
            "default_number_id": null,
            "default_extension_id": null,
            "2fa": false,
            "last_logged_in": null,
            "created_at": "2022-09-08T10:59:42+0000",
            "updated_at": "2022-09-08T10:59:42+0000"
        },
        {
            "resource_type": "user",
            "id": 9,
            "email": "alisha97@example.org",
            "name": "Herminio Willms",
            "full_name": "Herminio Willms",
            "title": "Freight and Material Mover",
            "owner": false,
            "locale": "en",
            "status": "active",
            "default_number_id": null,
            "default_extension_id": null,
            "2fa": false,
            "last_logged_in": "1998-09-15T02:39:05+0000",
            "created_at": "2022-09-08T10:59:42+0000",
            "updated_at": "2022-09-08T10:59:42+0000"
        },
        {
            "resource_type": "user",
            "id": 10,
            "email": "kihn.joanie@example.org",
            "name": "Karina Schaefer",
            "full_name": "Karina Schaefer",
            "title": "Postal Service Mail Carrier",
            "owner": false,
            "locale": "en",
            "status": "active",
            "default_number_id": null,
            "default_extension_id": null,
            "2fa": false,
            "last_logged_in": "2015-04-30T18:42:42+0000",
            "created_at": "2022-09-08T10:59:42+0000",
            "updated_at": "2022-09-08T10:59:42+0000"
        },
        {
            "resource_type": "user",
            "id": 11,
            "email": "vena17@example.org",
            "name": "Edwardo Gleason",
            "full_name": "Edwardo Gleason",
            "title": "Plating Machine Operator",
            "owner": false,
            "locale": "en",
            "status": "active",
            "default_number_id": null,
            "default_extension_id": null,
            "2fa": false,
            "last_logged_in": null,
            "created_at": "2022-09-08T10:59:42+0000",
            "updated_at": "2022-09-08T10:59:42+0000"
        }
    ],
    "links": {
        "first": "https://app.hipcall.com.tr/api/v20211124/users?page=1",
        "last": "https://app.hipcall.com.tr/api/v20211124/users?page=3",
        "prev": null,
        "next": "https://app.hipcall.com.tr/api/v20211124/users?page=2"
    },
    "meta": {
        "current_page": 1,
        "from": 1,
        "last_page": 3,
        "links": [
            {
                "url": null,
                "label": "« Previous",
                "active": false
            },
            {
                "url": "https://app.hipcall.com.tr/api/v20211124/users?page=1",
                "label": "1",
                "active": true
            },
            {
                "url": "https://app.hipcall.com.tr/api/v20211124/users?page=2",
                "label": "2",
                "active": false
            },
            {
                "url": "https://app.hipcall.com.tr/api/v20211124/users?page=3",
                "label": "3",
                "active": false
            },
            {
                "url": "https://app.hipcall.com.tr/api/v20211124/users?page=2",
                "label": "Next »",
                "active": false
            }
        ],
        "path": "https://app.hipcall.com.tr/api/v20211124/users",
        "per_page": 10,
        "to": 10,
        "total": 28
    }
}
 

Request      

GET api/v20211124/users

Body Parameters

q  string optional  

optional Search at first_name, last_name and email. Example ?q=Bill.

status  string optional  

optional Filter by status field. Supported params: 1, active, 0, passive. Example ?status=active.

Retrieve a User

requires authentication

Use this endpoint to retrieve a User data.

Example request:
curl --request GET \
    --get "https://app.hipcall.com.tr/api/v20211124/users/2" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://app.hipcall.com.tr/api/v20211124/users/2"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://app.hipcall.com.tr/api/v20211124/users/2',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 30
x-ratelimit-remaining: 26
vary: Origin
 

{
    "data": {
        "resource_type": "user",
        "id": 2,
        "email": "satya@microsoft.com",
        "name": "Satya Nadella",
        "title": "",
        "owner": false,
        "locale": "en",
        "default_number_id": 1,
        "default_extension_id": 2,
        "2fa": false,
        "last_logged_in": null,
        "created_at": "2022-09-08T10:59:40+0000",
        "updated_at": "2022-09-08T10:59:40+0000"
    }
}
 

Request      

GET api/v20211124/users/{id}

URL Parameters

id  integer  

The ID of the User.

Update an exist User

requires authentication

Use this endpoint to update an exist User's default number

Example request:
curl --request PUT \
    "https://app.hipcall.com.tr/api/v20211124/users/2" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
const url = new URL(
    "https://app.hipcall.com.tr/api/v20211124/users/2"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "PUT",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->put(
    'https://app.hipcall.com.tr/api/v20211124/users/2',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Request      

PUT api/v20211124/users/{id}

URL Parameters

id  integer  

The ID of the user.

default_number_id  integer  

The ID of an active number.

Body Parameters

default_number_id  string optional