Upload photo
Upload a photo from a file URL with title, tags and a privacy setting.
POST https://cotlet.dev/api/v1/flickr/photos
write Confirm
Fetches an image from file_url and uploads it to your account with the title, tags and privacy you set. Privacy defaults to private, so nothing goes public by accident. Free accounts hold up to 1,000 public and safe items and 50 non-public ones; Pro has no upload cap. By default you confirm each call; you can switch that off for this tool.
Parameters
| Name | Type | Description |
|---|---|---|
| file_url string required | string | Public URL of the image file to upload. |
| title string | string | Photo title. |
| tags array | array | Tags as a list of strings. |
| privacy enum | enum | public, friends, family, friends_family or private. Default: private. |
Request
curl -X POST https://cotlet.dev/api/v1/flickr/photos \
-H "Authorization: Bearer $COTLET_API_KEY" \
-H "Content-Type: application/json" \
-d '{"file_url":"https://example.com"}' result = client.call("flickr", "upload_photo", {"file_url":"https://example.com"}) const result = await cotlet.call('flickr', 'upload_photo', {"file_url":"https://example.com"}); cotlet call flickr upload_photo --data '{"file_url":"https://example.com"}' Example response
{
"photo_id": "53917620112",
"title": "Sunday market, stall 14",
"privacy": "private",
"url": "https://www.flickr.com/photos/yourname/53917620112",
"status": "uploaded"
}