---
updatedAt: 2026-04-21T08:57:19.000Z
agentTools:
  projectIndex: https://docs.mesh.complyadvantage.com/llms.txt
---

# Get a list of custom fields

This endpoint returns a paginated list of custom fields which can be optionally filtered by customer type.


You need the "View customers" permission to use this endpoint.

# OpenAPI definition

```json
{
  "components": {
    "schemas": {
      "customer-manager_CustomField": {
        "description": "List of custom fields.",
        "properties": {
          "customer_type": {
            "enum": [
              "PERSON",
              "COMPANY",
              "VESSEL"
            ],
            "type": "string"
          },
          "data_type": {
            "$ref": "#/components/schemas/customer-manager_CustomFieldDataType"
          },
          "display_name": {
            "type": "string"
          },
          "identifier": {
            "format": "uuid",
            "type": "string"
          },
          "key": {
            "type": "string"
          }
        },
        "required": [
          "customer_type",
          "data_type",
          "display_name",
          "identifier",
          "key"
        ],
        "type": "object"
      },
      "customer-manager_CustomFieldDataType": {
        "description": "The type of data stored in a custom field.",
        "enum": [
          "TEXT",
          "INTEGER",
          "DECIMAL",
          "DATE",
          "DATETIME"
        ],
        "type": "string"
      },
      "customer-manager_PaginatedCustomFieldsResponse": {
        "properties": {
          "custom_fields": {
            "description": "List of custom fields.",
            "items": {
              "$ref": "#/components/schemas/customer-manager_CustomField"
            },
            "type": "array"
          },
          "first": {
            "description": "The URL path to the first page.",
            "example": "/v2/customers/custom-fields?page_number=1",
            "type": "string"
          },
          "next": {
            "description": "The URL path to the next page.",
            "example": "/v2/customers/custom-fields?page_number=2",
            "nullable": true,
            "type": "string"
          },
          "prev": {
            "description": "The URL path to the previous page.",
            "example": "/v2/customers/custom-fields?page_number=1",
            "nullable": true,
            "type": "string"
          },
          "self": {
            "description": "The URL path to the current page.",
            "example": "/v2/customers/custom-fields?page_number=1",
            "type": "string"
          },
          "total_count": {
            "description": "Total number of custom fields.",
            "example": 5,
            "format": "int64",
            "type": "integer"
          }
        },
        "required": [
          "custom_fields",
          "first",
          "self",
          "total_count"
        ],
        "type": "object"
      },
      "customer-manager_ProblemDetailErrorResponse": {
        "additionalProperties": true,
        "properties": {
          "detail": {
            "nullable": true,
            "type": "string"
          },
          "identifier": {
            "format": "uuid",
            "type": "string"
          },
          "instance": {
            "format": "uri",
            "nullable": true,
            "type": "string"
          },
          "status": {
            "format": "int32",
            "nullable": true,
            "type": "integer"
          },
          "timestamp": {
            "format": "date-time",
            "type": "string"
          },
          "title": {
            "nullable": true,
            "type": "string"
          },
          "type": {
            "format": "uri",
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "identifier",
          "timestamp"
        ],
        "type": "object"
      }
    },
    "securitySchemes": {
      "BearerAuth": {
        "description": "HTTP Bearer Token Authentication",
        "scheme": "bearer",
        "type": "http"
      }
    }
  },
  "info": {
    "title": "Mesh API",
    "version": "v2.0"
  },
  "openapi": "3.0.3",
  "paths": {
    "/v2/customers/custom-fields": {
      "get": {
        "description": "This endpoint returns a paginated list of custom fields which can be optionally filtered by customer type.\n\n\nYou need the \"View customers\" permission to use this endpoint.",
        "operationId": "customerGetCustomFields",
        "parameters": [
          {
            "example": "PERSON",
            "in": "query",
            "name": "customer_type",
            "required": false,
            "schema": {
              "enum": [
                "PERSON",
                "COMPANY"
              ],
              "type": "string"
            }
          },
          {
            "description": "One-based page index (1..N)",
            "example": 1,
            "in": "query",
            "name": "page_number",
            "required": false,
            "schema": {
              "default": 1,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "The size of the page to be returned",
            "example": 20,
            "in": "query",
            "name": "page_size",
            "required": false,
            "schema": {
              "default": 50,
              "minimum": 1,
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/customer-manager_PaginatedCustomFieldsResponse"
                }
              }
            },
            "description": "Successfully retrieved custom fields."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/customer-manager_ProblemDetailErrorResponse"
                }
              }
            },
            "description": "Bad Request"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/customer-manager_ProblemDetailErrorResponse"
                }
              }
            },
            "description": "Forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/customer-manager_ProblemDetailErrorResponse"
                }
              }
            },
            "description": "Not Found"
          }
        },
        "summary": "Get a list of custom fields",
        "tags": [
          "Custom Fields"
        ]
      }
    }
  },
  "security": [
    {
      "BearerAuth": []
    }
  ],
  "servers": [
    {
      "description": "ComplyAdvantage Mesh API",
      "url": "https://api.mesh.complyadvantage.com"
    }
  ],
  "tags": [
    {
      "name": "Custom Fields"
    }
  ]
}
```