How to get/set Trello custom fields using the API?

mstringer picture mstringer · Aug 30, 2016 · Viewed 8.5k times · Source

I'm already in love with the Custom Fields feature in Trello. Is there a way to get and set custom fields via the API?

I tried using the get field API call to get a field (on a board with a custom field defined called "MyCustomField"):

curl "https://api.trello.com/1/cards/57c473503a5ef0b76fddd0e5/MyCustomField?key=${TRELLO_API_KEY}&token=${TRELLO_OAUTH_TOKEN}"

to no avail.

Answer

Employee picture Employee · Mar 20, 2018

The Custom Fields API from Trello is now officially available (announcement blog post here).

It allows users to manipulate both custom field items of boards and custom field item values on cards.

Custom Fields API documentation

Getting customFieldItems For Cards

Setting & Updating CustomFieldItems