HighLevel Custom Field API

Documentation for Sub-Account (Formerly location) API

GitHub OpenAPI

Operations 6

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /locations/{locationId}/customFields List a location's custom fields · Get Custom Fields #
Ask an LLM
“What custom fields are defined for a location?”
“Can I list only the custom fields on a location for a given model?”
Tell an agent
List custom fields for location {locationId}.
Show the {model} custom fields on location {locationId}.
POST /locations/{locationId}/customFields Create a custom field on a location · Create Custom Field #
Ask an LLM
“How do I add a new custom field to a location?”
“Can a location custom field accept files and have a format restriction?”
Tell an agent
Create a {dataType} custom field named {name} on location {locationId}.
Add a {dataType} custom field {name} to location {locationId} accepting {acceptedFormat} files.
GET /locations/{locationId}/customFields/{id} Get a location custom field · Get Custom Field #
Ask an LLM
“How do I look up one custom field on a location?”
“Can I fetch a custom field by its field key?”
Tell an agent
Get custom field {id} on location {locationId}.
Show the {model} custom field {id} for location {locationId}.
PUT /locations/{locationId}/customFields/{id} Update a location custom field · Update Custom Field #
Ask an LLM
“How do I rename a custom field on a location?”
“Can I change the accepted file format of a location custom field?”
Tell an agent
Rename custom field {id} on location {locationId} to {name}.
Set the accepted format of custom field {id} on location {locationId} to {acceptedFormat}.
DELETE /locations/{locationId}/customFields/{id} Delete a location custom field · Delete Custom Field #
Ask an LLM
“How do I remove a custom field from a location?”
“Can I delete a location custom field by its field key?”
Tell an agent destructive · confirm first
Delete custom field {id} from location {locationId}.
Remove the {model} custom field {id} on location {locationId}.
POST /locations/{locationId}/customFields/upload Upload files to a location's custom fields · Uploads File to customFields #
Ask an LLM
“How do I upload files to a custom field on a location?”
“Can I limit how many files a location custom field upload accepts?”
Tell an agent
Upload files to custom field {id} on location {locationId}.
Upload up to {maxFiles} files to custom field {id} for location {locationId}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/highlevel:highlevel-custom-field-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

highlevel-custom-field-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Sub-Account (Formerly location) Custom Field API
  description: Documentation for Sub-Account (Formerly location) API
  version: '1.0'
  contact: {}
servers:
- url: https://services.leadconnectorhq.com
tags:
- name: Custom Field
  description: Documentation for Sub-Account (Formerly location) API
