Pike13 For Developers
Get Started
Authentication
Core API
Reporting API
Webhooks API
Announcements

Core API Documentation

Custom Field

Custom fields that can be associated with people.

Desk

GET /api/v2/desk/custom_fields

Lists the available custom fields.

Show curl example

REQUEST
$ curl https://mybiz.pike13.com/api/v2/desk/custom_fields \
  -H "Authorization: Bearer XXXXXXXXXXXXXXX"

RESPONSE
{
  "custom_fields": [
    {
      "id": 5,
      "name": "Favorite Color",
      "why": "",
      "data_type": "select",
      "multi_select": false,
      "custom_field_options": [
        "blue",
        "red",
        "green",
        "orange"
      ],
      "custom_field_settings": [
        {
          "custom_field_context_type": "ClientRegistrationSettings",
          "client_managers": "optional",
          "non_client_managers": "optional",
          "dependents": "optional"
        },
        {
          "custom_field_context_type": "ClientProfileSettings",
          "visibility": "everyone"
        },
        {
          "custom_field_context_type": "StaffRegistrationSettings",
          "staff_registration": "optional"
        },
        {
          "custom_field_context_type": "StaffProfileSettings",
          "visibility": "all_staff"
        }
      ]
    },
    {
      "id": 6,
      "name": "Height",
      "why": "To match you with the proper sized equipment",
      "data_type": "text",
      "custom_field_settings": [
        {
          "custom_field_context_type": "ClientRegistrationSettings",
          "client_managers": "required",
          "non_client_managers": "required",
          "dependents": "required"
        },
        {
          "custom_field_context_type": "ClientProfileSettings",
          "visibility": "everyone"
        }
      ]
    },
    {
      "id": 7,
      "name": "Are you a robot?",
      "why": "Because Cylons",
      "data_type": "boolean",
      "custom_field_settings": [
        {
          "custom_field_context_type": "ClientRegistrationSettings",
          "client_managers": "required",
          "non_client_managers": "required",
          "dependents": "optional"
        },
        {
          "custom_field_context_type": "ClientProfileSettings",
          "visibility": "staff_only"
        }
      ]
    }
  ],
  "total_count": 3
}