Developer API & Share Button
Integrate Dexine's saving functionality directly into your website or application.
smart_button Share Button Integration
The easiest way to let your users save images to Dexine is by adding our Share Button to your site. It automatically captures the page title, URL, and the specific image they want to save.
1. Direct Link Construction
Construct a URL with the following parameters:
| Parameter | Required | Description |
|---|---|---|
| img | Yes | Absolute URL of the image to save. |
| url | No | The source page URL (backlink). |
| title | No | Title of the post. |
| desc | No | Description text. |
Example HTML Code
<a href="https://dexine.com/api/share.php?
img=https://example.com/image.jpg&
url=https://example.com/page&
title=My%20Inspiration" target="_blank">
Save to Dexine
</a>
img=https://example.com/image.jpg&
url=https://example.com/page&
title=My%20Inspiration" target="_blank">
Save to Dexine
</a>
Authentication: If the user is not logged in, they will be redirected to the login page and then immediately returned to the save flow.
api Programmatic API
For advanced integrations, you can request a JSON response to handle the flow within your own UI logic.
Add format=json to your request.
Success Response
{
"success": true,
"redirect": "https://dexine.com/tool/upload?..."
}
Auth Required Response
{
"error": "Authentication required",
"login_url": "https://dexine.com/pages/login?redirect=..."
}