Integrate SharinPix with an External Application
Overview
SharinPix can be used from an external web or mobile application. A web application can display SharinPix components in an iframe, while a mobile application can launch the SharinPix Mobile App through a universal link.
This article explains the architecture, album mapping, and token-generation steps needed for these integrations. It is intended for developers implementing an external application.
In this article, we will cover:
When to use this integration
You use Salesforce alongside an external system or a custom web or mobile application and want to access the same SharinPix files from that application.
You are moving your business application away from Salesforce and want to maintain access to your existing SharinPix files. Contact our Support team before changing the Salesforce organization associated with SharinPix.
Choose the integration approach
Web application: embed a SharinPix Album in an iframe and supply a server-generated online token.
Mobile application: launch the SharinPix Mobile App using a universal link or deep link containing a mobile upload token.

Understand the host organization, album ID, and token
Host Salesforce organization
The host organization is the Salesforce organization associated with your SharinPix account. It provides access to SharinPix configuration and administration. The external application can provide the business interface without requiring users to work in the Salesforce interface.
Before configuring the integration, register your Salesforce organization to SharinPix. If you are testing with a Salesforce Developer organization, SharinPix can later change the associated Salesforce organization so the same SharinPix files remain available through the new organization. Coordinate that change with our Support team to confirm the album mapping and preserve access to existing files.
Album and record mapping
The album ID identifies the SharinPix album that the application should display or upload to. In a Salesforce integration, this is the Salesforce record ID. Your external application must maintain a stable mapping between its business record and the corresponding SharinPix album ID.
For existing files, preserve the existing album IDs in this mapping. Do not assume that the ID of a new external record identifies the existing SharinPix album. The SharinPix Code Generator explains how to use a Salesforce record ID or a field containing an album ID.
Secret, issuer, and token
The issuer identifies the organization owning the album and files. The SharinPix secret is used on a trusted server to sign a JSON Web Token (JWT). The token identifies the target album and grants the permissions needed for the operation.
Follow the secret-creation and server-side signing instructions in Integrate SharinPix Album on Your Website. For token types, permissions, and lifecycle considerations, see Working with SharinPix Tokens.

Display an album in a web application
Authenticate the user in your application and determine which business records they may access.
Resolve that record to the correct SharinPix album ID on your backend.
Generate an online token on the server. Use the online token generation methods for Apex examples, or the website integration example for JWT generation outside Salesforce.
Return the token to the authorized application and use the iframe example in the website integration guide to display the album.
Test both allowed and denied operations with the permissions required by your users.
Launch the SharinPix Mobile App from your application
The SharinPix Mobile App provides capture and upload functionality, including offline capture. Your application obtains an appropriate token and opens a link to hand off the capture workflow.
Your backend should still authorize access to the target album before providing the token or URL.
Generate a mobile upload token for the target album using a Salesforce Flow, Apex method, or Apex trigger.
Provide the token to the authorized external application through your authenticated backend. Do not expose the signing secret.
Construct a universal link or deep link with the token and the required parameters.
Open the link from your application. SharinPix uploads the captured media to the album identified by the token.
Configure a return URL, when needed, using the supported parameters in the deeplink syntax documentation.
Universal-link example (replace the placeholder with a URL-encoded mobile upload token):
Deep-link equivalent:
See the parameters for capture mode, tags, checklist, confirmation behavior, and return navigation. URL-encode dynamic values and test the complete handoff on your target devices.
Test the integration and prepare an organization change
If you need an environment to test the implementation, create a Salesforce Developer organization, install SharinPix, and register the organization. You can then obtain a secret through the SharinPix Administration Dashboard and test token generation, album access, and mobile handoff using the linked guides above.
When you are ready to move to another organization, SharinPix can change the associated Salesforce organization. Contact our Support team to confirm the target setup, licensing, existing album mapping, and cutover steps.
Before going live
Verify that each authorized external record opens the correct album, including records with existing files.
Keep secrets server-side and restrict token permissions and lifetime to the workflow.
Test unauthorized access, expired tokens, mobile handoff, and offline capture, followed by upload.
Confirm the complete integration architecture with our Support team before production use or an organizational change.
If you need a custom upload integration
Custom REST upload integrations are strongly discouraged because they require additional implementation and ongoing maintenance. If your application must control the upload interface or call upload endpoints, contact our Support team and explain your use case and requirements. Support can review the approach and share the relevant technical details if a custom integration is appropriate.

