GET api/2.0/crm/contact/type This function requires authentication

Description

Returns a list of all the contact types available on the portal.

Parameters

This method doesn't have any parameters.

Example
GET api/2.0/crm/contact/type
Host: yourportal.onlyoffice.com
Content-Type: application/json
Accept: application/json
Returns

List of all the contact types

Example Response

application/json

{
  "status": 0,
  "response": [
    {
      "RelativeItemsCount": 1,
      "id": 1234,
      "Title": "Title",
      "Description": "Description",
      "Color": "#a7fc00",
      "SortOrder": 1
    }
  ]
}

text/xml

<result>
  <status>0</status>
  <response>
    <RelativeItemsCount>1</RelativeItemsCount>
    <id>1234</id>
    <Title>Title</Title>
    <Description>Description</Description>
    <Color>#a7fc00</Color>
    <SortOrder>1</SortOrder>
  </response>
</result>