media
POST
https://linkyhub.net/api/v3 /media Scope media:writeUpload 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-LimitintegerRequests allowed in the current window.
RateLimit-RemainingintegerRequests left in the current window.
RateLimit-ResetintegerSeconds until the window resets.
default An error.
Example
{
"error": "string",
"message": "string"
}Schema
errorstringrequiredA stable code to branch on, e.g. insufficient_scope.
messagestringrequiredA sentence to show a person.
Headers
RateLimit-LimitintegerRequests allowed in the current window.
RateLimit-RemainingintegerRequests left in the current window.
RateLimit-ResetintegerSeconds until the window resets.
Updated