Prerequisites
- A running SnackBase instance
- At least one collection with data
- Familiarity with Custom Endpoints concepts
Building Your First Endpoint
Add Authorization
Use a condition expression to restrict access:If the condition evaluates to
false, the endpoint returns 403 Forbidden.More Examples
Form Submission Endpoint
Accept form data and create a record:Dashboard Data Endpoint
Aggregate data for a dashboard:Troubleshooting
404 when calling the endpoint
404 when calling the endpoint
- Verify the endpoint is
enabled - Check the URL format:
/api/v1/x/{path}(note the/x/prefix) - Confirm the HTTP method matches (GET, POST, etc.)
- Check path parameter syntax uses
:paramformat
403 Forbidden
403 Forbidden
- The
conditionexpression evaluated tofalse - If
auth_requiredistrue, ensure you’re sending a valid auth token
409 Conflict on creation
409 Conflict on creation
- Another endpoint with the same
pathandmethodalready exists - Each (path, method) combination must be unique per account
Actions timing out
Actions timing out
Endpoints have a 30-second execution timeout. If your action pipeline is complex, consider:
- Reducing query
limitvalues - Simplifying filter expressions
- Breaking complex logic into separate endpoints
Next Steps
- Custom Endpoints Concept — full reference
- Endpoints API Reference — all endpoints
- Endpoints SDK Reference — SDK methods