paths:
  /locations/{locationId}/customFields:
    get:
      operationId: get-custom-fields
      summary: Get Custom Fields
      parameters:
      - name: Version
        in: header
        description: API Version
        required: true
        schema:
          type: string
          enum:
          - '2021-07-28'
      - name: locationId
        required: true
        in: path
        description: Location Id
        example: ve9EPM428h8vShlRW1KT
        schema:
          type: string
      - name: model
        required: false
        in: query
        description: Model of the custom field you want to retrieve
        example: opportunity
        schema:
          enum:
          - contact
          - opportunity
          - all
          type: string
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomFieldsListSuccessfulResponseDto'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: ../common/common-schemas.json#/components/schemas/BadRequestDTO
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: ../common/common-schemas.json#/components/schemas/UnauthorizedDTO
        '422':
          description: Unprocessable Entity
          content:
            application/json:
              schema:
                $ref: ../common/common-schemas.json#/components/schemas/UnprocessableDTO
      tags:
      - Custom Field
      security:
      - bearer:
        - locations/customFields.readonly
    post:
      operationId: create-custom-field
      summary: Create Custom Field
      parameters:
      - name: Version
        in: header
        description: API Version
        required: true
        schema:
          type: string
          enum:
          - '2021-07-28'
      - name: locationId
        required: true
        in: path
        description: Location Id
        example: ve9EPM428h8vShlRW1KT
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateCustomFieldsDTO'
      responses:
        '201':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomFieldSuccessfulResponseDto'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: ../common/common-schemas.json#/components/schemas/BadRequestDTO
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: ../common/common-schemas.json#/components/schemas/UnauthorizedDTO
        '422':
          description: Unprocessable Entity
          content:
            application/json:
              schema:
                $ref: ../common/common-schemas.json#/components/schemas/UnprocessableDTO
      tags:
      - Custom Field
      security:
      - bearer:
        - locations/customFields.write
  /locations/{locationId}/customFields/{id}:
    get:
      operationId: get-custom-field
      summary: Get Custom Field
      parameters:
      - name: Version
        in: header
        description: API Version
        required: true
        schema:
          type: string
          enum:
          - '2021-07-28'
      - name: locationId
        required: true
        in: path
        description: Location Id
        schema:
          example: ve9EPM428h8vShlRW1KT
          type: string
      - name: id
        required: true
        in: path
        description: Custom Field Id or Field Key (e.g. "contact.first_name" or "opportunity.pipeline_id")
        examples:
          id:
            value: 00NhGCcN1tlO8ZHcu7Wb
            summary: Custom Field ID
          field_key:
            value: contact.first_name
            summary: Custom Field Key
        schema:
          type: string
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomFieldSuccessfulResponseDto'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: ../common/common-schemas.json#/components/schemas/BadRequestDTO
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: ../common/common-schemas.json#/components/schemas/UnauthorizedDTO
        '422':
          description: Unprocessable Entity
          content:
            application/json:
              schema:
                $ref: ../common/common-schemas.json#/components/schemas/UnprocessableDTO
      tags:
      - Custom Field
      security:
      - bearer: []
    put:
      operationId: update-custom-field
      summary: Update Custom Field
      parameters:
      - name: Version
        in: header
        description: API Version
        required: true
        schema:
          type: string
          enum:
          - '2021-07-28'
      - name: locationId
        required: true
        in: path
        description: Location Id
        example: ve9EPM428h8vShlRW1KT
        schema:
          type: string
      - name: id
        required: true
        in: path
        description: Custom Field Id
        example: 00NhGCcN1tlO8ZHcu7Wb
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateCustomFieldsDTO'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomFieldSuccessfulResponseDto'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: ../common/common-schemas.json#/components/schemas/BadRequestDTO
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: ../common/common-schemas.json#/components/schemas/UnauthorizedDTO
        '422':
          description: Unprocessable Entity
          content:
            application/json:
              schema:
                $ref: ../common/common-schemas.json#/components/schemas/UnprocessableDTO
      tags:
      - Custom Field
      security:
      - bearer: []
    delete:
      operationId: delete-custom-field
      summary: Delete Custom Field
      parameters:
      - name: Version
        in: header
        description: API Version
        required: true
        schema:
          type: string
          enum:
          - '2021-07-28'
      - name: locationId
        required: true
        in: path
        description: Location Id
        example: ve9EPM428h8vShlRW1KT
        schema:
          type: string
      - name: id
        required: true
        in: path
        description: Custom Field Id
        example: 00NhGCcN1tlO8ZHcu7Wb
        schema:
          type: string
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomFieldDeleteSuccessfulResponseDto'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: ../common/common-schemas.json#/components/schemas/BadRequestDTO
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: ../common/common-schemas.json#/components/schemas/UnauthorizedDTO
        '422':
          description: Unprocessable Entity
          content:
            application/json:
              schema:
                $ref: ../common/common-schemas.json#/components/schemas/UnprocessableDTO
      tags:
      - Custom Field
      security:
      - bearer: []
  /locations/{locationId}/customFields/upload:
    post:
      operationId: upload-file-customFields
      summary: Uploads File to customFields
      parameters:
      - name: Version
        in: header
        description: API Version
        required: true
        schema:
          type: string
          enum:
          - '2021-07-28'
      - name: locationId
        required: true
        in: path
        schema:
          type: string
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/FileUploadBody'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FileUploadResponseDto'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: ../common/common-schemas.json#/components/schemas/BadRequestDTO
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: ../common/common-schemas.json#/components/schemas/UnauthorizedDTO
        '422':
          description: Unprocessable Entity
          content:
            application/json:
              schema:
                $ref: ../common/common-schemas.json#/components/schemas/UnprocessableDTO
      tags:
      - Custom Field
      security:
      - bearer:
        - locations/customFields.write
