API REFERENCE

Tags API

Tags are free-form labels you hang on records — tickets, clients, contacts, assets, and more. This API has two halves: the tag definitions themselves (text and colors), and the links between a tag and the entities it's applied to.

Define a tag

POST /tags takes a tag_text and optional color and background_color. Rename one later with PUT /tags/{id}/text or recolor it with PUT /tags/{id}/colors without touching anything it's attached to.

curl
curl https://algapsa.com/api/v1/tags \
  -H "X-API-Key: $ALGA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "tag_text": "vip",
    "color": "#ffffff",
    "background_color": "#b91c1c"
  }'

Attach and detach

Applying a tag is keyed on the target record. List what's on a record with GET /tags/entity/{entityType}/{entityId}, add tags with the matching POST, and strip them with the DELETE. To label many records at once, use POST /tags/bulk/tag and DELETE /tags/bulk/untag; POST /tags/bulk/merge folds duplicate tags into one.

See what's in use

GET /tags/cloud returns tags weighted by usage, and GET /tags/analytics breaks down how they're spread across your data.

Endpoints

Every endpoint links through to its full parameters, request and response schemas, and code samples.

GET/api/v1/tagsAlgaPSAAlgaDeskList tagsPOST/api/v1/tagsAlgaPSAAlgaDeskCreate tagGET/api/v1/tags/{id}AlgaPSAAlgaDeskGet tagPUT/api/v1/tags/{id}AlgaPSAAlgaDeskUpdate tagDELETE/api/v1/tags/{id}AlgaPSAAlgaDeskDelete tagPUT/api/v1/tags/{id}/colorsAlgaPSAAlgaDeskUpdate tag colorsPUT/api/v1/tags/{id}/textAlgaPSAAlgaDeskUpdate tag textGET/api/v1/tags/analyticsAlgaPSAAlgaDeskGet tag analyticsPOST/api/v1/tags/bulkAlgaPSAAlgaDeskBulk create tagsDELETE/api/v1/tags/bulkAlgaPSAAlgaDeskBulk delete tagsPOST/api/v1/tags/bulk/mergeAlgaPSAAlgaDeskBulk merge tagsPOST/api/v1/tags/bulk/tagAlgaPSAAlgaDeskBulk tag entitiesDELETE/api/v1/tags/bulk/untagAlgaPSAAlgaDeskBulk untag entitiesDELETE/api/v1/tags/by-textAlgaPSAAlgaDeskDelete tags by textGET/api/v1/tags/cloudAlgaPSAAlgaDeskGet tag cloudGET/api/v1/tags/entity/{entityType}/{entityId}AlgaPSAAlgaDeskList tags for entityPOST/api/v1/tags/entity/{entityType}/{entityId}AlgaPSAAlgaDeskAttach tags to entityDELETE/api/v1/tags/entity/{entityType}/{entityId}AlgaPSAAlgaDeskRemove tags from entityGET/api/v1/tags/searchAlgaPSAAlgaDeskSearch tags