Overview
This quickstart guide shows you two ways to create your first backend with Sutro:- Studio: Use the visual interface to create backends without writing code
- SLang: Write your backend definition in SLang and upload it to Sutro
Before you begin
Tools
jqandcurl
Security bundle
Downloadsecurity-bundle.zip from the Sutro Console during onboarding. Extract it and run all commands from that directory. The bundle includes your API client credentials (apiClient.id, mtls.key, mtls.crt), the Sutro CA certificate (ca.crt), and a pre-generated Builder JWT (builder.jwt) valid for 7 days.
Verify your connection
Test that your credentials work by calling the hello endpoint:Option 1: Using Studio
Studio is the simplest way to get started. You can create and edit backends visually without writing any code.Access Studio
Visit the Sutro Console and navigate to Studio. You’ll see an intuitive interface for building your backend.
Create your backend
Use Studio’s visual interface to:
- Define entities and their relationships
- Add actions and business logic
- Configure security rules
- See changes take effect immediately
Option 2: Using SLang
If you prefer to define your backend in code, you can write it in SLang and upload it to Sutro.Create a Project
Start by creating a Project to hold your SLang definition and application.Call The project details are stored in
POST /projectsproject.json; refer to that file in upcoming steps.Write your SLang definition
Create a SLang file that defines your backend. Here’s a simple example for a todo app:Save this as
backend.slang.Create an Application
Create an Application within your project to hold your SLang definition.Call The application details are stored in
POST /projects/{projectId}/applicationsapplication.json.Upload your SLang definition
Upload your SLang file to the application.Call Your SLang definition is now uploaded and ready to generate.
PUT /applications/{applicationId}/scodeGenerate and deploy
Generate your backend from the SLang definition and deploy it.Call Your backend is now generated and deployed!
POST /applications/{applicationId}/generate to generate, then POST /applications/{applicationId}/deployment to deploy.Congratulations! You’ve created your first backend. Your backend is now running and ready to use.
Next steps
- Learn more about Studio - Explore Studio’s visual interface
- Introduction to SLang - Understand SLang language constructs and features
- Read the API reference - Explore all available API endpoints