media

Embed
Preview of the card
<a href="https://linkyhub.net/docs/ref-media"><img src="https://linkyhub.net/docs/_api/public/orgs/2fd2a4b7-b627-4925-af1e-1c51bf890403/spaces/c4b920fb-a433-40b5-b354-ff84bf0c3eb1/pages/66598a95-b5f2-41c7-9fc2-8006bf42c667/social-card.svg?v=3e7ae33eec8b" alt="media" width="600" height="315"></a>
POSThttps://linkyhub.net/api/v3/mediaScope media:write

Upload an image (multipart, part "file") and get a URL for product images or block settings.

Request body

multipart/form-data
filestringrequired
{
  "file": "string"
}

Code samples

cURL
curl -X POST "https://linkyhub.net/api/v3/media" \
  -H "Authorization: Bearer $LINKYHUB_API_KEY" \
  -H "Content-Type: multipart/form-data" \
  -d '{"file":"string"}'
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 Done.
{}
Headers
RateLimit-Limitinteger
Requests allowed in the current window.
RateLimit-Remaininginteger
Requests left in the current window.
RateLimit-Resetinteger
Seconds until the window resets.
default An error.
Example
{
  "error": "string",
  "message": "string"
}
Schema
errorstringrequired
A stable code to branch on, e.g. insufficient_scope.
messagestringrequired
A sentence to show a person.
Headers
RateLimit-Limitinteger
Requests allowed in the current window.
RateLimit-Remaininginteger
Requests left in the current window.
RateLimit-Resetinteger
Seconds until the window resets.
Updated