API Setup and Endpoints
Softr API key generation and available endpoints.
You can generate an API token for your Softr account to be used when interacting with the API endpoints. Let’s first see how you can generate the token, and then we’ll review the available endpoints and provide API call examples.
Generating an API token
You authenticate API calls with a Personal Access Token. To create one:
- Open your Softr Dashboard, click on your workspace in the top-left corner, and go to API tokens.

- Click Create, give your token a recognizable name, and pick an expiration period.

- Define the scopes (what the token can access and the permissions it has), then click Continue.

- Copy the token and store it somewhere safe. For security reasons, Softr shows it only once.

You’ll pass this token in the Softr-Api-Key header of every request (see the examples below).
That’s it. Now you have your API token that you can use when interacting with your Softr apps through the API. Let’s proceed to see what endpoints are available.
API Endpoints
Create User
This endpoint allows creating a user inside the specified Softr app within your account. Below is an example of an API call.
curl --request POST 'https://studio-api.softr.io/v1/api/users' \
--header 'Softr-Api-Key: uYGskr7MqMeRYrjQjsB8uEQ8n' \
--header 'Softr-Domain: yourdomain.com' \
--header 'Content-Type: application/json' \
--data-raw '{
"full_name": "John Richardson",
"email": "johnr@gmail.com",
"password": "12345678",
"generate_magic_link":true
}'Here, you need to replace the value next to Softr-Api-Key with the API token you’ve generated and add your Softr app’s domain/subdomain instead of yourdomain.com.
Next, you need to provide the Full Name of the new user along with an Email and Password (replace the values next to full_name, email, and password).
Finally, you can set the value of generate_magic_link to “true” or “false” depending on whether you want to generate a Magic Link for the user or not.
Delete User
Using this endpoint, you can delete a user from the specified Softr app. Below is an example of an API call.
curl --location --request DELETE 'https://studio-api.softr.io/v1/api/users/user@softr.io' \
--header 'Softr-Api-Key: pYSskw7MqMeRUgjQtsf9uRQ5n' \
--header 'Softr-Domain: yourdomain.com'Just replace user@softr.io with the actual email of the user you need to delete as well as provide your API token (the value next to Softr-Api-Key) and the domain/subdomain of the Softr app (the value next to Softr-Domain) you want to delete the user from. The rest needs to remain the same as in the example.
Deactivate User
Using this endpoint, you can deactivate a user in the specified Softr app. Deactivated users cannot log in and don’t count toward your plan’s user limit, but their record is retained and they can be re-activated later. Below is an example of an API call.
curl --location --request POST 'https://studio-api.softr.io/v1/api/users/user@softr.io/deactivate' \
--header 'Softr-Api-Key: pYSskw7MqMeRUgjQtsf9uRQ5n' \
--header 'Softr-Domain: yourdomain.com'Just replace user@softr.io with the actual email of the user you need to deactivate as well as provide your API token (the value next to Softr-Api-Key) and the domain/subdomain of the Softr app (the value next to Softr-Domain) you want to deactivate the user in. The rest needs to remain the same as in the example.
Activate User
Using this endpoint, you can re-activate a previously deactivated user in the specified Softr app. Below is an example of an API call.
curl --location --request POST 'https://studio-api.softr.io/v1/api/users/user@softr.io/activate' \
--header 'Softr-Api-Key: pYSskw7MqMeRUgjQtsf9uRQ5n' \
--header 'Softr-Domain: yourdomain.com'Just replace user@softr.io with the actual email of the user you need to activate as well as provide your API token (the value next to Softr-Api-Key) and the domain/subdomain of the Softr app (the value next to Softr-Domain) you want to activate the user in. The rest needs to remain the same as in the example.
Invite User
Using this endpoint, you can send an invitation email to an existing user of the specified Softr app. Once invited, the user’s status changes to Invited. Note that the app must be published for invitations to be sent. Below is an example of an API call.
curl --location --request POST 'https://studio-api.softr.io/v1/api/users/user@softr.io/invite' \
--header 'Softr-Api-Key: pYSskw7MqMeRUgjQtsf9uRQ5n' \
--header 'Softr-Domain: yourdomain.com'Just replace user@softr.io with the actual email of the user you need to invite as well as provide your API token (the value next to Softr-Api-Key) and the domain/subdomain of the Softr app (the value next to Softr-Domain) you want to invite the user in. The rest needs to remain the same as in the example.
Generate a Magic Link for the User
Using this endpoint, you can generate a Magic Link for the specified user in your Softr app. Below is an example of an API call.
curl --location --request POST 'https://studio-api.softr.io/v1/api/users/magic-link/generate/user@softr.io' \
--header 'Softr-Api-Key: pYSskw7MqMeRUgjQtsf9uRQ5n' \
--header 'Softr-Domain: yourdomain.com'Just replace user@softr.io with the actual email of the user as well as provide your API token (the value next to Softr-Api-Key) and the domain/subdomain of your Softr app (the value next to Softr-Domain).
Sync a Single User, Group of Users, or All Users
Use this endpoint to sync a single user, an array of users, or if no email is included, trigger a user sync for all users. Single User or Group of Users:
curl --location --request POST 'https://studio-api.softr.io/v1/api/users/sync' \
--header 'Softr-Api-Key: pYSskw7MqMeRUgjQtsf9uRQ5n' \
--header 'Softr-Domain: yourdomain.com'
--data-raw '["email1@example.com", "email2@example.com", "email3@example.com"]'Sync All Users:
curl --location --request POST 'https://studio-api.softr.io/v1/api/users/sync' \
--header 'Softr-Api-Key: pYSskw7MqMeRUgjQtsf9uRQ5n' \
--header 'Softr-Domain: yourdomain.com'Validate an Authentication Token
Use this endpoint to check a user’s authentication token (JWT) from a system outside Softr. For example, your own backend can check that a request comes from a signed-in user of your app before it saves data for that user.
curl --location --request POST 'https://yourdomain.softr.app/v1/api/users/validate-token' \
--header 'Content-Type: application/json' \
--data-raw '{"jwt":"your jwt token value"}'Replace yourdomain.softr.app with your app’s Softr subdomain or the custom domain you connected. Replace your jwt token value with the token you want to check.
Response
The body is a plain JSON boolean. It has no user data.
truefalseWhat the endpoint checks
The endpoint returns true only when all of these are true:
- The token has a valid Softr signature.
- The user has not signed out, and has not changed their password, since the token was created.
- The session has not expired.
- The user from the token is a user of the app on the domain you called.
How long a token is valid
The token has no exp claim. Softr reads the time the token was created (the iat claim) and checks it against the app’s Log user out setting, for example Every 90 days. See Security.
Softr does not refresh tokens. When the session ends, the user signs in again and gets a new token.
When a user signs out or changes their password, all their older tokens become invalid. It can take up to about 10 seconds before every Softr server rejects them.
Use Cases
There are certainly a lot of different use cases for interacting with the Softr API. But if you’re working with no-code tools, you can make API calls with such tools as Zapier or Integromat. In subsections to this article, we consider some use cases involving Zapier and Make to take you through the setup process.