n8n Credential API Creator

    2

    Create n8n credentials programmatically via REST API, including a workaround for the cryptic allOf validation bug that blocks OAuth2 credential creation.

    $15

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned

    Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIMuseMuseDotsDots+21 more

    n8n Credential API Creator

    Example session with this skill installed

    Create a Google Sheets OAuth2 credential in n8n for me. Use my Client ID and Secret, and make sure to handle that allOf validation error that usually happens with the API.

    • Read your context and instructions
    • Compiled the n8n credential api

    Success: OAuth2 credential created.
    ID: OdNdHy3kK7RGSfHv
    Type: googleSheetsOAuth2Api
    Note: serverUrl and additionalBodyProperties were automatically injected to bypass n8n allOf schema validation. Use the ID above to link this credential to your workflows via API.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    Automate n8n Credential Management

    Setting up credentials manually in the n8n UI is a bottleneck for automated deployments and CI/CD pipelines. This skill provides a robust, developer-ready pattern for creating n8n credentials via the REST API, eliminating manual configuration steps.

    What it does

    • Automates the creation of diverse credential types including OAuth2 (Google Sheets, Drive, Gmail), HTTP Header Auth, and Basic Auth.
    • Solves the notorious "allOf schema" bug in the n8n API that causes cryptic validation errors during OAuth2 credential creation.
    • Provides ready-to-use implementation patterns for both shell (cURL) and Python.

    Why use this skill

    Standard LLM prompts often fail to account for n8n's strict OpenAPI validation requirements, which demand specific hidden fields like serverUrl even when they are empty. This skill embeds the specialized logic required to bypass these validation errors, ensuring your automation scripts work on the first try. It is essential for developers managing multi-tenant n8n instances, performing environment migrations, or building infrastructure-as-code (IaC) for automation workflows.

    Supported Outputs

    The skill generates structured API calls and Python scripts that return the official n8n credential metadata (ID, timestamps, and type) upon successful execution.

    • Requires n8n API Key with write permissions.
    • Cannot trigger the manual OAuth consent flow; tokens must be authorized via the UI post-creation.
    • Supports only public-facing REST API v1.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before any payment.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Money-back guarantee

    Doesn't do what its page promises? You get your money back.

    Trust & safety

    Security scan

    Security scan passed 5 months ago

    Permissions

    Terminal / Shell
    Network Access
    Listed5 months ago

    What's inside

    Frequently Asked Questions

    This skill provides a programmatic solution for creating n8n credentials via API, specifically overcoming the "allOf schema" validation error that often blocks OAuth2 credential creation during automated deployments.

    The skill is designed for any AI agent or automation tool capable of executing REST API calls or Python scripts, making it compatible with internal developer portals, CI/CD pipelines, and autonomous coding agents.

    Yes, it handles a wide variety of credential types including complex OAuth2 flows (like Google and Microsoft services), as well as standard Basic Auth and HTTP Header authentication.

    You will receive the specialized logic and implementation patterns (in cURL and Python) required to successfully bypass n8n's strict OpenAPI validation requirements.

    Once you have your n8n API key and base URL ready, you can implement these patterns immediately; no additional middleware or complex installation processes are required.

    This skill is designed to be compatible with current versions of n8n that use the REST API for asset management; check the marketplace listing for future compatibility updates as n8n evolves.

    New in APIs & Backend