Platform APIs are a set of ready-made APIs provided by Sprintfy that cover the most common backend needs such as user management, media handling, reference data, notifications, and dynamic forms.
These APIs are available by default for every project and are designed to be consumed directly by web or mobile applications.
Important:
Every API request must include the spfhash header.
Each API has its own unique hash, which can be found in the API documentation
inside the CMS.
User APIs allow authenticated users to manage their profile, security, connected accounts, and registered devices.
-
Retrieve Authenticated User
Returns the current user's profile information using the access token. -
Update User Information
Update profile fields with support for meta data and lookup slugs. -
Update Password
Allows the authenticated user to change their password securely. -
Update FCM Token
Register or update the Firebase token used for push notifications. -
Remove FCM Token
Remove a Firebase token when notifications are disabled or before logout. -
Register User Device
Register a user device for tracking, notifications, or device-limit enforcement. -
Remove User Device
Remove a registered device from the user account. -
Link Social Media Account
Attach a social media account to the authenticated user for future login. -
Unlink Social Media Account
Detach a linked social media account from the user profile.
Media APIs allow you to upload and manage files without adding file fields to your database tables.
-
Upload Media Files
Upload files and attach them to any model record dynamically. You must provide:key– defined in Media Collections (CMS)model_id– record ID or slugfiles– uploaded files
-
Delete Media Files
Soft-delete media files using the mediauuid.
Dynamic Forms APIs allow frontend applications to render and submit forms defined in the CMS.
-
Retrieve Form Definition
Returns form structure and fields using the formspfy_id. -
Submit Form
Submit form values using the formspfy_idand key-value pairs. -
Retrieve User Submission
Returns the authenticated user's submission. Supportsflat = truefor flat object responses. -
Update Form Submission
Update an existing submission using the submissionspfy_id. Only changed values are required.