Skip to main content

How to create Pipefy cards with the API

  • Dec 3, 2026 8:17 PM UTC
  • 0 replies
  • 1 view
vinicius.pereira
Community Manager

👤 For admins and integration teams. Advanced level.
🔐 The API is available on all plans. Service Accounts are available on Business, Enterprise, and Unlimited.
🎯 For teams that need to bring requests from another system into a pipe.

 

An IT ticket is already in the service desk, but triage starts only after someone copies the summary and reference into Pipefy. If that handoff waits, the ticket exists in the source system while the team that handles it still has nothing in its queue.

You’ll learn when to create a card through the API, how to adapt the same code for an IT ticket and a purchase request, and how to confirm that the right information reached the right queue.

 

What you will learn:

 

When to create cards through the API

Use the API when a request recorded in another system needs to start work in Pipefy. For example, a new ticket in your service desk can be the event that prompts the integration to create a card in the triage queue. The source ticket reference lets the team match the two records.

If the requester still needs to supply the information, the Start Form can serve as the intake channel. When the request already exists elsewhere, decide which event should trigger the handoff and what the receiving team needs to begin. See what you can do with the Pipefy API.

 

What to send to the pipe

Start with the pipe that receives the work. Open the GraphQL Playground while signed in to Pipefy with access to the pipe. Run the following query against a test pipe. Replace the sample number in pipe(id: …) with the ID that appears after /pipes/ in your pipe URL.

query InspectStartForm {
pipe(id: "123456789") {
start_form_fields {
id
label
type
required
options
}
labels { id name }
}
}

The start_form_fields result shows each Start Form field’s ID, display name, type, whether it is required, and its options. Use id as field_id and check type and options to choose a value. Include every field whose required value is true. The labels result lists the pipe’s label names and IDs.

 

Send what the triage team needs. For a ticket, the reference ties the card to the source record, while the summary explains what needs attention. For a purchase request, a category helps the team classify it as soon as it arrives.

 

For requests from another system, use a Service Account access token with permission to access the pipe. The Playground uses your signed in session. To learn about dedicated credentials, read the Community introduction to Service Accounts in Portuguese and see the authentication setup.

 

Two card creation examples using the same code

The createCard operation creates a card in the specified pipe and requests its ID in the response. Paste the operation into the Playground and use one set of variables for each test. The pipe, field, and label IDs are examples. Replace them with the IDs from your own test pipe and include any additional required fields.

mutation CreateCard($input: CreateCardInput!) {
createCard(input: $input) {
card { id }
}
}

IT ticket

When a ticket opens in your service desk, send the reference and summary to two text fields. The reference should take the team back to the source ticket, and the summary should explain what the ticket is about.

{
"input": {
"pipe_id": "123456789",
"fields_attributes": [
{"field_id": "external_reference",
"field_value": "IT 4821"},
{"field_id": "summary",
"field_value": "Unable to access the portal"}
]
}
}

Purchase request

When a request comes in through the purchasing portal, send its reference, category, and triage label. For a dropdown field, use a value returned in options. For a label field, send a list containing the ID from labels, even if you are applying only one label. See the field formats in the official example.

{
"input": {
"pipe_id": "123456790",
"fields_attributes": [
{"field_id": "external_reference",
"field_value": "PURCHASE 1072"},
{"field_id": "category",
"field_value": "Equipment"},
{"field_id": "triage",
"field_value": ["9123456"]}
]
}
}

The same request outside the Playground

This terminal example sends the IT ticket. Provide a valid access token in the PIPEFY_ACCESS_TOKEN environment variable. To send the purchase request, replace the contents of variables with the second JSON example. See the official GraphQL endpoint.

curl https://api.pipefy.com/graphql \
-H "Authorization: Bearer ${PIPEFY_ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
--data-binary @- <<'JSON'
{
"query": "mutation C($input:CreateCardInput!){createCard(input:$input){card{id}}}",
"variables": {
"input": {
"pipe_id": "123456789",
"fields_attributes": [
{"field_id": "external_reference",
"field_value": "IT 4821"},
{"field_id": "summary",
"field_value": "Unable to access the portal"}
]
}
}
}
JSON

 

How to verify the result and avoid duplicates

A successful response can look like the example below. The ID is fictional. Use the actual ID to find the card, confirm that it reached the intended pipe, and compare the external reference and field values with what you sent.

{"data":{"createCard":{"card":{"id":"987654321"}}}}

 

Check the GraphQL response. An HTTP 200 response can still contain errors. Read the message and check the token, permissions, pipe, field ID, or value as appropriate. If there is no card ID and the response is inconclusive, check what reached the pipe before sending the request again. See how to interpret API errors.

 

If the connection drops after sending, the card may already exist. Look for the external reference in the destination pipe before retrying. For a recurring integration, record the link between the source reference and the card ID so you can recognize repeat submissions. If the workflow also needs to link two cards, see the Community example of connected cards in Portuguese.

 

Before moving on, confirm that you understand:

☐ Which source event should create a card and which pipe should receive it.

☐ How to find field IDs, valid options, and required fields.

☐ How to confirm creation and what to check before retrying.

 

Ready to test the handoff? → Open the GraphQL Playground and run one example with fictional data in your test pipe. Once you confirm the card was created, see how to use webhooks to notify another system when a card is created.