Invite people to a gallery
Switch a gallery to People I Choose and email invitations to the addresses you give.
POST https://cotlet.dev/api/v1/smugmug/galleries/{gallery_id}/viewers/invite
Sends SmugMug invitation emails and returns the addresses invited and the total now invited to the gallery. Each guest accepts by email and signs up for a guest account if needed. One gallery, folder or page takes up to 200 invitations. Private sharing needs the Power plan or higher. By default you confirm each call; you can switch that off for this tool.
Parameters
| Name | Type | Description |
|---|---|---|
| gallery_id string required | string | Gallery ID from list_galleries. |
| emails array required | array | Email addresses to invite. |
Request
curl -X POST https://cotlet.dev/api/v1/smugmug/galleries/Xk4RtP/viewers/invite \
-H "Authorization: Bearer $COTLET_API_KEY" \
-H "Content-Type: application/json" \
-d '{"emails":["anna@example.com","tom@example.com"]}' result = client.call("smugmug", "invite_gallery_viewers", {"gallery_id":"Xk4RtP","emails":["anna@example.com","tom@example.com"]}) const result = await cotlet.call('smugmug', 'invite_gallery_viewers', {"gallery_id":"Xk4RtP","emails":["anna@example.com","tom@example.com"]}); cotlet call smugmug invite_gallery_viewers --data '{"gallery_id":"Xk4RtP","emails":["anna@example.com","tom@example.com"]}' Example response
{
"gallery_id": "Xk4RtP",
"access": "people_i_choose",
"invited": [
"anna@example.com",
"tom@example.com"
],
"total_invited": 2
}