Skip to main content
POST
/
media
/
upload
Upload media
curl --request POST \
  --url https://api.pickfu.com/v1/media/upload \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "url": "<string>",
  "data": "<string>",
  "filename": "<string>"
}
'
{
  "success": true,
  "data": {
    "url": "<string>",
    "resourceType": "<string>",
    "embedded": true
  }
}

Documentation Index

Fetch the complete documentation index at: https://www.pickfu.com/docs/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

OAuth2 access token obtained via the authorization flow. Include in the Authorization header as: Bearer {access_token}

Body

application/json
url
string<uri>
required

HTTPS URL of the media to upload. Mutually exclusive with data.

data
string

Base64-encoded media content. Mutually exclusive with url. Max 20MB.

filename
string

Optional filename hint for the CDN public ID

Maximum string length: 255
resourceType
enum<string>

Resource type. Auto-detected from URL/content if omitted.

Available options:
image,
video

Response

200 - application/json

Default Response

success
boolean
data
object