Collections and tags
Collections (campaigns and groups) and content tags are how a team curates its posts. The routes on this page manage both programmatically: create them ahead of time, rename them, and move posts that are already on the team in and out of them.
None of these routes add posts or spend credits. To add new posts straight into a collection or with tags, pass collections and tags on POST /content/posts/add instead.
Every write route here needs the posts:write scope, which is off by default. A team admin enables it per key under Team Settings → API. Reading collections needs collections:read; listing tags needs posts:read.
Every change made through these routes shows in the team’s activity feed, credited to the API key.
Collections
Collections are the campaign / group hierarchy in Siftsy. type: campaign rows are top-level. type: group rows nest one level under a campaign through parentId. See Content selection for how they are read.
Collection names are unique on the team in any casing, because the content routes match collections by name. Wherever a name is already taken, the response is 409 collection_name_taken with the existing collection in error.candidates[] ({ id, name, type }), and nothing is written. Pass that id instead.
Create a collection
To create a group inside that campaign:
The returned id works anywhere a collection ref is accepted, as { "id": "col_…" }.
Rename a collection
Returns 200 with the renamed collection. Renaming to the current name changes nothing. Posts stay where they are.
Archive a collection
POST /collections/{id}/archive archives a collection, the same as Archive in the app. Archiving a campaign also archives every group under it. Archived collections drop out of GET /collections unless you pass include_archived=true. Nothing is deleted, and no credits move.
The body is optional. By default the posts stay as they are. Pass includePosts: true to archive every post in the collection as well, including posts in a campaign’s groups.
POST /collections/{id}/unarchive takes the same body and returns the same shape. It restores the collection and, for a campaign, its archived groups. With includePosts: true, the collection’s archived posts are restored too.
To archive individual posts instead of a whole collection, use POST /content/posts/archive.
Put posts in collections
POST /content/posts/collections changes which collections up to 100 posts already on the team are in. Name posts by postIds, links, or both. Name collections by { "id": "…" } or { "name": "…" } (case-insensitive). It answers immediately with 200.
On add and set, a name that matches no active collection creates a campaign (created: true in collections), but only when at least one of the posts is on the team. remove never creates a collection: an unknown name is 404 collection_not_found. A name that matches more than one collection is 409 collection_name_ambiguous.
Each row in updated lists every collection the post is in afterwards. Posts that could not be changed come back in rejected with a reason.
Content tags
Tags are plain strings, up to 60 characters. They are trimmed, a leading # is dropped, and matching is case-insensitive: a tag the team already has keeps its existing spelling.
List tags
Most-used first. Saved tags that are on no post yet, or were taken off their last post, are listed at postCount: 0. The list is not paged: it covers the 500 most-used tags plus every saved tag. postCount is null when counts are temporarily unavailable.
Create tags
POST /tags saves up to 25 tags on the team before any post has them, the same as creating a tag in the app’s tag picker.
It returns 201 when at least one tag is new, and 200 when every tag already existed.
Rename a tag
PATCH /tags/{tag} renames a tag on every post that has it and in the team’s saved tags, the same as renaming it in the app. {tag} is the current name in any casing, URL-encoded.
If the new name is already a tag on the team, the two merge, and posts that had both keep one. A rename that only changes casing is allowed. failed lists post ids that could not be updated; send the same request again to finish them.
Tag posts
POST /content/posts/tags changes tags on up to 100 posts already on the team, named by postIds, links, or both. Up to 25 tags per request. Every tag it touches is kept on the team, so it shows in GET /tags. It answers immediately with 200.
To rename a tag across the whole team, use PATCH /tags/{tag} rather than replace over every post.
Per-post reasons
POST /content/posts/collections and POST /content/posts/tags never create posts. Posts they cannot change come back in rejected:
A post that was found but could not be written lands in failed with reason: update_failed. Send the same request again to retry it.
Enterprise keys can target a sub-team with teamId on both routes, as on the other content routes.
Rate limits
The other routes on this page count against the global budget only. See Rate limits.
