API Reference
Assign a tag to a prompt (existing tagId or new name to upsert)
POST
header
X-API-Key<token>API Key for programmatic access
promptId*stringapplication/json- body
tagId?stringUUID of an existing tag to attach
name?stringName of a tag to create and attach; use instead of tagId
Tag assigned
application/json- response
id*stringPublic UUID of the tag
organizationId*stringUUID of the owning organization
domainId*stringUUID of the domain the tag belongs to
name*stringTag name, unique within the domain
createdAt*stringWhen the tag was created
Format
date-timeupdatedAt*stringWhen the tag was last renamed
Format
date-timecurl -X POST 'https://api.getmint.ai/api/prompts/string/tags' \ -H 'Content-Type: application/json' \ -d '{}'{ "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "organizationId": "7c9e6679-7425-40de-944b-e07fc1f90ae7", "domainId": "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d", "name": "retail", "createdAt": "2026-05-25T10:30:00.000Z", "updatedAt": "2026-05-25T10:30:00.000Z"}