> For the complete documentation index, see [llms.txt](https://docs.usepylon.com/pylon-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.usepylon.com/pylon-docs/developer/api/api-reference/custom-fields.md).

# Custom Fields

## Get all custom fields

> Returns all custom field definitions for the specified object type. Use \`slug\` (and \`select\_metadata.options\[].slug\` for option values) in API writes and filters.\
> \
> \*\*Rate limit:\*\* 300 requests per minute

```json
{"openapi":"3.0.3","info":{"title":"Pylon API.","version":"1.0.0"},"tags":[],"servers":[{"description":"US region","url":"https://api.usepylon.com"},{"description":"EU region","url":"https://api.eu.usepylon.com"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"description":"Authorization: Bearer <token>","scheme":"bearer","type":"http"}},"responses":{"GetCustomFieldsResponse":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetCustomFieldsResponseBody"}}},"description":""},"BadRequestApiResponse":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorApiResponseBody"}}},"description":"The request was invalid or could not be completed."},"UnauthorizedApiResponse":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorApiResponseBody"}}},"description":"The request could not be authenticated for this API."},"ForbiddenApiResponse":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorApiResponseBody"}}},"description":"The authenticated caller or organization is not allowed to access this endpoint or operation."},"ErrorApiResponse":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorApiResponseBody"}}},"description":""},"TooManyRequestsApiResponse":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorApiResponseBody"}}},"description":"The request exceeded the applicable rate limit.","headers":{"Retry-After":{"description":"Seconds until the next request to this endpoint is permitted.","schema":{"format":"int64","type":"integer"}},"X-Retry-After":{"description":"Seconds until the full per-minute allowance is restored. Capacity returns gradually before then.","schema":{"format":"int64","type":"integer"}}}},"InternalServerErrorApiResponse":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorApiResponseBody"}}},"description":"An unexpected internal error occurred."}},"schemas":{"GetCustomFieldsResponseBody":{"properties":{"data":{"description":"The data payload of the response.","items":{"$ref":"#/components/schemas/CustomFieldDefinition"},"type":"array"},"pagination":{"$ref":"#/components/schemas/Pagination"},"request_id":{"description":"The request ID for tracking.","type":"string"}},"required":["data","request_id"],"type":"object"},"CustomFieldDefinition":{"properties":{"created_at":{"description":"When the custom field was created.","format":"date-time","type":"string"},"created_by":{"allOf":[{"$ref":"#/components/schemas/CustomFieldActor"}],"nullable":true},"default_value":{"description":"The default value for single-valued custom fields.","type":"string"},"default_values":{"description":"The default values for multi-valued custom fields.","items":{"type":"string"},"type":"array"},"description":{"description":"The description of the custom field.","type":"string"},"id":{"description":"The ID of the custom field.","type":"string"},"instructions":{"description":"Field-wide instructions for how AI populates the field.","type":"string"},"is_ai_enabled":{"description":"Whether AI is enabled for the field.","type":"boolean"},"is_read_only":{"description":"Whether the custom field is read only. Fields synced from apps and integrations are read-only.","type":"boolean"},"json_schema":{"description":"JSON schema for structured web research results, when configured.","type":"string"},"label":{"description":"The label of the custom field.","type":"string"},"number_metadata":{"$ref":"#/components/schemas/NumberMetadata"},"object_type":{"description":"The type of object this custom field is for. This can be a built-in or custom object type.","type":"string"},"requirement":{"allOf":[{"$ref":"#/components/schemas/CustomFieldRequirement"}],"nullable":true},"select_metadata":{"$ref":"#/components/schemas/SelectMetadata"},"slug":{"description":"The slug of the custom field.","type":"string"},"source":{"description":"The source of the custom field.","type":"string"},"type":{"description":"The type of the custom field.","type":"string"},"updated_at":{"description":"When the custom field was last updated.","format":"date-time","type":"string"},"updated_by":{"allOf":[{"$ref":"#/components/schemas/CustomFieldActor"}],"nullable":true},"visible_by_default":{"description":"Whether the custom field shows on records in Pylon by default. When false, it shows only where a field visibility condition makes it visible.","type":"boolean"}},"required":["created_at","description","id","instructions","is_ai_enabled","is_read_only","label","object_type","slug","source","type","updated_at","visible_by_default"],"type":"object"},"CustomFieldActor":{"properties":{"type":{"description":"\"user\" for a change made by a user, \"system\" for an automated change, such as AI-generated option descriptions, and \"unknown\" for a change made before authors were recorded.\n\nKnown values: `user`, `system`, `unknown`. This list is not exhaustive.","type":"string"},"user":{"$ref":"#/components/schemas/MiniUser"}},"required":["type"],"type":"object"},"MiniUser":{"properties":{"email":{"description":"The email of the user.","type":"string"},"id":{"description":"The ID of the user.","type":"string"}},"required":["id"],"type":"object"},"NumberMetadata":{"properties":{"currency":{"description":"The currency of the number custom field.","nullable":true,"type":"string"},"decimal_places":{"description":"The decimal places of the number custom field.","format":"int64","nullable":true,"type":"integer"},"duration_display_format":{"description":"The display format for duration format (auto, minutes, hours, days, months, years).","type":"string"},"duration_input_unit":{"description":"The input unit for duration format (seconds, minutes, hours, days).","type":"string"},"format":{"description":"The format of the number custom field.\n\nKnown values: `with_commas`, `percent`, `currency`, `duration`. This list is not exhaustive.","nullable":true,"type":"string"}},"type":"object"},"CustomFieldRequirement":{"properties":{"filter":{"$ref":"#/components/schemas/Filter"},"filter_unsupported":{"description":"Whether the requirement has conditions that can't be expressed as an API filter. When true, filter is omitted.","type":"boolean"},"setting":{"description":"When the custom field is required. \"required_for_closed\" requires it when closing an issue, and \"required_under_certain_conditions\" requires it on issues that match filter.\n\nKnown values: `not_required`, `required`, `required_for_closed`, `required_under_certain_conditions`. This list is not exhaustive.","type":"string"}},"required":["setting"],"type":"object"},"Filter":{"properties":{"field":{"description":"The field for this filter.  For allowed fields, see the documentation for\nthe specific endpoint you are using.\nFor non-compound filters (any operators other than \"and\", \"or\", or \"not\"),\nfield must be set, along with either value or values, depending on the operator.","type":"string"},"operator":{"description":"The operator for this filter. Required unless related_object is set.","enum":["equals","not_equals","contains","does_not_contain","in","not_in","and","or","not","time_is_after","time_is_before","time_range","string_contains","string_does_not_contain","is_set","is_unset","greater_than","less_than","greater_than_or_equals","less_than_or_equals","includes_all_of","starts_with","ends_with","time_is_in_last","time_is_not_in_last","time_is_in_next","time_is_not_in_next","includes_exactly","belongs_to","not_belongs_to"],"type":"string"},"related_object":{"$ref":"#/components/schemas/FilterRelatedObject"},"subfilters":{"description":"Sub-filters for this filter.  Valid only when operator is \"and\", \"or\", or \"not\"; \"not\"\ntakes exactly one subfilter.\nThe maximum allowed depth for a tree of filters is 5, counting the top-level filter.","items":{"$ref":"#/components/schemas/Filter"},"type":"array"},"value":{"description":"The value for this filter. Used by single-valued operators: \"equals\", \"not_equals\",\n\"contains\", \"does_not_contain\", \"string_contains\", \"string_does_not_contain\",\n\"starts_with\", \"ends_with\", \"time_is_after\", \"time_is_before\", \"time_is_in_last\",\n\"time_is_not_in_last\", \"time_is_in_next\", \"time_is_not_in_next\", \"greater_than\",\n\"less_than\", \"greater_than_or_equals\", and \"less_than_or_equals\".\nOn fields that hold user IDs, \"current_user\" means the API token's user; on fields that\nhold team IDs, \"my_teams\" means that user's teams. The same applies to values.","type":"string"},"values":{"description":"The values for this filter. Used by multi-valued operators: \"in\", \"not_in\", \"includes_all_of\",\n\"includes_exactly\", \"belongs_to\", and \"not_belongs_to\". For \"time_range\", set to [start, end].","items":{"type":"string"},"type":"array"}},"type":"object"},"FilterRelatedObject":{"properties":{"custom_field":{"description":"The slug of a relationship custom field to follow. Returned when reading stored filters,\nsuch as ticket form conditions; search filters don't accept it yet.","type":"string"},"filter":{"$ref":"#/components/schemas/Filter"},"relationship":{"description":"The built-in relationship to follow, such as \"account\". Each search endpoint lists the\nrelationships its filter accepts. Exactly one of relationship and custom_field is set.","type":"string"}},"required":["filter"],"type":"object"},"SelectMetadata":{"properties":{"options":{"description":"The list options of the select custom field. This is only present for select and multiselect custom fields.","items":{"$ref":"#/components/schemas/CustomFieldDefinitionSelectOption"},"nullable":true,"type":"array"}},"type":"object"},"CustomFieldDefinitionSelectOption":{"properties":{"ai_description":{"description":"The AI description of the option. This is used to help the AI understand when to select this option.","type":"string"},"label":{"description":"The label of the option.","type":"string"},"slug":{"description":"The slug of the option.","type":"string"}},"type":"object"},"Pagination":{"description":"Pagination information for list responses. Absent when there are no more results.","properties":{"cursor":{"description":"The cursor for the next page of results.","type":"string"},"has_next_page":{"description":"Indicates if there is a next page of results.","type":"boolean"}},"required":["cursor","has_next_page"],"title":"Pagination","type":"object"},"ErrorApiResponseBody":{"properties":{"code":{"description":"A stable machine-readable identifier for this failure, safe to branch on\ninstead of the message text. Omitted when the failure has no assigned code.\n\nKnown values: `recipients_suppressed`, `email_bounced`, `internal_issue_reply_not_allowed`, `duplicate_object`, `invalid_authorization_header`, `invalid_api_token`, `invalid_oauth_token`, `wrong_region_token`, `organization_deactivated`, `organization_suspended`, `permission_denied`, `oauth_not_permitted`, `rate_limited`, `not_found`, `method_not_allowed`, `payload_too_large`, `invalid_request_body`, `internal_error`, `invalid_webhook_credentials`, `organization_inactive`, `invalid_filter`. This list is not exhaustive.","type":"string"},"errors":{"description":"The list of errors.","items":{"type":"string"},"type":"array"},"exists_id":{"description":"The ID of the object that already exists if this is a duplicate object error.","type":"string"},"filter_errors":{"description":"One entry per problem found in the request's filter. Present only when code is\n\"invalid_filter\"; errors carries the same messages as plain text.","items":{"$ref":"#/components/schemas/FilterError"},"type":"array"},"request_id":{"description":"The request ID for tracking.","type":"string"}},"required":["request_id"],"type":"object"},"FilterError":{"properties":{"allowed":{"description":"What is accepted in place of the rejected field, operator, value, or relationship.\nLong lists are cut off after 100 entries.","items":{"type":"string"},"type":"array"},"code":{"description":"A stable machine-readable identifier for this problem.\n\nKnown values: `invalid_shape`, `too_deep`, `unknown_operator`, `unknown_field`, `operator_not_allowed`, `missing_value`, `unexpected_value`, `invalid_value`, `unknown_relationship`, `unsupported`. This list is not exhaustive.","type":"string"},"field":{"description":"The field of the filter at path, when it has one.","type":"string"},"message":{"description":"What is wrong and how to fix it.","type":"string"},"operator":{"description":"The operator of the filter at path, when it has one.","type":"string"},"path":{"description":"Where the problem is, as a JSONPath from the root of the filter, such as\n\"$.subfilters[1].related_object.filter\".","type":"string"},"suggestion":{"description":"The accepted entry closest to the rejected one, when one is close enough.","type":"string"}},"required":["code","message","path"],"type":"object"}}},"paths":{"/custom-fields":{"get":{"description":"Returns all custom field definitions for the specified object type. Use `slug` (and `select_metadata.options[].slug` for option values) in API writes and filters.\n\n**Rate limit:** 300 requests per minute","operationId":"GetCustomFields","parameters":[{"description":"The object type of the custom fields. Can be \"account\", \"issue\", \"contact\", \"task\", \"project\", \"meeting\", \"opportunity\", or \"feature_request\".","in":"query","name":"object_type","required":true,"schema":{"enum":["account","issue","contact","task","project","meeting","opportunity","feature_request"],"type":"string"}}],"responses":{"200":{"$ref":"#/components/responses/GetCustomFieldsResponse"},"400":{"$ref":"#/components/responses/BadRequestApiResponse"},"401":{"$ref":"#/components/responses/UnauthorizedApiResponse"},"403":{"$ref":"#/components/responses/ForbiddenApiResponse"},"404":{"$ref":"#/components/responses/ErrorApiResponse"},"429":{"$ref":"#/components/responses/TooManyRequestsApiResponse"},"500":{"$ref":"#/components/responses/InternalServerErrorApiResponse"}},"summary":"Get all custom fields","tags":["custom-fields"]}}}}
```

## Get a custom field by its ID

> Returns a single custom field definition by ID.\
> \
> \*\*Rate limit:\*\* 300 requests per minute

```json
{"openapi":"3.0.3","info":{"title":"Pylon API.","version":"1.0.0"},"tags":[],"servers":[{"description":"US region","url":"https://api.usepylon.com"},{"description":"EU region","url":"https://api.eu.usepylon.com"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"description":"Authorization: Bearer <token>","scheme":"bearer","type":"http"}},"responses":{"GetCustomFieldResponse":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetCustomFieldResponseBody"}}},"description":""},"BadRequestApiResponse":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorApiResponseBody"}}},"description":"The request was invalid or could not be completed."},"UnauthorizedApiResponse":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorApiResponseBody"}}},"description":"The request could not be authenticated for this API."},"ForbiddenApiResponse":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorApiResponseBody"}}},"description":"The authenticated caller or organization is not allowed to access this endpoint or operation."},"ErrorApiResponse":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorApiResponseBody"}}},"description":""},"TooManyRequestsApiResponse":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorApiResponseBody"}}},"description":"The request exceeded the applicable rate limit.","headers":{"Retry-After":{"description":"Seconds until the next request to this endpoint is permitted.","schema":{"format":"int64","type":"integer"}},"X-Retry-After":{"description":"Seconds until the full per-minute allowance is restored. Capacity returns gradually before then.","schema":{"format":"int64","type":"integer"}}}},"InternalServerErrorApiResponse":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorApiResponseBody"}}},"description":"An unexpected internal error occurred."}},"schemas":{"GetCustomFieldResponseBody":{"properties":{"data":{"$ref":"#/components/schemas/CustomFieldDefinition"},"request_id":{"description":"The request ID for tracking.","type":"string"}},"required":["data","request_id"],"type":"object"},"CustomFieldDefinition":{"properties":{"created_at":{"description":"When the custom field was created.","format":"date-time","type":"string"},"created_by":{"allOf":[{"$ref":"#/components/schemas/CustomFieldActor"}],"nullable":true},"default_value":{"description":"The default value for single-valued custom fields.","type":"string"},"default_values":{"description":"The default values for multi-valued custom fields.","items":{"type":"string"},"type":"array"},"description":{"description":"The description of the custom field.","type":"string"},"id":{"description":"The ID of the custom field.","type":"string"},"instructions":{"description":"Field-wide instructions for how AI populates the field.","type":"string"},"is_ai_enabled":{"description":"Whether AI is enabled for the field.","type":"boolean"},"is_read_only":{"description":"Whether the custom field is read only. Fields synced from apps and integrations are read-only.","type":"boolean"},"json_schema":{"description":"JSON schema for structured web research results, when configured.","type":"string"},"label":{"description":"The label of the custom field.","type":"string"},"number_metadata":{"$ref":"#/components/schemas/NumberMetadata"},"object_type":{"description":"The type of object this custom field is for. This can be a built-in or custom object type.","type":"string"},"requirement":{"allOf":[{"$ref":"#/components/schemas/CustomFieldRequirement"}],"nullable":true},"select_metadata":{"$ref":"#/components/schemas/SelectMetadata"},"slug":{"description":"The slug of the custom field.","type":"string"},"source":{"description":"The source of the custom field.","type":"string"},"type":{"description":"The type of the custom field.","type":"string"},"updated_at":{"description":"When the custom field was last updated.","format":"date-time","type":"string"},"updated_by":{"allOf":[{"$ref":"#/components/schemas/CustomFieldActor"}],"nullable":true},"visible_by_default":{"description":"Whether the custom field shows on records in Pylon by default. When false, it shows only where a field visibility condition makes it visible.","type":"boolean"}},"required":["created_at","description","id","instructions","is_ai_enabled","is_read_only","label","object_type","slug","source","type","updated_at","visible_by_default"],"type":"object"},"CustomFieldActor":{"properties":{"type":{"description":"\"user\" for a change made by a user, \"system\" for an automated change, such as AI-generated option descriptions, and \"unknown\" for a change made before authors were recorded.\n\nKnown values: `user`, `system`, `unknown`. This list is not exhaustive.","type":"string"},"user":{"$ref":"#/components/schemas/MiniUser"}},"required":["type"],"type":"object"},"MiniUser":{"properties":{"email":{"description":"The email of the user.","type":"string"},"id":{"description":"The ID of the user.","type":"string"}},"required":["id"],"type":"object"},"NumberMetadata":{"properties":{"currency":{"description":"The currency of the number custom field.","nullable":true,"type":"string"},"decimal_places":{"description":"The decimal places of the number custom field.","format":"int64","nullable":true,"type":"integer"},"duration_display_format":{"description":"The display format for duration format (auto, minutes, hours, days, months, years).","type":"string"},"duration_input_unit":{"description":"The input unit for duration format (seconds, minutes, hours, days).","type":"string"},"format":{"description":"The format of the number custom field.\n\nKnown values: `with_commas`, `percent`, `currency`, `duration`. This list is not exhaustive.","nullable":true,"type":"string"}},"type":"object"},"CustomFieldRequirement":{"properties":{"filter":{"$ref":"#/components/schemas/Filter"},"filter_unsupported":{"description":"Whether the requirement has conditions that can't be expressed as an API filter. When true, filter is omitted.","type":"boolean"},"setting":{"description":"When the custom field is required. \"required_for_closed\" requires it when closing an issue, and \"required_under_certain_conditions\" requires it on issues that match filter.\n\nKnown values: `not_required`, `required`, `required_for_closed`, `required_under_certain_conditions`. This list is not exhaustive.","type":"string"}},"required":["setting"],"type":"object"},"Filter":{"properties":{"field":{"description":"The field for this filter.  For allowed fields, see the documentation for\nthe specific endpoint you are using.\nFor non-compound filters (any operators other than \"and\", \"or\", or \"not\"),\nfield must be set, along with either value or values, depending on the operator.","type":"string"},"operator":{"description":"The operator for this filter. Required unless related_object is set.","enum":["equals","not_equals","contains","does_not_contain","in","not_in","and","or","not","time_is_after","time_is_before","time_range","string_contains","string_does_not_contain","is_set","is_unset","greater_than","less_than","greater_than_or_equals","less_than_or_equals","includes_all_of","starts_with","ends_with","time_is_in_last","time_is_not_in_last","time_is_in_next","time_is_not_in_next","includes_exactly","belongs_to","not_belongs_to"],"type":"string"},"related_object":{"$ref":"#/components/schemas/FilterRelatedObject"},"subfilters":{"description":"Sub-filters for this filter.  Valid only when operator is \"and\", \"or\", or \"not\"; \"not\"\ntakes exactly one subfilter.\nThe maximum allowed depth for a tree of filters is 5, counting the top-level filter.","items":{"$ref":"#/components/schemas/Filter"},"type":"array"},"value":{"description":"The value for this filter. Used by single-valued operators: \"equals\", \"not_equals\",\n\"contains\", \"does_not_contain\", \"string_contains\", \"string_does_not_contain\",\n\"starts_with\", \"ends_with\", \"time_is_after\", \"time_is_before\", \"time_is_in_last\",\n\"time_is_not_in_last\", \"time_is_in_next\", \"time_is_not_in_next\", \"greater_than\",\n\"less_than\", \"greater_than_or_equals\", and \"less_than_or_equals\".\nOn fields that hold user IDs, \"current_user\" means the API token's user; on fields that\nhold team IDs, \"my_teams\" means that user's teams. The same applies to values.","type":"string"},"values":{"description":"The values for this filter. Used by multi-valued operators: \"in\", \"not_in\", \"includes_all_of\",\n\"includes_exactly\", \"belongs_to\", and \"not_belongs_to\". For \"time_range\", set to [start, end].","items":{"type":"string"},"type":"array"}},"type":"object"},"FilterRelatedObject":{"properties":{"custom_field":{"description":"The slug of a relationship custom field to follow. Returned when reading stored filters,\nsuch as ticket form conditions; search filters don't accept it yet.","type":"string"},"filter":{"$ref":"#/components/schemas/Filter"},"relationship":{"description":"The built-in relationship to follow, such as \"account\". Each search endpoint lists the\nrelationships its filter accepts. Exactly one of relationship and custom_field is set.","type":"string"}},"required":["filter"],"type":"object"},"SelectMetadata":{"properties":{"options":{"description":"The list options of the select custom field. This is only present for select and multiselect custom fields.","items":{"$ref":"#/components/schemas/CustomFieldDefinitionSelectOption"},"nullable":true,"type":"array"}},"type":"object"},"CustomFieldDefinitionSelectOption":{"properties":{"ai_description":{"description":"The AI description of the option. This is used to help the AI understand when to select this option.","type":"string"},"label":{"description":"The label of the option.","type":"string"},"slug":{"description":"The slug of the option.","type":"string"}},"type":"object"},"ErrorApiResponseBody":{"properties":{"code":{"description":"A stable machine-readable identifier for this failure, safe to branch on\ninstead of the message text. Omitted when the failure has no assigned code.\n\nKnown values: `recipients_suppressed`, `email_bounced`, `internal_issue_reply_not_allowed`, `duplicate_object`, `invalid_authorization_header`, `invalid_api_token`, `invalid_oauth_token`, `wrong_region_token`, `organization_deactivated`, `organization_suspended`, `permission_denied`, `oauth_not_permitted`, `rate_limited`, `not_found`, `method_not_allowed`, `payload_too_large`, `invalid_request_body`, `internal_error`, `invalid_webhook_credentials`, `organization_inactive`, `invalid_filter`. This list is not exhaustive.","type":"string"},"errors":{"description":"The list of errors.","items":{"type":"string"},"type":"array"},"exists_id":{"description":"The ID of the object that already exists if this is a duplicate object error.","type":"string"},"filter_errors":{"description":"One entry per problem found in the request's filter. Present only when code is\n\"invalid_filter\"; errors carries the same messages as plain text.","items":{"$ref":"#/components/schemas/FilterError"},"type":"array"},"request_id":{"description":"The request ID for tracking.","type":"string"}},"required":["request_id"],"type":"object"},"FilterError":{"properties":{"allowed":{"description":"What is accepted in place of the rejected field, operator, value, or relationship.\nLong lists are cut off after 100 entries.","items":{"type":"string"},"type":"array"},"code":{"description":"A stable machine-readable identifier for this problem.\n\nKnown values: `invalid_shape`, `too_deep`, `unknown_operator`, `unknown_field`, `operator_not_allowed`, `missing_value`, `unexpected_value`, `invalid_value`, `unknown_relationship`, `unsupported`. This list is not exhaustive.","type":"string"},"field":{"description":"The field of the filter at path, when it has one.","type":"string"},"message":{"description":"What is wrong and how to fix it.","type":"string"},"operator":{"description":"The operator of the filter at path, when it has one.","type":"string"},"path":{"description":"Where the problem is, as a JSONPath from the root of the filter, such as\n\"$.subfilters[1].related_object.filter\".","type":"string"},"suggestion":{"description":"The accepted entry closest to the rejected one, when one is close enough.","type":"string"}},"required":["code","message","path"],"type":"object"}}},"paths":{"/custom-fields/{id}":{"get":{"description":"Returns a single custom field definition by ID.\n\n**Rate limit:** 300 requests per minute","operationId":"GetCustomField","parameters":[{"description":"The ID of the custom field.","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"$ref":"#/components/responses/GetCustomFieldResponse"},"400":{"$ref":"#/components/responses/BadRequestApiResponse"},"401":{"$ref":"#/components/responses/UnauthorizedApiResponse"},"403":{"$ref":"#/components/responses/ForbiddenApiResponse"},"404":{"$ref":"#/components/responses/ErrorApiResponse"},"429":{"$ref":"#/components/responses/TooManyRequestsApiResponse"},"500":{"$ref":"#/components/responses/InternalServerErrorApiResponse"}},"summary":"Get a custom field by its ID","tags":["custom-fields"]}}}}
```

## Create a custom field

> Creates a new custom field definition for the specified object type.\
> \
> \*\*Rate limit:\*\* 120 requests per minute

```json
{"openapi":"3.0.3","info":{"title":"Pylon API.","version":"1.0.0"},"tags":[],"servers":[{"description":"US region","url":"https://api.usepylon.com"},{"description":"EU region","url":"https://api.eu.usepylon.com"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"description":"Authorization: Bearer <token>","scheme":"bearer","type":"http"}},"schemas":{"CreateCustomFieldRequestBody":{"properties":{"default_value":{"description":"The default value for single-valued custom fields.","type":"string"},"default_values":{"description":"The default values for multi-valued custom fields.","items":{"type":"string"},"type":"array"},"description":{"description":"The description of the custom field.","type":"string"},"instructions":{"description":"Field-wide instructions for how AI should populate the field. For AI-enabled fields, an empty value falls back to description.","type":"string"},"is_ai_enabled":{"description":"Whether AI should populate the field. Web research fields are always AI-enabled.","type":"boolean"},"json_schema":{"description":"JSON schema for structured web research results. Required for contact web research fields.","type":"string"},"label":{"description":"The label of the custom field.","type":"string"},"object_type":{"description":"The object type of the custom field. Can be \"account\", \"issue\", \"contact\", \"task\", \"project\", \"meeting\", \"opportunity\", or \"feature_request\".","enum":["account","issue","contact","task","project","meeting","opportunity","feature_request"],"type":"string"},"select_options":{"description":"The list options of the select custom field. This is only present for select and multiselect custom fields.","items":{"$ref":"#/components/schemas/CustomFieldDefinitionSelectOption"},"type":"array"},"slug":{"description":"The slug of the custom field.","type":"string"},"type":{"description":"The type of the custom field. Can be one of `text`, `number`, `boolean`, `date`, `datetime`, `user`, `url`, `select`, `multiselect`, or `web_research`. Number fields accept integers and fractional values, such as 7.4; decimal is not a separate field type. Web research is supported for accounts and for contacts when enabled for the organization.","type":"string"}},"required":["object_type","label","type"],"type":"object"},"CustomFieldDefinitionSelectOption":{"properties":{"ai_description":{"description":"The AI description of the option. This is used to help the AI understand when to select this option.","type":"string"},"label":{"description":"The label of the option.","type":"string"},"slug":{"description":"The slug of the option.","type":"string"}},"type":"object"},"CreateCustomFieldResponseBody":{"properties":{"data":{"$ref":"#/components/schemas/CustomFieldDefinition"},"request_id":{"description":"The request ID for tracking.","type":"string"}},"required":["data","request_id"],"type":"object"},"CustomFieldDefinition":{"properties":{"created_at":{"description":"When the custom field was created.","format":"date-time","type":"string"},"created_by":{"allOf":[{"$ref":"#/components/schemas/CustomFieldActor"}],"nullable":true},"default_value":{"description":"The default value for single-valued custom fields.","type":"string"},"default_values":{"description":"The default values for multi-valued custom fields.","items":{"type":"string"},"type":"array"},"description":{"description":"The description of the custom field.","type":"string"},"id":{"description":"The ID of the custom field.","type":"string"},"instructions":{"description":"Field-wide instructions for how AI populates the field.","type":"string"},"is_ai_enabled":{"description":"Whether AI is enabled for the field.","type":"boolean"},"is_read_only":{"description":"Whether the custom field is read only. Fields synced from apps and integrations are read-only.","type":"boolean"},"json_schema":{"description":"JSON schema for structured web research results, when configured.","type":"string"},"label":{"description":"The label of the custom field.","type":"string"},"number_metadata":{"$ref":"#/components/schemas/NumberMetadata"},"object_type":{"description":"The type of object this custom field is for. This can be a built-in or custom object type.","type":"string"},"requirement":{"allOf":[{"$ref":"#/components/schemas/CustomFieldRequirement"}],"nullable":true},"select_metadata":{"$ref":"#/components/schemas/SelectMetadata"},"slug":{"description":"The slug of the custom field.","type":"string"},"source":{"description":"The source of the custom field.","type":"string"},"type":{"description":"The type of the custom field.","type":"string"},"updated_at":{"description":"When the custom field was last updated.","format":"date-time","type":"string"},"updated_by":{"allOf":[{"$ref":"#/components/schemas/CustomFieldActor"}],"nullable":true},"visible_by_default":{"description":"Whether the custom field shows on records in Pylon by default. When false, it shows only where a field visibility condition makes it visible.","type":"boolean"}},"required":["created_at","description","id","instructions","is_ai_enabled","is_read_only","label","object_type","slug","source","type","updated_at","visible_by_default"],"type":"object"},"CustomFieldActor":{"properties":{"type":{"description":"\"user\" for a change made by a user, \"system\" for an automated change, such as AI-generated option descriptions, and \"unknown\" for a change made before authors were recorded.\n\nKnown values: `user`, `system`, `unknown`. This list is not exhaustive.","type":"string"},"user":{"$ref":"#/components/schemas/MiniUser"}},"required":["type"],"type":"object"},"MiniUser":{"properties":{"email":{"description":"The email of the user.","type":"string"},"id":{"description":"The ID of the user.","type":"string"}},"required":["id"],"type":"object"},"NumberMetadata":{"properties":{"currency":{"description":"The currency of the number custom field.","nullable":true,"type":"string"},"decimal_places":{"description":"The decimal places of the number custom field.","format":"int64","nullable":true,"type":"integer"},"duration_display_format":{"description":"The display format for duration format (auto, minutes, hours, days, months, years).","type":"string"},"duration_input_unit":{"description":"The input unit for duration format (seconds, minutes, hours, days).","type":"string"},"format":{"description":"The format of the number custom field.\n\nKnown values: `with_commas`, `percent`, `currency`, `duration`. This list is not exhaustive.","nullable":true,"type":"string"}},"type":"object"},"CustomFieldRequirement":{"properties":{"filter":{"$ref":"#/components/schemas/Filter"},"filter_unsupported":{"description":"Whether the requirement has conditions that can't be expressed as an API filter. When true, filter is omitted.","type":"boolean"},"setting":{"description":"When the custom field is required. \"required_for_closed\" requires it when closing an issue, and \"required_under_certain_conditions\" requires it on issues that match filter.\n\nKnown values: `not_required`, `required`, `required_for_closed`, `required_under_certain_conditions`. This list is not exhaustive.","type":"string"}},"required":["setting"],"type":"object"},"Filter":{"properties":{"field":{"description":"The field for this filter.  For allowed fields, see the documentation for\nthe specific endpoint you are using.\nFor non-compound filters (any operators other than \"and\", \"or\", or \"not\"),\nfield must be set, along with either value or values, depending on the operator.","type":"string"},"operator":{"description":"The operator for this filter. Required unless related_object is set.","enum":["equals","not_equals","contains","does_not_contain","in","not_in","and","or","not","time_is_after","time_is_before","time_range","string_contains","string_does_not_contain","is_set","is_unset","greater_than","less_than","greater_than_or_equals","less_than_or_equals","includes_all_of","starts_with","ends_with","time_is_in_last","time_is_not_in_last","time_is_in_next","time_is_not_in_next","includes_exactly","belongs_to","not_belongs_to"],"type":"string"},"related_object":{"$ref":"#/components/schemas/FilterRelatedObject"},"subfilters":{"description":"Sub-filters for this filter.  Valid only when operator is \"and\", \"or\", or \"not\"; \"not\"\ntakes exactly one subfilter.\nThe maximum allowed depth for a tree of filters is 5, counting the top-level filter.","items":{"$ref":"#/components/schemas/Filter"},"type":"array"},"value":{"description":"The value for this filter. Used by single-valued operators: \"equals\", \"not_equals\",\n\"contains\", \"does_not_contain\", \"string_contains\", \"string_does_not_contain\",\n\"starts_with\", \"ends_with\", \"time_is_after\", \"time_is_before\", \"time_is_in_last\",\n\"time_is_not_in_last\", \"time_is_in_next\", \"time_is_not_in_next\", \"greater_than\",\n\"less_than\", \"greater_than_or_equals\", and \"less_than_or_equals\".\nOn fields that hold user IDs, \"current_user\" means the API token's user; on fields that\nhold team IDs, \"my_teams\" means that user's teams. The same applies to values.","type":"string"},"values":{"description":"The values for this filter. Used by multi-valued operators: \"in\", \"not_in\", \"includes_all_of\",\n\"includes_exactly\", \"belongs_to\", and \"not_belongs_to\". For \"time_range\", set to [start, end].","items":{"type":"string"},"type":"array"}},"type":"object"},"FilterRelatedObject":{"properties":{"custom_field":{"description":"The slug of a relationship custom field to follow. Returned when reading stored filters,\nsuch as ticket form conditions; search filters don't accept it yet.","type":"string"},"filter":{"$ref":"#/components/schemas/Filter"},"relationship":{"description":"The built-in relationship to follow, such as \"account\". Each search endpoint lists the\nrelationships its filter accepts. Exactly one of relationship and custom_field is set.","type":"string"}},"required":["filter"],"type":"object"},"SelectMetadata":{"properties":{"options":{"description":"The list options of the select custom field. This is only present for select and multiselect custom fields.","items":{"$ref":"#/components/schemas/CustomFieldDefinitionSelectOption"},"nullable":true,"type":"array"}},"type":"object"},"ErrorApiResponseBody":{"properties":{"code":{"description":"A stable machine-readable identifier for this failure, safe to branch on\ninstead of the message text. Omitted when the failure has no assigned code.\n\nKnown values: `recipients_suppressed`, `email_bounced`, `internal_issue_reply_not_allowed`, `duplicate_object`, `invalid_authorization_header`, `invalid_api_token`, `invalid_oauth_token`, `wrong_region_token`, `organization_deactivated`, `organization_suspended`, `permission_denied`, `oauth_not_permitted`, `rate_limited`, `not_found`, `method_not_allowed`, `payload_too_large`, `invalid_request_body`, `internal_error`, `invalid_webhook_credentials`, `organization_inactive`, `invalid_filter`. This list is not exhaustive.","type":"string"},"errors":{"description":"The list of errors.","items":{"type":"string"},"type":"array"},"exists_id":{"description":"The ID of the object that already exists if this is a duplicate object error.","type":"string"},"filter_errors":{"description":"One entry per problem found in the request's filter. Present only when code is\n\"invalid_filter\"; errors carries the same messages as plain text.","items":{"$ref":"#/components/schemas/FilterError"},"type":"array"},"request_id":{"description":"The request ID for tracking.","type":"string"}},"required":["request_id"],"type":"object"},"FilterError":{"properties":{"allowed":{"description":"What is accepted in place of the rejected field, operator, value, or relationship.\nLong lists are cut off after 100 entries.","items":{"type":"string"},"type":"array"},"code":{"description":"A stable machine-readable identifier for this problem.\n\nKnown values: `invalid_shape`, `too_deep`, `unknown_operator`, `unknown_field`, `operator_not_allowed`, `missing_value`, `unexpected_value`, `invalid_value`, `unknown_relationship`, `unsupported`. This list is not exhaustive.","type":"string"},"field":{"description":"The field of the filter at path, when it has one.","type":"string"},"message":{"description":"What is wrong and how to fix it.","type":"string"},"operator":{"description":"The operator of the filter at path, when it has one.","type":"string"},"path":{"description":"Where the problem is, as a JSONPath from the root of the filter, such as\n\"$.subfilters[1].related_object.filter\".","type":"string"},"suggestion":{"description":"The accepted entry closest to the rejected one, when one is close enough.","type":"string"}},"required":["code","message","path"],"type":"object"}},"responses":{"CreateCustomFieldResponse":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateCustomFieldResponseBody"}}},"description":""},"BadRequestApiResponse":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorApiResponseBody"}}},"description":"The request was invalid or could not be completed."},"UnauthorizedApiResponse":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorApiResponseBody"}}},"description":"The request could not be authenticated for this API."},"ForbiddenApiResponse":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorApiResponseBody"}}},"description":"The authenticated caller or organization is not allowed to access this endpoint or operation."},"ErrorApiResponse":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorApiResponseBody"}}},"description":""},"TooManyRequestsApiResponse":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorApiResponseBody"}}},"description":"The request exceeded the applicable rate limit.","headers":{"Retry-After":{"description":"Seconds until the next request to this endpoint is permitted.","schema":{"format":"int64","type":"integer"}},"X-Retry-After":{"description":"Seconds until the full per-minute allowance is restored. Capacity returns gradually before then.","schema":{"format":"int64","type":"integer"}}}},"InternalServerErrorApiResponse":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorApiResponseBody"}}},"description":"An unexpected internal error occurred."}}},"paths":{"/custom-fields":{"post":{"description":"Creates a new custom field definition for the specified object type.\n\n**Rate limit:** 120 requests per minute","operationId":"CreateCustomField","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateCustomFieldRequestBody"}}}},"responses":{"200":{"$ref":"#/components/responses/CreateCustomFieldResponse"},"400":{"$ref":"#/components/responses/BadRequestApiResponse"},"401":{"$ref":"#/components/responses/UnauthorizedApiResponse"},"403":{"$ref":"#/components/responses/ForbiddenApiResponse"},"404":{"$ref":"#/components/responses/ErrorApiResponse"},"429":{"$ref":"#/components/responses/TooManyRequestsApiResponse"},"500":{"$ref":"#/components/responses/InternalServerErrorApiResponse"}},"summary":"Create a custom field","tags":["custom-fields"]}}}}
```

## Update a custom field

> Updates a custom field definition. Only provided fields are modified.\
> \
> \*\*Rate limit:\*\* 120 requests per minute

```json
{"openapi":"3.0.3","info":{"title":"Pylon API.","version":"1.0.0"},"tags":[],"servers":[{"description":"US region","url":"https://api.usepylon.com"},{"description":"EU region","url":"https://api.eu.usepylon.com"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"description":"Authorization: Bearer <token>","scheme":"bearer","type":"http"}},"schemas":{"UpdateCustomFieldRequestBody":{"properties":{"add_select_options":{"description":"Options to add without replacing existing options or changing existing labels and AI criteria. Cannot be combined with select_options.","items":{"$ref":"#/components/schemas/CustomFieldDefinitionSelectOption"},"type":"array"},"default_value":{"description":"The default value for single-valued custom fields.","type":"string"},"default_values":{"description":"The default values for multi-valued custom fields.","items":{"type":"string"},"type":"array"},"description":{"description":"The description of the custom field.","type":"string"},"instructions":{"description":"Field-wide instructions for how AI should populate the field. An empty string clears saved instructions when AI is disabled.","type":"string"},"is_ai_enabled":{"description":"Whether AI should populate the field. Omit to preserve the current setting.","type":"boolean"},"label":{"description":"The label of the custom field.","type":"string"},"option_descriptions":{"additionalProperties":{"type":"string"},"description":"AI selection criteria keyed by exact option slug. Omitted options are preserved; an empty string clears an option's criteria.","type":"object"},"requirement":{"$ref":"#/components/schemas/UpdateCustomFieldRequirement"},"select_options":{"description":"The complete list of options for a select or multiselect custom field. Options missing from the list are deleted and their stored values are cleared asynchronously. Prefer the dedicated select option endpoints, which can rename an option without losing stored values.","items":{"$ref":"#/components/schemas/CustomFieldDefinitionSelectOption"},"type":"array"},"slug":{"description":"The slug of the custom field.","type":"string"},"visible_by_default":{"description":"Whether the custom field shows on records in Pylon by default. When false, it shows only where a field visibility condition makes it visible. Omit to keep the current setting.","type":"boolean"}},"type":"object"},"CustomFieldDefinitionSelectOption":{"properties":{"ai_description":{"description":"The AI description of the option. This is used to help the AI understand when to select this option.","type":"string"},"label":{"description":"The label of the option.","type":"string"},"slug":{"description":"The slug of the option.","type":"string"}},"type":"object"},"UpdateCustomFieldRequirement":{"properties":{"filter":{"$ref":"#/components/schemas/Filter"},"filter_unsupported":{"description":"Must be false. A requirement whose conditions can't be expressed as an API filter can't be saved through the API; edit it in the app.","type":"boolean"},"setting":{"description":"When the custom field is required. \"required_for_closed\" requires it when closing an issue (only issues that match filter, when set), and \"required_under_certain_conditions\" requires it on issues that match filter, which is then required. Both are only supported on issue fields, issue and feature request fields can't be changed to \"required\", and filter isn't allowed with the other settings.","enum":["not_required","required","required_for_closed","required_under_certain_conditions"],"type":"string"}},"required":["setting"],"type":"object"},"Filter":{"properties":{"field":{"description":"The field for this filter.  For allowed fields, see the documentation for\nthe specific endpoint you are using.\nFor non-compound filters (any operators other than \"and\", \"or\", or \"not\"),\nfield must be set, along with either value or values, depending on the operator.","type":"string"},"operator":{"description":"The operator for this filter. Required unless related_object is set.","enum":["equals","not_equals","contains","does_not_contain","in","not_in","and","or","not","time_is_after","time_is_before","time_range","string_contains","string_does_not_contain","is_set","is_unset","greater_than","less_than","greater_than_or_equals","less_than_or_equals","includes_all_of","starts_with","ends_with","time_is_in_last","time_is_not_in_last","time_is_in_next","time_is_not_in_next","includes_exactly","belongs_to","not_belongs_to"],"type":"string"},"related_object":{"$ref":"#/components/schemas/FilterRelatedObject"},"subfilters":{"description":"Sub-filters for this filter.  Valid only when operator is \"and\", \"or\", or \"not\"; \"not\"\ntakes exactly one subfilter.\nThe maximum allowed depth for a tree of filters is 5, counting the top-level filter.","items":{"$ref":"#/components/schemas/Filter"},"type":"array"},"value":{"description":"The value for this filter. Used by single-valued operators: \"equals\", \"not_equals\",\n\"contains\", \"does_not_contain\", \"string_contains\", \"string_does_not_contain\",\n\"starts_with\", \"ends_with\", \"time_is_after\", \"time_is_before\", \"time_is_in_last\",\n\"time_is_not_in_last\", \"time_is_in_next\", \"time_is_not_in_next\", \"greater_than\",\n\"less_than\", \"greater_than_or_equals\", and \"less_than_or_equals\".\nOn fields that hold user IDs, \"current_user\" means the API token's user; on fields that\nhold team IDs, \"my_teams\" means that user's teams. The same applies to values.","type":"string"},"values":{"description":"The values for this filter. Used by multi-valued operators: \"in\", \"not_in\", \"includes_all_of\",\n\"includes_exactly\", \"belongs_to\", and \"not_belongs_to\". For \"time_range\", set to [start, end].","items":{"type":"string"},"type":"array"}},"type":"object"},"FilterRelatedObject":{"properties":{"custom_field":{"description":"The slug of a relationship custom field to follow. Returned when reading stored filters,\nsuch as ticket form conditions; search filters don't accept it yet.","type":"string"},"filter":{"$ref":"#/components/schemas/Filter"},"relationship":{"description":"The built-in relationship to follow, such as \"account\". Each search endpoint lists the\nrelationships its filter accepts. Exactly one of relationship and custom_field is set.","type":"string"}},"required":["filter"],"type":"object"},"UpdateCustomFieldResponseBody":{"properties":{"data":{"$ref":"#/components/schemas/CustomFieldDefinition"},"request_id":{"description":"The request ID for tracking.","type":"string"}},"required":["data","request_id"],"type":"object"},"CustomFieldDefinition":{"properties":{"created_at":{"description":"When the custom field was created.","format":"date-time","type":"string"},"created_by":{"allOf":[{"$ref":"#/components/schemas/CustomFieldActor"}],"nullable":true},"default_value":{"description":"The default value for single-valued custom fields.","type":"string"},"default_values":{"description":"The default values for multi-valued custom fields.","items":{"type":"string"},"type":"array"},"description":{"description":"The description of the custom field.","type":"string"},"id":{"description":"The ID of the custom field.","type":"string"},"instructions":{"description":"Field-wide instructions for how AI populates the field.","type":"string"},"is_ai_enabled":{"description":"Whether AI is enabled for the field.","type":"boolean"},"is_read_only":{"description":"Whether the custom field is read only. Fields synced from apps and integrations are read-only.","type":"boolean"},"json_schema":{"description":"JSON schema for structured web research results, when configured.","type":"string"},"label":{"description":"The label of the custom field.","type":"string"},"number_metadata":{"$ref":"#/components/schemas/NumberMetadata"},"object_type":{"description":"The type of object this custom field is for. This can be a built-in or custom object type.","type":"string"},"requirement":{"allOf":[{"$ref":"#/components/schemas/CustomFieldRequirement"}],"nullable":true},"select_metadata":{"$ref":"#/components/schemas/SelectMetadata"},"slug":{"description":"The slug of the custom field.","type":"string"},"source":{"description":"The source of the custom field.","type":"string"},"type":{"description":"The type of the custom field.","type":"string"},"updated_at":{"description":"When the custom field was last updated.","format":"date-time","type":"string"},"updated_by":{"allOf":[{"$ref":"#/components/schemas/CustomFieldActor"}],"nullable":true},"visible_by_default":{"description":"Whether the custom field shows on records in Pylon by default. When false, it shows only where a field visibility condition makes it visible.","type":"boolean"}},"required":["created_at","description","id","instructions","is_ai_enabled","is_read_only","label","object_type","slug","source","type","updated_at","visible_by_default"],"type":"object"},"CustomFieldActor":{"properties":{"type":{"description":"\"user\" for a change made by a user, \"system\" for an automated change, such as AI-generated option descriptions, and \"unknown\" for a change made before authors were recorded.\n\nKnown values: `user`, `system`, `unknown`. This list is not exhaustive.","type":"string"},"user":{"$ref":"#/components/schemas/MiniUser"}},"required":["type"],"type":"object"},"MiniUser":{"properties":{"email":{"description":"The email of the user.","type":"string"},"id":{"description":"The ID of the user.","type":"string"}},"required":["id"],"type":"object"},"NumberMetadata":{"properties":{"currency":{"description":"The currency of the number custom field.","nullable":true,"type":"string"},"decimal_places":{"description":"The decimal places of the number custom field.","format":"int64","nullable":true,"type":"integer"},"duration_display_format":{"description":"The display format for duration format (auto, minutes, hours, days, months, years).","type":"string"},"duration_input_unit":{"description":"The input unit for duration format (seconds, minutes, hours, days).","type":"string"},"format":{"description":"The format of the number custom field.\n\nKnown values: `with_commas`, `percent`, `currency`, `duration`. This list is not exhaustive.","nullable":true,"type":"string"}},"type":"object"},"CustomFieldRequirement":{"properties":{"filter":{"$ref":"#/components/schemas/Filter"},"filter_unsupported":{"description":"Whether the requirement has conditions that can't be expressed as an API filter. When true, filter is omitted.","type":"boolean"},"setting":{"description":"When the custom field is required. \"required_for_closed\" requires it when closing an issue, and \"required_under_certain_conditions\" requires it on issues that match filter.\n\nKnown values: `not_required`, `required`, `required_for_closed`, `required_under_certain_conditions`. This list is not exhaustive.","type":"string"}},"required":["setting"],"type":"object"},"SelectMetadata":{"properties":{"options":{"description":"The list options of the select custom field. This is only present for select and multiselect custom fields.","items":{"$ref":"#/components/schemas/CustomFieldDefinitionSelectOption"},"nullable":true,"type":"array"}},"type":"object"},"ErrorApiResponseBody":{"properties":{"code":{"description":"A stable machine-readable identifier for this failure, safe to branch on\ninstead of the message text. Omitted when the failure has no assigned code.\n\nKnown values: `recipients_suppressed`, `email_bounced`, `internal_issue_reply_not_allowed`, `duplicate_object`, `invalid_authorization_header`, `invalid_api_token`, `invalid_oauth_token`, `wrong_region_token`, `organization_deactivated`, `organization_suspended`, `permission_denied`, `oauth_not_permitted`, `rate_limited`, `not_found`, `method_not_allowed`, `payload_too_large`, `invalid_request_body`, `internal_error`, `invalid_webhook_credentials`, `organization_inactive`, `invalid_filter`. This list is not exhaustive.","type":"string"},"errors":{"description":"The list of errors.","items":{"type":"string"},"type":"array"},"exists_id":{"description":"The ID of the object that already exists if this is a duplicate object error.","type":"string"},"filter_errors":{"description":"One entry per problem found in the request's filter. Present only when code is\n\"invalid_filter\"; errors carries the same messages as plain text.","items":{"$ref":"#/components/schemas/FilterError"},"type":"array"},"request_id":{"description":"The request ID for tracking.","type":"string"}},"required":["request_id"],"type":"object"},"FilterError":{"properties":{"allowed":{"description":"What is accepted in place of the rejected field, operator, value, or relationship.\nLong lists are cut off after 100 entries.","items":{"type":"string"},"type":"array"},"code":{"description":"A stable machine-readable identifier for this problem.\n\nKnown values: `invalid_shape`, `too_deep`, `unknown_operator`, `unknown_field`, `operator_not_allowed`, `missing_value`, `unexpected_value`, `invalid_value`, `unknown_relationship`, `unsupported`. This list is not exhaustive.","type":"string"},"field":{"description":"The field of the filter at path, when it has one.","type":"string"},"message":{"description":"What is wrong and how to fix it.","type":"string"},"operator":{"description":"The operator of the filter at path, when it has one.","type":"string"},"path":{"description":"Where the problem is, as a JSONPath from the root of the filter, such as\n\"$.subfilters[1].related_object.filter\".","type":"string"},"suggestion":{"description":"The accepted entry closest to the rejected one, when one is close enough.","type":"string"}},"required":["code","message","path"],"type":"object"}},"responses":{"UpdateCustomFieldResponse":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateCustomFieldResponseBody"}}},"description":""},"BadRequestApiResponse":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorApiResponseBody"}}},"description":"The request was invalid or could not be completed."},"UnauthorizedApiResponse":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorApiResponseBody"}}},"description":"The request could not be authenticated for this API."},"ForbiddenApiResponse":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorApiResponseBody"}}},"description":"The authenticated caller or organization is not allowed to access this endpoint or operation."},"ErrorApiResponse":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorApiResponseBody"}}},"description":""},"TooManyRequestsApiResponse":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorApiResponseBody"}}},"description":"The request exceeded the applicable rate limit.","headers":{"Retry-After":{"description":"Seconds until the next request to this endpoint is permitted.","schema":{"format":"int64","type":"integer"}},"X-Retry-After":{"description":"Seconds until the full per-minute allowance is restored. Capacity returns gradually before then.","schema":{"format":"int64","type":"integer"}}}},"InternalServerErrorApiResponse":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorApiResponseBody"}}},"description":"An unexpected internal error occurred."}}},"paths":{"/custom-fields/{id}":{"patch":{"description":"Updates a custom field definition. Only provided fields are modified.\n\n**Rate limit:** 120 requests per minute","operationId":"UpdateCustomField","parameters":[{"description":"The ID of the custom field.","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateCustomFieldRequestBody"}}}},"responses":{"200":{"$ref":"#/components/responses/UpdateCustomFieldResponse"},"400":{"$ref":"#/components/responses/BadRequestApiResponse"},"401":{"$ref":"#/components/responses/UnauthorizedApiResponse"},"403":{"$ref":"#/components/responses/ForbiddenApiResponse"},"404":{"$ref":"#/components/responses/ErrorApiResponse"},"429":{"$ref":"#/components/responses/TooManyRequestsApiResponse"},"500":{"$ref":"#/components/responses/InternalServerErrorApiResponse"}},"summary":"Update a custom field","tags":["custom-fields"]}}}}
```

#### Create a custom field select option

## Create a custom field select option

> Adds an option to a select or multiselect custom field.\
> \
> \*\*Rate limit:\*\* 120 requests per minute

```json
{"openapi":"3.0.3","info":{"title":"Pylon API.","version":"1.0.0"},"tags":[],"servers":[{"description":"US region","url":"https://api.usepylon.com"},{"description":"EU region","url":"https://api.eu.usepylon.com"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"description":"Authorization: Bearer <token>","scheme":"bearer","type":"http"}},"schemas":{"CreateCustomFieldSelectOptionRequestBody":{"properties":{"ai_description":{"description":"The AI description used to help AI-enabled fields select this option.","type":"string"},"label":{"description":"The display label of the option.","type":"string"},"slug":{"description":"The API slug stored as the option value.","type":"string"}},"required":["slug","label"],"type":"object"},"CreateCustomFieldSelectOptionResponseBody":{"properties":{"data":{"$ref":"#/components/schemas/CustomFieldDefinitionSelectOption"},"request_id":{"description":"The request ID for tracking.","type":"string"}},"required":["data","request_id"],"type":"object"},"CustomFieldDefinitionSelectOption":{"properties":{"ai_description":{"description":"The AI description of the option. This is used to help the AI understand when to select this option.","type":"string"},"label":{"description":"The label of the option.","type":"string"},"slug":{"description":"The slug of the option.","type":"string"}},"type":"object"},"ErrorApiResponseBody":{"properties":{"code":{"description":"A stable machine-readable identifier for this failure, safe to branch on\ninstead of the message text. Omitted when the failure has no assigned code.\n\nKnown values: `recipients_suppressed`, `email_bounced`, `internal_issue_reply_not_allowed`, `duplicate_object`, `invalid_authorization_header`, `invalid_api_token`, `invalid_oauth_token`, `wrong_region_token`, `organization_deactivated`, `organization_suspended`, `permission_denied`, `oauth_not_permitted`, `rate_limited`, `not_found`, `method_not_allowed`, `payload_too_large`, `invalid_request_body`, `internal_error`, `invalid_webhook_credentials`, `organization_inactive`, `invalid_filter`. This list is not exhaustive.","type":"string"},"errors":{"description":"The list of errors.","items":{"type":"string"},"type":"array"},"exists_id":{"description":"The ID of the object that already exists if this is a duplicate object error.","type":"string"},"filter_errors":{"description":"One entry per problem found in the request's filter. Present only when code is\n\"invalid_filter\"; errors carries the same messages as plain text.","items":{"$ref":"#/components/schemas/FilterError"},"type":"array"},"request_id":{"description":"The request ID for tracking.","type":"string"}},"required":["request_id"],"type":"object"},"FilterError":{"properties":{"allowed":{"description":"What is accepted in place of the rejected field, operator, value, or relationship.\nLong lists are cut off after 100 entries.","items":{"type":"string"},"type":"array"},"code":{"description":"A stable machine-readable identifier for this problem.\n\nKnown values: `invalid_shape`, `too_deep`, `unknown_operator`, `unknown_field`, `operator_not_allowed`, `missing_value`, `unexpected_value`, `invalid_value`, `unknown_relationship`, `unsupported`. This list is not exhaustive.","type":"string"},"field":{"description":"The field of the filter at path, when it has one.","type":"string"},"message":{"description":"What is wrong and how to fix it.","type":"string"},"operator":{"description":"The operator of the filter at path, when it has one.","type":"string"},"path":{"description":"Where the problem is, as a JSONPath from the root of the filter, such as\n\"$.subfilters[1].related_object.filter\".","type":"string"},"suggestion":{"description":"The accepted entry closest to the rejected one, when one is close enough.","type":"string"}},"required":["code","message","path"],"type":"object"}},"responses":{"CreateCustomFieldSelectOptionResponse":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateCustomFieldSelectOptionResponseBody"}}},"description":""},"BadRequestApiResponse":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorApiResponseBody"}}},"description":"The request was invalid or could not be completed."},"UnauthorizedApiResponse":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorApiResponseBody"}}},"description":"The request could not be authenticated for this API."},"ForbiddenApiResponse":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorApiResponseBody"}}},"description":"The authenticated caller or organization is not allowed to access this endpoint or operation."},"ErrorApiResponse":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorApiResponseBody"}}},"description":""},"TooManyRequestsApiResponse":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorApiResponseBody"}}},"description":"The request exceeded the applicable rate limit.","headers":{"Retry-After":{"description":"Seconds until the next request to this endpoint is permitted.","schema":{"format":"int64","type":"integer"}},"X-Retry-After":{"description":"Seconds until the full per-minute allowance is restored. Capacity returns gradually before then.","schema":{"format":"int64","type":"integer"}}}},"InternalServerErrorApiResponse":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorApiResponseBody"}}},"description":"An unexpected internal error occurred."}}},"paths":{"/custom-fields/{id}/select-options":{"post":{"description":"Adds an option to a select or multiselect custom field.\n\n**Rate limit:** 120 requests per minute","operationId":"CreateCustomFieldSelectOption","parameters":[{"description":"The ID of the custom field.","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateCustomFieldSelectOptionRequestBody"}}}},"responses":{"200":{"$ref":"#/components/responses/CreateCustomFieldSelectOptionResponse"},"400":{"$ref":"#/components/responses/BadRequestApiResponse"},"401":{"$ref":"#/components/responses/UnauthorizedApiResponse"},"403":{"$ref":"#/components/responses/ForbiddenApiResponse"},"404":{"$ref":"#/components/responses/ErrorApiResponse"},"429":{"$ref":"#/components/responses/TooManyRequestsApiResponse"},"500":{"$ref":"#/components/responses/InternalServerErrorApiResponse"}},"summary":"Create a custom field select option","tags":["custom-fields"]}}}}
```

#### Update a custom field select option

## Update a custom field select option

> Updates an option's slug, label, or AI description. Slug changes preserve existing values and migrate persisted filters.\
> \
> \*\*Rate limit:\*\* 120 requests per minute

```json
{"openapi":"3.0.3","info":{"title":"Pylon API.","version":"1.0.0"},"tags":[],"servers":[{"description":"US region","url":"https://api.usepylon.com"},{"description":"EU region","url":"https://api.eu.usepylon.com"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"description":"Authorization: Bearer <token>","scheme":"bearer","type":"http"}},"schemas":{"UpdateCustomFieldSelectOptionRequestBody":{"properties":{"ai_description":{"description":"A replacement AI description. Pass an empty string to clear it.","type":"string"},"label":{"description":"A replacement display label.","type":"string"},"slug":{"description":"A replacement API slug. Existing object values and persisted filters are migrated to this slug.","type":"string"}},"type":"object"},"UpdateCustomFieldSelectOptionResponseBody":{"properties":{"data":{"$ref":"#/components/schemas/CustomFieldDefinitionSelectOption"},"request_id":{"description":"The request ID for tracking.","type":"string"}},"required":["data","request_id"],"type":"object"},"CustomFieldDefinitionSelectOption":{"properties":{"ai_description":{"description":"The AI description of the option. This is used to help the AI understand when to select this option.","type":"string"},"label":{"description":"The label of the option.","type":"string"},"slug":{"description":"The slug of the option.","type":"string"}},"type":"object"},"ErrorApiResponseBody":{"properties":{"code":{"description":"A stable machine-readable identifier for this failure, safe to branch on\ninstead of the message text. Omitted when the failure has no assigned code.\n\nKnown values: `recipients_suppressed`, `email_bounced`, `internal_issue_reply_not_allowed`, `duplicate_object`, `invalid_authorization_header`, `invalid_api_token`, `invalid_oauth_token`, `wrong_region_token`, `organization_deactivated`, `organization_suspended`, `permission_denied`, `oauth_not_permitted`, `rate_limited`, `not_found`, `method_not_allowed`, `payload_too_large`, `invalid_request_body`, `internal_error`, `invalid_webhook_credentials`, `organization_inactive`, `invalid_filter`. This list is not exhaustive.","type":"string"},"errors":{"description":"The list of errors.","items":{"type":"string"},"type":"array"},"exists_id":{"description":"The ID of the object that already exists if this is a duplicate object error.","type":"string"},"filter_errors":{"description":"One entry per problem found in the request's filter. Present only when code is\n\"invalid_filter\"; errors carries the same messages as plain text.","items":{"$ref":"#/components/schemas/FilterError"},"type":"array"},"request_id":{"description":"The request ID for tracking.","type":"string"}},"required":["request_id"],"type":"object"},"FilterError":{"properties":{"allowed":{"description":"What is accepted in place of the rejected field, operator, value, or relationship.\nLong lists are cut off after 100 entries.","items":{"type":"string"},"type":"array"},"code":{"description":"A stable machine-readable identifier for this problem.\n\nKnown values: `invalid_shape`, `too_deep`, `unknown_operator`, `unknown_field`, `operator_not_allowed`, `missing_value`, `unexpected_value`, `invalid_value`, `unknown_relationship`, `unsupported`. This list is not exhaustive.","type":"string"},"field":{"description":"The field of the filter at path, when it has one.","type":"string"},"message":{"description":"What is wrong and how to fix it.","type":"string"},"operator":{"description":"The operator of the filter at path, when it has one.","type":"string"},"path":{"description":"Where the problem is, as a JSONPath from the root of the filter, such as\n\"$.subfilters[1].related_object.filter\".","type":"string"},"suggestion":{"description":"The accepted entry closest to the rejected one, when one is close enough.","type":"string"}},"required":["code","message","path"],"type":"object"}},"responses":{"UpdateCustomFieldSelectOptionResponse":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateCustomFieldSelectOptionResponseBody"}}},"description":""},"BadRequestApiResponse":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorApiResponseBody"}}},"description":"The request was invalid or could not be completed."},"UnauthorizedApiResponse":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorApiResponseBody"}}},"description":"The request could not be authenticated for this API."},"ForbiddenApiResponse":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorApiResponseBody"}}},"description":"The authenticated caller or organization is not allowed to access this endpoint or operation."},"ErrorApiResponse":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorApiResponseBody"}}},"description":""},"TooManyRequestsApiResponse":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorApiResponseBody"}}},"description":"The request exceeded the applicable rate limit.","headers":{"Retry-After":{"description":"Seconds until the next request to this endpoint is permitted.","schema":{"format":"int64","type":"integer"}},"X-Retry-After":{"description":"Seconds until the full per-minute allowance is restored. Capacity returns gradually before then.","schema":{"format":"int64","type":"integer"}}}},"InternalServerErrorApiResponse":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorApiResponseBody"}}},"description":"An unexpected internal error occurred."}}},"paths":{"/custom-fields/{id}/select-options":{"patch":{"description":"Updates an option's slug, label, or AI description. Slug changes preserve existing values and migrate persisted filters.\n\n**Rate limit:** 120 requests per minute","operationId":"UpdateCustomFieldSelectOption","parameters":[{"description":"The ID of the custom field.","in":"path","name":"id","required":true,"schema":{"type":"string"}},{"description":"The current option slug.","in":"query","name":"current_slug","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateCustomFieldSelectOptionRequestBody"}}}},"responses":{"200":{"$ref":"#/components/responses/UpdateCustomFieldSelectOptionResponse"},"400":{"$ref":"#/components/responses/BadRequestApiResponse"},"401":{"$ref":"#/components/responses/UnauthorizedApiResponse"},"403":{"$ref":"#/components/responses/ForbiddenApiResponse"},"404":{"$ref":"#/components/responses/ErrorApiResponse"},"429":{"$ref":"#/components/responses/TooManyRequestsApiResponse"},"500":{"$ref":"#/components/responses/InternalServerErrorApiResponse"}},"summary":"Update a custom field select option","tags":["custom-fields"]}}}}
```

#### Delete a custom field select option

## Delete a custom field select option

> Deletes an option and asynchronously clears it from affected objects.\
> \
> \*\*Rate limit:\*\* 120 requests per minute

```json
{"openapi":"3.0.3","info":{"title":"Pylon API.","version":"1.0.0"},"tags":[],"servers":[{"description":"US region","url":"https://api.usepylon.com"},{"description":"EU region","url":"https://api.eu.usepylon.com"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"description":"Authorization: Bearer <token>","scheme":"bearer","type":"http"}},"responses":{"DeleteCustomFieldSelectOptionResponse":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteCustomFieldSelectOptionResponseBody"}}},"description":""},"BadRequestApiResponse":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorApiResponseBody"}}},"description":"The request was invalid or could not be completed."},"UnauthorizedApiResponse":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorApiResponseBody"}}},"description":"The request could not be authenticated for this API."},"ForbiddenApiResponse":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorApiResponseBody"}}},"description":"The authenticated caller or organization is not allowed to access this endpoint or operation."},"ErrorApiResponse":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorApiResponseBody"}}},"description":""},"TooManyRequestsApiResponse":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorApiResponseBody"}}},"description":"The request exceeded the applicable rate limit.","headers":{"Retry-After":{"description":"Seconds until the next request to this endpoint is permitted.","schema":{"format":"int64","type":"integer"}},"X-Retry-After":{"description":"Seconds until the full per-minute allowance is restored. Capacity returns gradually before then.","schema":{"format":"int64","type":"integer"}}}},"InternalServerErrorApiResponse":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorApiResponseBody"}}},"description":"An unexpected internal error occurred."}},"schemas":{"DeleteCustomFieldSelectOptionResponseBody":{"properties":{"data":{"$ref":"#/components/schemas/DeleteCustomFieldSelectOptionResponseData"},"request_id":{"description":"The request ID for tracking.","type":"string"}},"required":["data","request_id"],"type":"object"},"DeleteCustomFieldSelectOptionResponseData":{"properties":{"success":{"type":"boolean"}},"required":["success"],"type":"object"},"ErrorApiResponseBody":{"properties":{"code":{"description":"A stable machine-readable identifier for this failure, safe to branch on\ninstead of the message text. Omitted when the failure has no assigned code.\n\nKnown values: `recipients_suppressed`, `email_bounced`, `internal_issue_reply_not_allowed`, `duplicate_object`, `invalid_authorization_header`, `invalid_api_token`, `invalid_oauth_token`, `wrong_region_token`, `organization_deactivated`, `organization_suspended`, `permission_denied`, `oauth_not_permitted`, `rate_limited`, `not_found`, `method_not_allowed`, `payload_too_large`, `invalid_request_body`, `internal_error`, `invalid_webhook_credentials`, `organization_inactive`, `invalid_filter`. This list is not exhaustive.","type":"string"},"errors":{"description":"The list of errors.","items":{"type":"string"},"type":"array"},"exists_id":{"description":"The ID of the object that already exists if this is a duplicate object error.","type":"string"},"filter_errors":{"description":"One entry per problem found in the request's filter. Present only when code is\n\"invalid_filter\"; errors carries the same messages as plain text.","items":{"$ref":"#/components/schemas/FilterError"},"type":"array"},"request_id":{"description":"The request ID for tracking.","type":"string"}},"required":["request_id"],"type":"object"},"FilterError":{"properties":{"allowed":{"description":"What is accepted in place of the rejected field, operator, value, or relationship.\nLong lists are cut off after 100 entries.","items":{"type":"string"},"type":"array"},"code":{"description":"A stable machine-readable identifier for this problem.\n\nKnown values: `invalid_shape`, `too_deep`, `unknown_operator`, `unknown_field`, `operator_not_allowed`, `missing_value`, `unexpected_value`, `invalid_value`, `unknown_relationship`, `unsupported`. This list is not exhaustive.","type":"string"},"field":{"description":"The field of the filter at path, when it has one.","type":"string"},"message":{"description":"What is wrong and how to fix it.","type":"string"},"operator":{"description":"The operator of the filter at path, when it has one.","type":"string"},"path":{"description":"Where the problem is, as a JSONPath from the root of the filter, such as\n\"$.subfilters[1].related_object.filter\".","type":"string"},"suggestion":{"description":"The accepted entry closest to the rejected one, when one is close enough.","type":"string"}},"required":["code","message","path"],"type":"object"}}},"paths":{"/custom-fields/{id}/select-options":{"delete":{"description":"Deletes an option and asynchronously clears it from affected objects.\n\n**Rate limit:** 120 requests per minute","operationId":"DeleteCustomFieldSelectOption","parameters":[{"description":"The ID of the custom field.","in":"path","name":"id","required":true,"schema":{"type":"string"}},{"description":"The current option slug.","in":"query","name":"current_slug","required":true,"schema":{"type":"string"}}],"responses":{"200":{"$ref":"#/components/responses/DeleteCustomFieldSelectOptionResponse"},"400":{"$ref":"#/components/responses/BadRequestApiResponse"},"401":{"$ref":"#/components/responses/UnauthorizedApiResponse"},"403":{"$ref":"#/components/responses/ForbiddenApiResponse"},"404":{"$ref":"#/components/responses/ErrorApiResponse"},"429":{"$ref":"#/components/responses/TooManyRequestsApiResponse"},"500":{"$ref":"#/components/responses/InternalServerErrorApiResponse"}},"summary":"Delete a custom field select option","tags":["custom-fields"]}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.usepylon.com/pylon-docs/developer/api/api-reference/custom-fields.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
