Skip to main content
POST
/
images
Upload image
curl --request POST \
  --url https://api.pocketsflow.com/images \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form file='@example-file'
{
  "url": "<string>",
  "id": "<string>"
}

Authorizations

Authorization
string
header
required

Enter your Pocketsflow API key (format: pk_live_... or pk_test_...)

Body

multipart/form-data
file
file
required

Image file to upload

Response

201 - application/json

Image uploaded successfully

url
string

CDN URL of the uploaded image

id
string

Image ID