API Keys
Overview
API Keys give your external systems secure, programmatic access to the ZappWay platform. With an API key, you can automate agent interactions, manage datastores, query contact data, retrieve conversation logs, and much more — all without touching the dashboard manually. To access API Keys:- Embedding ZappWay’s AI into your own custom application or mobile app
- Syncing your internal databases with ZappWay datastores automatically
- Exporting leads and conversation logs to your CRM in real time
- Triggering agent queries from your own backend workflows
Managing API Keys
Generating a New Key
ZappWay generates cryptographically secure, random API keys. To create one:- Navigate to Settings → API Keys
- Click Create API Key
- Optionally give the key a descriptive label (e.g., “CRM Integration”, “Mobile App”, “Zapier Webhook”)
- The key is displayed immediately in the list
- Click the copy icon to save it to your clipboard
Viewing Existing Keys
The API Keys page lists all active keys associated with your organization. For security, the full key value is only shown once — immediately after creation. After that, only the last few characters are visible for identification purposes. If you lose a key, you cannot recover it. You must revoke it and generate a new one.Revoking a Key
To permanently invalidate an API key:- Navigate to Settings → API Keys
- Click the trash icon next to the key you want to revoke
- Confirm the deletion in the dialog
- The key stops working immediately
- Any service or integration using that key will begin failing with
401 Unauthorizederrors - Revocation is permanent and cannot be undone
If you suspect a key has been compromised, revoke it immediately and generate a replacement. Update all integrations using the old key before the new one is deployed.
Authentication
All API requests to ZappWay must include your API key in theAuthorization header using Bearer token format:
Base URL
All API endpoints are available under the following base URL:API Modules
ZappWay’s REST API is organized into modules, each corresponding to a core platform feature. Explore the full reference documentation for each:AI Agents
Create, update, query, and manage your AI Employee agents programmatically. Control system prompts, model selection, and behavior configuration.
Datastores
Manage your knowledge repositories. Upload files, upsert documents, and control the information your agents have access to.
Datasources
Connect websites, files, and external services to your datastores. Trigger re-indexing and manage source configurations.
Conversations & Logs
Send messages to your agents, retrieve conversation history, and monitor human intervention events via API.
Common Use Cases
Chat Integration (Custom Application)
Embed ZappWay’s AI engine into your own web app, mobile app, or internal tool. Use the agent query endpoint to send user messages and receive AI responses without the ZappWay UI.Datastore Sync (Automated Knowledge Updates)
Keep your AI agent’s knowledge base up to date by programmatically upserting documents whenever your internal data changes — from your CMS, database, or any content pipeline.Lead Export (CRM Automation)
Pull conversation logs and contact data captured by your agents and push them directly into your CRM, email marketing platform, or data warehouse.Response Format
All API responses return JSON. A standard successful response follows this structure:HTTP Status Codes
| Code | Meaning |
|---|---|
200 OK | Request succeeded |
201 Created | Resource created successfully |
400 Bad Request | Invalid parameters — check your request body |
401 Unauthorized | Missing or invalid API key |
403 Forbidden | Valid key but insufficient permissions |
404 Not Found | The requested resource does not exist |
429 Too Many Requests | Rate limit exceeded — slow down requests |
500 Internal Server Error | Server-side error — contact support if it persists |
Rate Limits
API requests are subject to rate limiting to ensure platform stability for all users.| Plan | Rate Limit |
|---|---|
| Free | 60 requests / minute |
| Pro | 300 requests / minute |
| Enterprise | Custom — configured per agreement |
429 Too Many Requests with a Retry-After header indicating how many seconds to wait before retrying.
Best practices to avoid rate limiting:
- Batch multiple operations into single requests where the API supports it
- Implement exponential backoff on
429responses - Cache responses locally when the same data is requested repeatedly
Security Best Practices
1. Use Environment Variables Never hardcode API keys in your source code. Store them as environment variables and load them at runtime.Troubleshooting
Issue: 401 Unauthorized Error
Symptoms:
- All API requests return
401regardless of endpoint
- Verify the key is being sent in the correct header format:
Authorization: Bearer YOUR_KEY - Check for extra spaces or line breaks around the key value
- Confirm the key has not been revoked — check the API Keys page in your dashboard
- Generate a new key and test with it directly to rule out a corrupted key
Issue: 403 Forbidden Error
Symptoms:
- Request is authenticated but returns
403on specific endpoints
- Verify your account role has permission to perform the action (e.g., only Admins can delete agents via API)
- Confirm the resource belongs to the same organization as your API key
- Check if the endpoint requires a specific plan tier — some endpoints are Pro or Enterprise only
Issue: 429 Too Many Requests
Symptoms:
- Requests start failing during high-volume automation jobs
- Implement exponential backoff — wait and retry after the time specified in the
Retry-Afterheader - Reduce request frequency by batching operations
- Check if your integration has a loop that’s making unintended rapid-fire requests
- Upgrade your plan for higher rate limits if your use case legitimately requires more throughput
Issue: Key Stopped Working After Working Previously
Symptoms:- An integration that was working starts returning
401errors
- Check the API Keys page — the key may have been revoked by another Admin in your organization
- Verify no one rotated the key as part of a security procedure
- Generate a new key and update the affected integration
- Contact support@zappway.ai if you need help identifying who revoked the key
Full API Reference
For detailed documentation on every endpoint, including parameters, request bodies, and example responses:API Reference
View the complete API reference with interactive examples for every endpoint.
Support
Need help with API integration? Contact ZappWay Support:- Email: support@zappway.ai
- Subject line: Include “API” for faster routing
- The endpoint you are calling (method + URL)
- The HTTP status code and error message returned
- A sanitized version of your request (remove the API key before sharing)
- Your programming language and HTTP client/library
Last Updated: March 2026 Platform: ZappWay Dashboard — API Keys