components:
  schemas:
    CustomFieldDeleteSuccessfulResponseDto:
      type: object
      properties:
        succeded:
          type: boolean
          example: true
    CustomFieldsListSuccessfulResponseDto:
      type: object
      properties:
        customFields:
          type: array
          items:
            $ref: '#/components/schemas/CustomFieldSchema'
    CustomFieldSuccessfulResponseDto:
      type: object
      properties:
        customField:
          $ref: '#/components/schemas/CustomFieldSchema'
    UpdateCustomFieldsDTO:
      type: object
      properties:
        name:
          type: string
          example: Custom Field
        placeholder:
          type: string
          example: Placeholder Text
        acceptedFormat:
          example:
          - .pdf
          - .docx
          - .jpeg
          type: array
          items:
            type: string
        isMultipleFile:
          type: boolean
          example: false
        maxNumberOfFiles:
          type: number
          example: 2
        textBoxListOptions:
          type: array
          items:
            anyOf:
            - $ref: '#/components/schemas/textBoxListOptionsSchema'
            - $ref: '#/components/schemas/textBoxListOptionsSchema'
        position:
          type: number
          example: 0
          default: 0
        model:
          type: string
          description: Model of the custom field you want to update
          example: opportunity
          enum:
          - contact
          - opportunity
      required:
      - name
    FileUploadBody:
      type: object
      properties:
        id:
          type: string
          description: Id(Contact Id/Opportunity Id/Custom Field Id)
          example: aWdODOBVOlH1RUFKWQke
        maxFiles:
          type: string
          description: Max number of files
          example: '15'
    CreateCustomFieldsDTO:
      type: object
      properties:
        name:
          type: string
          example: Custom Field
        dataType:
          type: string
          example: TEXT
        placeholder:
          type: string
          example: Placeholder Text
        acceptedFormat:
          example:
          - .pdf
          - .docx
          - .jpeg
          type: array
          items:
            type: string
        isMultipleFile:
          type: boolean
          example: false
        maxNumberOfFiles:
          type: number
          example: 2
        textBoxListOptions:
          type: array
          items:
            anyOf:
            - $ref: '#/components/schemas/textBoxListOptionsSchema'
            - $ref: '#/components/schemas/textBoxListOptionsSchema'
        position:
          type: number
          example: 0
          default: 0
        model:
          type: string
          description: Model of the custom field you want to create
          example: opportunity
          enum:
          - contact
          - opportunity
      required:
      - name
      - dataType
    textBoxListOptionsSchema:
      type: object
      properties:
        label:
          type: string
          example: First
        prefillValue:
          type: string
          example: ''
    FileUploadResponseDto:
      type: object
      properties:
        uploadedFiles:
          type: object
          description: Uploaded files
          example:
            FileName.csv: https://highlevel-private-staging.storage.googleapis.com/location/Ar4JQgIyuzRsVuwD9RSK/custom-Field/UpZLmohmKEQYn0ymqplY/56e0d7fc-085c-4a07-9e1d-6d8fdac7e710.csv
        meta:
          description: Meta data of uploaded files
          example:
          - fieldname: FileName.csv
            originalname: FileName.csv
            encoding: 7bit
            mimetype: text/csv
            size: 2061
            url: https://highlevel-private-staging.storage.googleapis.com/location/Ar4JQgIyuzRsVuwD9RSK/custom-Field/UpZLmohmKEQYn0ymqplY/56e0d7fc-085c-4a07-9e1d-6d8fdac7e710.csv
          type: array
          items:
            type: string
    CustomFieldSchema:
      type: object
      properties:
        id:
          type: string
          example: 3sv6UEo51C9Bmpo1cKTq
        name:
          type: string
          example: pincode
        fieldKey:
          type: string
          example: contact.pincode
        placeholder:
          type: string
          example: Pin code
        dataType:
          type: string
          example: TEXT
        position:
          type: number
          example: 0
        picklistOptions:
          example:
          - first option
          type: array
          items:
            type: string
        picklistImageOptions:
          example: []
          type: array
          items:
            type: string
        isAllowedCustomOption:
          type: boolean
          example: false
        isMultiFileAllowed:
          type: boolean
          example: true
        maxFileLimit:
          type: number
          example: 4
        locationId:
          type: string
          example: 3sv6UEo51C9Bmpo1cKTq
        model:
          type: string
          description: Model of the custom field
          example: opportunity
          enum:
          - contact
          - opportunity
  securitySchemes:
    bearer:
      scheme: bearer
      bearerFormat: JWT
      name: Authorization
      in: header
      description: Use the Access Token generated with user type as Sub-Account (OR) Private Integration Token of Sub-Account.
      type: http
    Location-Access:
      scheme: bearer
      bearerFormat: JWT
      name: Authorization
      in: header
      description: Use the Access Token generated with user type as Sub-Account (OR) Private Integration Token of Sub-Account.
      type: http
    Location-Access-Only:
      scheme: bearer
      bearerFormat: JWT
      name: Authorization
      in: header
      description: Use the Access Token generated with user type as Sub-Account.
      type: http
    Agency-Access:
      scheme: bearer
      bearerFormat: JWT
      name: Authorization
      in: header
      description: Use the Access Token generated with user type as Agency (OR) Private Integration Token of Agency.
      type: http
x-tagGroups:
  name: Sub-Account (Formerly location)
  tags:
  - Location
  - Location Tags
  - Custom Field
  - Custom Value
  - Template
  - Tags Search
  - Location Notes
  - Location Tasks
  - Recurring Tasks
  - Location Search
  - Custom Field Search
  - Location Keys
  - Labs
  - Conversation Channel
  - Search
  - Sub-Account (Formerly Location)
  - Tags
  - Tasks Search
  - Timezone
  - ElasticSearch