Skip to main content
POST
/
tags
Create Tag
curl --request POST \
  --url https://api.promptmetrics.dev/tags \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "Finance",
  "workspace_id": "64abcf123"
}
'
{
  "responseData": {
    "data": {
      "_id": "<string>",
      "name": "<string>",
      "workspace_id": "<string>",
      "status": "ACTIVE",
      "created_at": "2023-11-07T05:31:56Z",
      "updated_at": "2023-11-07T05:31:56Z"
    }
  },
  "message": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
name
string
required

Tag name

Minimum string length: 1
workspace_id
string
required

Response

Tag created

responseData
object
message
string