Phone-Type Details

From docs
Jump to: navigation, search

Mobile_API »Get Phone Types

Base URL

https://apimobile.callproof.com

Endpoint

/api/phone-type

Purpose

Retrieves the list of available phone types (for example, Cell, Office, Home), ordered by position, for use when adding or editing contact phone numbers.

HTTP Method

GET

Headers

Header Required Description
Authorization Yes Bearer access token

Security

  • Yes – Requires Bearer Token authentication.

Parameters

Path Parameters

None.

Query Parameters

None.

Request Body

None.

cURL Example for Android

 curl --location 'https://apimobile.callproof.com/api/phone-type' \ --header 'Authorization: Bearer YOUR_ACCESS_TOKEN' 

cURL Example for iOS

 curl --location 'https://apimobile.callproof.com/api/phone-type' \ --header 'Authorization: Bearer YOUR_ACCESS_TOKEN' 

Successful Response (200)

Returns the phone type list.

Field Type Description
clientStatusCode integer Status indicator for the client (for example, 200)
user_id integer Identifier of the authenticated user
company_id integer Identifier of the authenticated user’s company
data object Phone type payload
uri string Requested resource URI

data.phone_type[]

Field Type Description
id integer Unique identifier of the phone type
name string Display name of the phone type

Error Responses

Status Code Meaning
400 Bad Request – phone types could not be retrieved
401 Unauthorized – missing, invalid, or expired Bearer token
  • 400 – An error occurred while retrieving phone types (for example, "Error while retriving the PhoneType List").
  • 401 – Authentication failed or the access token is missing/expired.