Labels
List the labels of your AdaptlyPost workspace and put them on posts through the API, for example one label per brand.
https://post.adaptlypost.com/post/api/v1/labelsList the labels of the workspace, sorted by name. Labels are created in the AdaptlyPost app.
Usage
Labels group posts inside AdaptlyPost, for example one label per brand. Pass label IDs in labelIds when you create or update a post, or as the labelIds filter of List Posts. Every post in a response carries its labels as { id, name, color }. Labels are created, renamed and deleted in the AdaptlyPost app, not through the API.
A post takes up to 10 labels. An ID that is not a label of the workspace, such as one from another workspace or one that does not exist, returns 400 with a message that points to GET /labels.
Label fields
| Field | Description |
|---|---|
id | Pass it in labelIds on Create Post and Update Post, or in the labelIds filter of List Posts |
name | The label name |
color | The label color as a hex code, such as #3B82F6 |
1curl --request GET \2 --url https://post.adaptlypost.com/post/api/v1/labels \3 --header 'Authorization: Bearer <api-key>'3 lines