# Get Custom Field

Reads one custom-field definition: type, placeholder, API key, metadata, copy target and whether values are per subscription. Contact values are read with get-contact.

## Input schema:

```json
{
  "type": "object",
  "properties": {
    "customFieldId": {
      "type": "string",
      "description": "Field ID: a number for the account's own field, a name such as \"FirstName\" for a global one",
      "minLength": 1,
      "maxLength": 100,
      "pattern": "^[A-Za-z0-9_]+$"
    },
    "accountId": {
      "type": [
        "null",
        "integer"
      ],
      "description": "User ID of the account; omit for the account the access token works in",
      "default": null,
      "minimum": 1
    }
  },
  "required": [
    "customFieldId"
  ],
  "additionalProperties": false
}
```

## Output schema:

```json
{
  "type": "object",
  "required": [
    "accountId",
    "id",
    "name",
    "type",
    "isGlobal",
    "multiValue",
    "placeholder",
    "apiFieldId",
    "category",
    "description",
    "notes",
    "metaLabels",
    "copyToFieldId",
    "requestName",
    "editUrl"
  ],
  "properties": {
    "accountId": {
      "type": "integer"
    },
    "id": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "type": {
      "type": "string"
    },
    "isGlobal": {
      "type": "boolean"
    },
    "multiValue": {
      "type": "boolean"
    },
    "placeholder": {
      "type": "string"
    },
    "apiFieldId": {
      "type": "string"
    },
    "category": {
      "type": "string"
    },
    "description": {
      "type": "string"
    },
    "notes": {
      "type": "string"
    },
    "metaLabels": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "copyToFieldId": {
      "type": "string"
    },
    "requestName": {
      "type": "string"
    },
    "editUrl": {
      "type": "string"
    }
  }
}
```

