Skip to content

Get Tags from Prompt

Endpoint: GET /api/prompts/{name}/tags

Retrieves tags from a prompt.

Path parameters

Parameter Description Type Required/ Optional
name The name of the prompt to retrieve tags from. string Required.

Response

Returns 200 OK with an array of tag objects, each containing a key-value pair.

Examples

Get tags from a prompt

Request

curl -X 'GET' \
  'https://<YOUR-SERVER-URL>/api/prompts/population-prompt/tags' \
  -H 'accept: application/json' \
  -H 'X-Authorization: <TOKEN>'

Response

[
  {
    "key": "team",
    "value": "docs"
  },
  {
    "key": "team",
    "value": "engineering"
  }
]