API Reference
Basin provides a REST API that allows you to programmatically access and manage your form data. Use the API to build custom integrations, automate workflows, or incorporate Basin data into your own applications.
View Full API Documentation (Swagger)
Plan availability
API access is included on Growth, Pro, and Agency plans. See Plan Comparison.
Authentication
All API requests require authentication using an API key. Basin supports two types of API keys:
| Key Type | Scope | Use Case |
|---|---|---|
| Account API Key | All forms and projects in your account that you can access | Backend integrations, admin dashboards |
| Form API Key | Single form only | Limited access integrations, Zapier, client projects |
For detailed authentication setup, see our Authentication & Tokens guide.
Forms API Capabilities
Can forms be created through the public API?
Yes. POST /api/v1/forms creates a form under a project you own or administer. You can also list, show, update, and destroy forms.
Which form attributes are returned / accepted by the API?
The forms endpoints expose configuration fields such as:
- Identity and routing:
uuid,name,timezone,project_id,redirect_url, redirect page branding fields - Notifications and autoresponse settings: notification emails/CC/BCC, subjects, from names, autoreply fields, mail template IDs
- Spam and protection: honeypot, CAPTCHA flags,
duplicate_filter,content_blacklist,allowed_domains,blocked_domains,smtp_email_validation - Branding and retention: logo, button colors,
retention_days, dashboard button visibility - Custom email sending domain fields (
domain_id,domain_email) on Pro and above
For the full schema, use the Swagger API Reference.
Can Form Studio fields be created through the API?
No. There is no public API to create or edit Form Studio field definitions. Build and edit Form Studio forms in the Basin dashboard UI.
Can the Form Studio field schema be retrieved?
No documented public endpoint returns a Form Studio field schema for arbitrary forms. Do not assume endpoints such as /api/v1/forms/:id/fields or /api/v1/forms/:id/schema exist unless they appear in the Swagger docs.
The documented /api/v1/form_views endpoints expose read-only records from the legacy Form Builder (Form.io). A legacy form_view schema is not a Form Studio schema.
Which Form Studio operations are UI-only?
These are managed in the Basin dashboard (not via the public forms CRUD API):
- Adding, removing, or reordering Form Studio fields
- Editing Form Studio themes and survey structure
- Publishing hosted Form Studio embeds beyond the fields exposed on the form record
Can tags be assigned while initially posting a submission?
No. Public API submission endpoints support index, show, update, and destroy — not create. Submission updates permit state fields such as spam, read, and trash. Lead tags and rules are configured in the dashboard; there is no API parameter to assign tags when a visitor first posts a submission to your form endpoint.
Visitor submissions still arrive through your normal form endpoint (POST /f/:id), not through the authenticated submissions API create action. Once a submission exists, you can add or remove a tag with the submission tag endpoints.
How do I add or remove a tag on an existing submission?
Use the submission tag endpoints, POST and DELETE /api/v1/submissions/{submission_id}/tags. Each call adds or removes a single tag and leaves the submission's other tags alone. They require lead tags to be enabled for the form and don't trigger tag rules. See the Swagger API Reference for the full request and response details.
How do I move a submission out of spam and reprocess it?
Send PATCH /api/v1/submissions/{id}?reprocess=true with {"submission": {"spam": false}}. Without reprocess, the submission moves to the inbox silently, with no emails or webhooks. With it, Basin runs Inbox Reprocessing as the dashboard's Move to inbox does, and the response includes reprocessing: queued, plan_unavailable or not_eligible. queued means the request was accepted. Basin then reviews the submission in the background and, if approved, sends the notification and auto-response emails shortly after. Check log_events on the submission for "Inbox reprocessing approved", "Inbox reprocessing blocked" or "Inbox reprocessing could not be reviewed". Webhook and bounce events are not included in log_events.
How do I see what happened to a submission?
GET /api/v1/submissions/{id} includes log_events: the submission's processing log, oldest first, with event_type, status, heading and created_at. Event details, webhook events and bounce events are left out. Open the submission's Log tab in the dashboard for the full log.
What is the difference between account- and form-scoped API keys?
Account keys can access all forms and projects available to the account. Form keys can access only one form. Find account keys under Account Settings → API Settings and form keys under Form → Integrations → API.
API Endpoints Overview
| Resource | Description |
|---|---|
/api/v1/forms |
Create, list, show, update, and destroy forms |
/api/v1/submissions |
List, retrieve, update, and destroy submissions |
/api/v1/submissions/{submission_id}/tags |
Add or remove a lead tag on a submission |
/api/v1/projects |
Create, list, show, update, and destroy projects |
/api/v1/form_webhooks |
Create, list, show, update, and destroy form webhooks |
/api/v1/domains |
List domains available to the authenticated account |
/api/v1/form_views |
List and retrieve legacy Form Builder (Form.io) views |
The public Swagger specification does not document APIs for creating or managing Basin Chat, Basin-hosted AI Sites, or Form Studio field schemas. Use the Basin dashboard for those products.
For complete endpoint documentation including request/response schemas, see the Swagger API Reference.
Need Help?
- Authentication issues? See Authentication & Tokens
- API key management? See Account Management: API Access
- Webhook integration? Check out Webhooks for real-time data
- Questions? Contact Basin Support