Creating API Catalogs
This guide walks you through creating API Catalogs in Vendia MCP Server to enable AI applications to discover and interact with your APIs.
Prerequisites
Before creating an API Catalog, ensure you have:
- A valid OpenAPI or Swagger specification file (JSON, YAML, or YML format)
- Access to the Vendia console
- Your API’s base URL (if different from the specification)
- Authentication credentials for your API (API key, bearer token, etc.)
Step 1: Prepare Your API Specification
Supported Formats
API Catalogs support the following specification formats:
- OpenAPI 3.x (JSON or YAML)
- Swagger 2.0 (JSON or YAML)
File Size Limits
- Maximum file size: 5MB (all tiers)
- Maximum operations per catalog: 25 operations (API endpoints like
GET /users
,POST /orders
, etc.) - Free Tier only
Optimize Your Specification
If your specification exceeds these limits:
- Split Large Specifications: Divide your API into multiple smaller catalogs
- Remove Unnecessary Content: Strip out verbose descriptions, examples, and documentation that aren’t essential
- Focus on Core Endpoints: Create catalogs for your most critical API operations
Step 2: Access the Vendia Console
- Log in to the Vendia console
- Navigate to your MCP Server dashboard
- Select API Catalogs from the navigation menu
Step 3: Create a New API Catalog
- Click the Add API Catalog button
- Provide a name for your catalog (this will be visible to AI applications)
- Add an optional description to help identify the catalog’s purpose
Step 4: Upload Your Specification
- Click Choose File or drag and drop your specification file
- Supported formats:
.json
,.yaml
,.yml
- Wait for the file to upload and validate
Step 5: Configure API Settings
Base URL (Optional)
If your API’s base URL differs from the one in your specification:
- Enter the Base URL Override field
- Example:
https://api.example.com/v1
This is useful when:
- Using different environments (staging vs. production)
- The specification has a generic placeholder URL
- You want to test against a specific API instance
Version (Optional)
If your API’s version differs from the one in your specification:
- Enter the Version Override field using numeric semantic versioning format
- Example:
1.0.0
,2.1.3
,3.0.0
Only numeric versions are supported: MAJOR.MINOR.PATCH
(e.g., 1.0.0
). Pre-release labels like -beta
or -alpha
are not supported.
Step 6: Add Authentication (Optional)
If your API requires authentication, you can add custom headers:
Adding Headers
- Click Add Header
- Enter the Header Name (e.g.,
Authorization
,X-API-Key
) - Enter the Header Value (e.g.,
Bearer YOUR_TOKEN
, your API key)
Common Authentication Patterns
API Key in Header:
Header Name: X-API-KeyHeader Value: your-api-key-here
Bearer Token:
Header Name: AuthorizationHeader Value: Bearer your-token-here
Basic Auth:
Header Name: AuthorizationHeader Value: Basic base64-encoded-credentials
Security Best Practices
Step 7: Save the Catalog
- Click Upload API Specification to create the API Catalog
- The catalog is automatically enabled when saved
- AI applications can now discover and interact with your API
- You can disable the catalog later by toggling the Enable switch to temporarily restrict access
Verifying Your API Catalog
After saving the catalog:
- Check the Status: Ensure the catalog shows as “Active” or “Enabled”
- Review Operations: Verify that the expected API operations are listed
- Test with AI: Connect an AI application and ask it to describe the available endpoints
- Verify Authentication: If using authentication, test that API calls succeed
Free Tier Catalog Limits
The Free Tier supports up to 2 API Catalogs with 25 operations per catalog. To use more catalogs or operations, upgrade to Vendia Pro or Enterprise.
Troubleshooting
Specification Upload Fails
Problem: The specification file won’t upload or shows validation errors.
Solutions:
- Verify the file is valid JSON or YAML
- Check that the file size is under 5MB
- Ensure the specification follows OpenAPI 3.x or Swagger 2.0 standards
- Use an online validator to check your specification
Authentication Not Working
Problem: API calls fail with authentication errors.
Solutions:
- Verify the header name matches your API’s requirements (case-sensitive)
- Check that the token or API key is valid and not expired
- Ensure the authentication credential has the necessary permissions
- Test the API directly (outside of Vendia) to confirm the credentials work
Catalog Not Visible to AI
Problem: AI application can’t see or access the catalog.
Solutions:
- Verify the catalog is enabled (toggle is on)
- Check that your MCP server URL is correctly configured in the AI application
- Restart your AI application after adding the catalog
- Review the MCP server logs for connection errors
Next Steps
- Authentication and Headers - Learn more about authentication options
- Best Practices - Optimize your API Catalogs
- Use Cases - See examples of API Catalogs in action
- Troubleshooting - Resolve common issues