Assets
Upload an asset
Upload a file (image, font, PDF, etc). Provide base64 content OR a source_url (public HTTPS URL) — not both. source_url is recommended for DALL-E/Unsplash images. Always use the returned url field in your HTML.
post/papi/project/{projectId}/assets
Request
- Base URL: https://api.websitepublisher.ai
- URL: https://api.websitepublisher.ai/papi/project/{projectId}/assets
- Auth: OAuth 2 (authorization code, authorization URL https://api.websitepublisher.ai/dapi/oauth/authorize, token URL https://api.websitepublisher.ai/dapi/oauth/token, scopes: read, write)
Path parameters
projectIdinteger required
Request body
Example request
{
"slug": "images/logo.png",
"source_url": "https://images.unsplash.com/photo-example.jpg"
}Response
Uploaded
Changes
No recorded changes to this operation across all 1 revision of this API.