Overview
This recipe shows you how to create a new card on a board and handle the response.What you need
- Your API key and board ID from Card Sources > API
- The field names for your board (fetch the schema if you are unsure)
Step 1: Fetch the board schema
Field names must match the board schema exactly, including capitalisation. Fetch the schema to confirm the names before posting.Step 2: Post the card
Build a JSON object using the field names from the schema and POST it to the board endpoint.Step 3: Store the returned ID
The response contains the new card’s_id. Store this if you need to update or reference the card later.
Things to watch out for
- If a field name does not match the schema, the value is silently ignored. No error is thrown.
- If Create Fields is enabled in Card Sources, unknown keys will create new fields on the board instead of being dropped.
- The
Stagevalue must match an existing stage name on the board exactly.
Next steps
- Update a card once you have a card ID
- React to a card update via webhook
