Developer Documentation
API Reference
Learn how to integrate PictuRest assets into your websites and applications using our high-speed direct retrieval API.
Base URL
https://picturest.app/api/i/Retrieval Endpoint
Get/[code]
Retrieve an image asset by its unique custom code. This endpoint returns the image data directly with the correct Content-Type headers, making it perfect for use in <img> tags.
Parameters
| Name | Type | Description |
|---|---|---|
| code | string | The custom identifier assigned to the asset in your dashboard. |
Implementation Examples
Standard HTML
<img src="https://picturest.app/api/i/hero-v1" alt="Hero Banner" />Markdown
React / Next.js
import Image from 'next/image';
export const MyComponent = () => (
<Image
src="/api/i/hero-v1"
alt="Hero"
width={800}
height={600}
/>
);Direct Asset Delivery
Our API serves the binary content directly, optimized for high-traffic scenarios and low-latency image loading.