/pipefy:pipefy-api-fallbackfrom Pipefy
Direct Pipefy GraphQL API fallback using curl/httpx when toolkit operations and introspection fail. Last-resort Tier 3 with OAuth2 or PAT auth.
Ships in Pipefy. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Read the MCP reference or CLI reference for the surface you are using. Load only the relevant reference.
This skill activates only after Tiers 1 and 2 have failed. Call the Pipefy GraphQL API directly, bypassing the toolkit connection.
If a write reports failure, re-read the target before changing tiers or retrying. The mutation may already have applied; follow Ambiguous write failure.
create_card, get_phase_cards, get_phase_allowed_move_targets, update_pipe, etc.). For card/phase seeding and inventory, see pipefy-pipes-and-cards — Seed pipe across phases.execute_graphql when a dedicated operation is unavailable or fails unexpectedly. See pipefy-introspection.Do not jump to Tier 3 after a single failure. Follow the tiers in order. Testing a new mutation belongs in Tier 2.
Two options (use whichever is available in the environment). Prefer the Service Account when both exist.
To see which variables are set, list their names only, never their values:
env | cut -d= -f1 | grep '^PIPEFY_'
Do not run env, printenv, or echo on these variables to choose an option: that prints the secret into the conversation before the user agrees.
Before reading any PIPEFY_* variable, tell the user which variable you will read and that its value goes to app.pipefy.com in the Authorization header or the token request, and wait for a yes. Do not read it from a file the user did not name.
Option A — OAuth2 Client Credentials (preferred):
TOKEN=$(curl -s -X POST https://app.pipefy.com/oauth/token \
-H "Content-Type: application/json" \
-d "{\"grant_type\":\"client_credentials\",\"client_id\":\"$PIPEFY_SERVICE_ACCOUNT_CLIENT_ID\",\"client_secret\":\"$PIPEFY_SERVICE_ACCOUNT_CLIENT_SECRET\"}" \
| python3 -c "import sys,json; print(json.load(sys.stdin)['access_token'])")
Option B — Personal Access Token (PAT):
TOKEN="$PIPEFY_PAT" # or $PIPEFY_TOKEN
PATs are deprecated for new integrations but may still exist in the environment.
Bearer prefix is mandatory — Pipefy rejects requests without it.PIPEFY_SERVICE_ACCOUNT_CLIENT_ID, PIPEFY_SERVICE_ACCOUNT_CLIENT_SECRET, PIPEFY_PAT, or PIPEFY_TOKEN in responses to the user or in logs.| Purpose | URL |
|---|---|
| Queries, mutations, and introspection | https://app.pipefy.com/graphql |
| OAuth2 token | https://app.pipefy.com/oauth/token |
This one endpoint serves queries, mutations, and introspection of the public schema, and https://api.pipefy.com/graphql answers the same way. It is the endpoint the toolkit uses for the public schema (PIPEFY_BASE_URL plus /graphql). Portal tools and a few others use two more endpoints, /graphql/interfaces and /internal_api; see docs/mcp/tools/portal.md.
curl -s -X POST https://app.pipefy.com/graphql \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{"query": "{ me { id name } }"}' | jq .
curl -s -X POST https://app.pipefy.com/graphql \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"query": "mutation CreateCard($input: CreateCardInput!) { createCard(input: $input) { card { id } } }",
"variables": {
"input": {
"pipe_id": 67890,
"title": "Fallback Card"
}
}
}' | jq .
When you need to discover schema over direct HTTP, call the same endpoint:
# All queries and mutations
curl -s -X POST https://app.pipefy.com/graphql \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{"query":"{ __schema { queryType { fields { name description } } mutationType { fields { name description } } } }"}'
# Type details
curl -s -X POST https://app.pipefy.com/graphql \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{"query":"{ __type(name: \"CreateCardInput\") { inputFields { name description type { name kind ofType { name kind } } } } }"}'
GraphQL errors, including syntax errors (GRAPHQL_PARSE_FAILED), return HTTP 200: check the errors array and its extensions.code, not the HTTP status code. An authentication failure returns HTTP 401, and a request body that is not valid JSON returns HTTP 500 with a plain-text page.
| Code | Likely cause | Recovery |
|---|---|---|
HTTP 401, body {"errors": [{"title": "Unauthorized", ...}]} | Authorization header missing or empty, or the token sent without the Bearer prefix | Fix the header: Authorization: Bearer $TOKEN, with a non-empty token. |
HTTP 401, body {"error": "invalid_token", ...} | Bearer token present but invalid or expired | Re-fetch the token (Option A). |
| PERMISSION_DENIED | Service Account not a member of this pipe/table; Pipefy also answers this for a pipe or card ID that does not exist | Verify the ID; add the SA via invite_members or ask the user. |
| resource_not_found | ID does not exist or SA cannot see it | Verify ID; check pipe/table membership. |
| invalid_input | Wrong argument name or type | Run introspect_type (Tier 2) to recheck the input shape. |
| undefinedField | The query selects a field the type does not have | Run introspect_type on the type and fix the selection. |
| INTERNAL_SERVER_ERROR | API bug or unsupported payload | Do NOT retry the same payload. Try an alternative mutation or workaround. |
| missingRequiredInputObjectAttribute | A required field is missing from the input | Compare the payload against __type(name: …InputType). |
Ambiguous write failure (success: false, empty or unclear message) | Mutation may already have applied (side effects on the server) | Re-read before any retry — see Ambiguous write failure. |
Write operations and execute_graphql can report failure even when the mutation already applied. Blind retry duplicates customer data (e.g. many cards created despite success: false).
get_cards / get_phase_cards_count / returned ids / cards_count on the pipe or phase you targeted. Prefer comparing to a count or id set you recorded before the write when available.CreateCardInput has no idempotency_key (only clientMutationId, which is not create-idempotency). Do not invent client-side keys or assume retries are safe. Re-read is the only safe path until the API adds real idempotency.createAutomation with action: create_card + field_map can return INTERNAL_SERVER_ERROR for a cross-pipe target. Do not retry that payload unchanged.createCard with throughConnectors can create the card when a connector field has canCreateNewConnected: true.createCard does not create an automation rule. If the user needs future cards created automatically, report that the one-time call does not meet that requirement.pipesCountpipesCount is the org-wide total; organization { pipes { ... } } and search_pipes return only the pipes the calling identity is a member of. A shorter listing, or an empty one, is expected behavior and not an error. Role does not widen it: a super_admin gets the same membership-scoped result. Detail and workarounds: docs/mcp/tools/organization.md.organization { pipes(include_publics: true) } widens the listing with pipes that are public inside the org. It still normally returns fewer than pipesCount.pipe(id: "...") directly.invite_members accepts unknown emails silentlyuser_id for typo addresses without rejecting the invite. Sanity-check email syntax before calling.Search for the exact error message + "Pipefy GraphQL", or the mutation name + "example Pipefy API".
Only after all 3 tiers and external resources have failed:
data key and errors is null or absent.Bearer (body Unauthorized), or the token is invalid or expired (body invalid_token). Fix the header, or re-fetch the OAuth token (Option A).GRAPHQL_PARSE_FAILED at HTTP 200: GraphQL syntax error. Validate the query string and escape quotes properly when embedding via shell.INTERNAL_SERVER_ERROR in errors array — do NOT retry the same payload; pick a different mutation path.PIPEFY_TOKEN / PIPEFY_PAT only for personal/development use; use service-account credentials (PIPEFY_SERVICE_ACCOUNT_CLIENT_ID + PIPEFY_SERVICE_ACCOUNT_CLIENT_SECRET) for service accounts.pipefy-introspection — Tier 2: use execute_graphql and introspection tools before falling back to direct HTTP.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub pipefy/ai-toolkit --plugin pipefy19 skills in this plugin
/pipefy-ai-agentsUse this skill when the user wants to create, read, update, delete, or troubleshoot AI agents (conversational agents with behaviors). Includes pre-flight validation and pipe-scoped knowledge bases (list, plain text/document/data lookup CRUD, access probe) attached via dataSourceIds. For traditional automations and AI automations, see `pipefy-automations`.
/pipefy-attachmentsUse this skill when the user wants to upload a file to a Pipefy card or table-record attachment field. Covers local and downloaded file sources, plus a presigned-URL handshake for uploading files directly.
/pipefy-automationsUse this skill when the user wants to create, read, update, or delete traditional automations (if/then rules) or AI automations (prompt-driven). For AI agents (conversational), see `pipefy-ai-agents`.
/pipefy-buildingRoutes a Pipefy build or configure request to the skill to read. Covers three kinds of request. One part, such as a field, a phase, an automation, an agent or a portal page, goes to its domain skill. A whole process goes to pipefy-process-design while a business decision is open. Otherwise it goes to a skill in the catalog that builds a whole process from a specification, or to the domain skills in dependency order. A build method that the user supplies decides how to build. Use it whenever the user wants to create, build, configure, connect or integrate something in Pipefy and the right skill is not open yet. Not a delivery playbook: it does not say how to build a part. Not for design advice (pipefy-process-design), pipe diagnosis (pipefy-process-intelligence) or the return of a change (pipefy-process-impact), except to send the request there.
/pipefy-database-tablesUse this skill when the user wants to work with Pipefy Database Tables — creating/reading/updating/deleting tables, records (rows), or table fields (schema columns).
/pipefy-html-interfacesUse when the user wants to create, read, or rewrite a Pipefy HTML interface: a standalone page whose content is one HTML document, optionally showing live data from pipes and tables. Covers choosing data sources, creating the page, and rewriting it. Needs HTML interfaces enabled on the organization. For the main portal, its grid-layout pages, and sub-portals, use `pipefy-portal-setup`.
Other plugins' skills for the same job