Skip to main content

Strapi

Prefer guided AI setup?

Instead of following these steps manually, you can use the AI Credential Assistant — describe what you want to connect and the AI will walk you through the setup step by step, tailored to your account.

Overview​

Connect your Strapi headless CMS to Nirvai to automate content management and manage your API collections.

Supported Authentication Methods​

  • API Token - Admin-generated token (recommended)
  • User Account - Email/password authentication

Prerequisites​

  • A Strapi project (cloud or self-hosted)
  • Admin access to generate API tokens

Setup Instructions​

Step 1: Create API Token​

  1. Log in to your Strapi admin panel
  2. Go to Settings > Global Settings > API Tokens
  3. Click Create new API token
  4. Configure token settings:
    • Name: Give it a descriptive name
    • Type: Select access level (Read-only or Full access)
    • Duration: Set expiration (or unlimited)
  5. Click Save and copy the token

Step 2: Get Your Strapi URL​

  • Strapi Cloud: https://your-project.strapiapp.com
  • Self-hosted: Your server URL (e.g., https://api.example.com)

Step 3: Configure in Nirvai​

  1. In Nirvai, select Strapi API Token
  2. Enter your Strapi URL
  3. Select API Version (v4 for Strapi 4+)
  4. Paste your API Token
  5. Save the credential

API Versions​

VersionStrapi VersionURL Format
v4Strapi 4.x/api/...
v3Strapi 3.x/...

Available Operations​

With Strapi credentials, you can:

  • Create, read, update, delete content
  • Manage collection types
  • Access media library
  • Handle relations between content

Token Types​

TypeAccess Level
Read-onlyGET requests only
Full accessAll CRUD operations
CustomSelected permissions

Troubleshooting​

Common Issues​

  • 401 Unauthorized: Token is invalid or expired
  • 403 Forbidden: Token lacks required permissions
  • Wrong API Version: Check your Strapi version
  • URL Error: Ensure correct URL without trailing slash

Permission Issues​

If you see "API tokens" is not available:

  • Your account needs "API tokens > Read" permission
  • Contact your Strapi admin

Adapted from n8n documentation for Nirvai platform


Next Steps​

Got your credential? Connect it to an agent

Use the AI Tool Creator to turn this credential into agent-callable tools. Describe what your agent should be able to do and the AI investigates the API, configures the endpoints, and gives you a reviewable toolkit before saving anything.