To manage custom fields through the Pipedrive API, you'll need to use the custom fields endpoints. You can create, update, delete, or list custom fields using these endpoints. To find the API key for a custom field, make a GET request to the /{itemType} endpoint and look for the key property in the response. Don't forget to replace {itemType} with the relevant entity type, such as deals or contacts.