Import a file from a public URL
POST
apiKeyheader
x-api-key<token>application/json- body
url*stringFormat
uriscenarioId*stringValue in
"post_attachments""user_avatar"OK
application/json- response
uploadId*stringFormat
uuidmediaId*|nullpublicUrl*stringtype*stringValue in
"IMAGE""GIF""VIDEO"bytes?integerRange
-9007199254740991 <= value <= 9007199254740991curl -X POST 'https://app.postonus.com/api/v1/uploads/from-url' \ -H 'Content-Type: application/json' \ -d '{ "url": "http://example.com", "scenarioId": "post_attachments"}'Example Response
{ "uploadId": "ef523ba8-509e-47af-8e2c-5fa751596497", "mediaId": "5a8ffac5-2288-485d-b463-90c3cd9941ad", "publicUrl": "string", "type": "IMAGE", "bytes": -9007199254740991}