Skip to content

Skyvern: Tags schemas

25 Skyvern schemas with complete fields and constraints.

← Tags operations · All schemas

Apply run tags — request body — body

FieldTypePresenceDescription and constraints
$objectRootBody for ``POST /v1/workflows/{wpid}/tags``. Either field may be empty (both
empty is a no-op). On a same-identity collision, set wins over delete.
colorsJSONOptionalOptional map of grouped tag key to palette color name for the value being set. Keys absent from this map keep their existing color or receive a random palette color.
colors (anyOf 1)objectAlternativeAdditional keys: see wildcard field
colors (anyOf 1).*stringAdditional keys
colors (anyOf 2)nullAlternative
tagsarrayOptionalTags to set (overwrite). List of {key?, value} objects.
tags[]ModelEach itemExpand Apply run tags — request body — body tags item
tags_to_deletearrayOptionalTags to soft-delete. List of {key?, value?} targets.
tags_to_delete[]ModelEach itemExpand Apply run tags — request body — body tags to delete item

Referenced models: Apply run tags — request body — body tags to delete item, Apply run tags — request body — body tags item

Apply run tags — request body — body tags item

FieldTypePresenceDescription and constraints
$objectRootOne tag to set. ``value`` is the required label; ``key`` is the optional
group — null for a standalone label, set for a grouped label (e.g. env:prod).
keyJSONOptionalOptional group (key). Omit for a standalone label.
key (anyOf 1)stringAlternative
key (anyOf 2)nullAlternative
valuestringRequired within parentLabel (value). Always required.

Apply run tags — request body — body tags to delete item

FieldTypePresenceDescription and constraints
$objectRootOne tag to soft-delete: a grouped tag by its ``key``, or a standalone label
by its ``value`` (omit the key).
keyJSONOptionalGroup (key) to delete. Use for grouped tags.
key (anyOf 1)stringAlternative
key (anyOf 2)nullAlternative
valueJSONOptionalLabel (value) to delete. Use for standalone labels.
value (anyOf 1)stringAlternative
value (anyOf 2)nullAlternative

Batch get agent tags (POST) — request body — body

FieldTypePresenceDescription and constraints
$objectRootBody for ``POST /v1/workflow-tags`` (used when the wpid list would
exceed the URL length cap).
workflow_permanent_idsarrayOptionalWorkflow permanent IDs to fetch tags for.
workflow_permanent_ids[]stringEach item

Batch get agent tags — response body

FieldTypePresenceDescription and constraints
$objectRootResponse for the batch endpoint.

Workflows with no tags are present with an empty list so the frontend can
distinguish "fetched, none set" from "not fetched" without a second call.
Workflows outside the caller's org are silently absent (no leakage).
workflow_tagsobjectRequired within parentAdditional keys: see wildcard field
workflow_tags.*arrayAdditional keys
workflow_tags.*[]ModelEach itemExpand Batch get run tags — response body — run tags value item

Referenced models: Batch get run tags — response body — run tags value item

Batch get run tags (POST) — request body — body

FieldTypePresenceDescription and constraints
$objectRootBody for ``POST /v1/run-tags`` (used when the run-id list would exceed
the URL length cap).
workflow_run_idsarrayOptionalWorkflow run IDs to fetch tags for.
workflow_run_ids[]stringEach item

Batch get run tags — response body

FieldTypePresenceDescription and constraints
$objectRootResponse for the run-tags batch endpoint.

Runs with no tags are present with an empty list so the frontend can
distinguish "fetched, none set" from "not fetched" without a second call.
Runs outside the caller's org are silently absent (no leakage).
run_tagsobjectRequired within parentAdditional keys: see wildcard field
run_tags.*arrayAdditional keys
run_tags.*[]ModelEach itemExpand Batch get run tags — response body — run tags value item

Referenced models: Batch get run tags — response body — run tags value item

Batch get run tags — response body — run tags value item

FieldTypePresenceDescription and constraints
$objectRootA single tag (key + label) without per-tag attribution. ``key`` is null
for a standalone label.
keyJSONOptional
key (anyOf 1)stringAlternative
key (anyOf 2)nullAlternative
valuestringRequired within parent

Create tag value — request body — body

FieldTypePresenceDescription and constraints
$objectRootBody for ``POST /v1/tag-values``: register a grouped label before any
workflow uses it. The label shows a zero workflow count until applied.
colorJSONOptionalPalette color name for the label; a random palette color when omitted.
color (anyOf 1)stringAlternative
color (anyOf 2)nullAlternative
keystringRequired within parentTag key (group) for the new label.
valuestringRequired within parentTag value (label) to register under the key.

Create tag value — response body

FieldTypePresenceDescription and constraints
$objectRootTag-value color registry entry: the palette color assigned to a grouped
(key, value) pair.
colorstringRequired within parent
keystringRequired within parent
valuestringRequired within parent
workflow_countJSONOptional
workflow_count (anyOf 1)integerAlternativeNumber of non-deleted workflows currently carrying this (key, value) label.
Default: 0
workflow_count (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$

Delete tag key — response body

FieldTypePresenceDescription and constraints
$objectRootResponse for ``DELETE /v1/tag-keys/{key}``.
keystringRequired within parent
removed_countJSONOptional
removed_count (anyOf 1)integerAlternativeDefault: 0
removed_count (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
removed_from_run_countJSONOptional
removed_from_run_count (anyOf 1)integerAlternativeDefault: 0
removed_from_run_count (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
removed_from_workflow_countJSONRequired within parent
removed_from_workflow_count (anyOf 1)integerAlternative
removed_from_workflow_count (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$

Delete tag value — request body — body

FieldTypePresenceDescription and constraints
$objectRootBody for ``DELETE /v1/tag-values/{key}``. The value rides in the body, not the
path, so values containing ``/`` stay addressable.
valuestringRequired within parentTag value (label) under the key to soft-delete.

Delete tag value — response body

FieldTypePresenceDescription and constraints
$objectRootResponse for ``DELETE /v1/tag-values/{key}``.
keystringRequired within parent
removed_countJSONOptional
removed_count (anyOf 1)integerAlternativeDefault: 0
removed_count (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
removed_from_run_countJSONOptional
removed_from_run_count (anyOf 1)integerAlternativeDefault: 0
removed_from_run_count (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
removed_from_workflow_countJSONRequired within parent
removed_from_workflow_count (anyOf 1)integerAlternative
removed_from_workflow_count (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
valuestringRequired within parent

Get agent tag history — response body

FieldTypePresenceDescription and constraints
$objectRoot
eventsarrayRequired within parent
events[]ModelEach itemExpand Get run tag history — response body — events item
workflow_permanent_idstringRequired within parent

Referenced models: Get run tag history — response body — events item

Get agent tags — response body

FieldTypePresenceDescription and constraints
$objectRootCurrent tags for a workflow. A list (not a key-map) so standalone labels,
which have no key, are representable.
tagsarrayRequired within parent
tags[]ModelEach itemExpand Get run tags — response body — tags item
workflow_permanent_idstringRequired within parent

Referenced models: Get run tags — response body — tags item

Get run tag history — response body

FieldTypePresenceDescription and constraints
$objectRoot
eventsarrayRequired within parent
events[]ModelEach itemExpand Get run tag history — response body — events item
workflow_run_idstringRequired within parent

Referenced models: Get run tag history — response body — events item

Get run tag history — response body — events item

FieldTypePresenceDescription and constraints
$objectRootOne row from ``GET /v1/workflows/{wpid}/tags/history``.
event_typestringRequired within parent
keyJSONRequired within parent
key (anyOf 1)stringAlternative
key (anyOf 2)nullAlternative
set_atstringRequired within parentFormat: date-time
set_bystringRequired within parent
sourcestringRequired within parent
superseded_atJSONOptional
superseded_at (anyOf 1)stringAlternativeFormat: date-time
superseded_at (anyOf 2)nullAlternative
tag_event_idstringRequired within parent
valueJSONRequired within parent
value (anyOf 1)stringAlternative
value (anyOf 2)nullAlternative

Get run tags — response body

FieldTypePresenceDescription and constraints
$objectRootCurrent tags for a workflow run.
tagsarrayRequired within parent
tags[]ModelEach itemExpand Get run tags — response body — tags item
workflow_run_idstringRequired within parent

Referenced models: Get run tags — response body — tags item

Get run tags — response body — tags item

FieldTypePresenceDescription and constraints
$objectRootCurrent state of one tag (``GET /v1/workflows/{wpid}/tags`` row).
``key`` is null for a standalone label.
keyJSONOptional
key (anyOf 1)stringAlternative
key (anyOf 2)nullAlternative
set_atstringRequired within parentFormat: date-time
set_bystringRequired within parent
sourcestringRequired within parent
valuestringRequired within parent

List run tag suggestions — response body

FieldTypePresenceDescription and constraints
$objectRootResponse for ``GET /v1/run-tag-suggestions``: distinct (key, value) pairs
ever set on a run for the org, sourced from the event log rather than the
tag-key/tag-value registry so reserved ``skyvern.*`` system keys (never
registered) reach the pickers too.
keysarrayOptionalDistinct grouped tag keys seen on runs.
keys[]stringEach item
labelsarrayOptionalDistinct standalone (keyless) labels seen on runs.
labels[]stringEach item
values_by_keyobjectOptionalValues seen for each grouped key.
Additional keys: see wildcard field
values_by_key.*arrayAdditional keys
values_by_key.*[]stringEach item

Rename tag value — request body — body

FieldTypePresenceDescription and constraints
$objectRootBody for ``PATCH /v1/tag-values/{key}/rename``. Both the current and the new
value ride in the body so values containing ``/`` stay addressable.
new_valuestringRequired within parentNew tag value (label) to rename it to.
valuestringRequired within parentCurrent tag value (label) under the key to rename.

Rename tag value — response body

FieldTypePresenceDescription and constraints
$objectRootResponse for ``PATCH /v1/tag-values/{key}/rename``: the renamed label with its
carried-over color and the number of workflows re-tagged.
colorstringRequired within parent
keystringRequired within parent
renamed_workflow_countJSONRequired within parent
renamed_workflow_count (anyOf 1)integerAlternative
renamed_workflow_count (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
valuestringRequired within parent

Update tag key — request body — body

FieldTypePresenceDescription and constraints
$objectRootBody for ``PATCH /v1/tag-keys/{key}``.
descriptionJSONOptionalFree-form description (max 500 chars). Pass null to clear.
description (anyOf 1)stringAlternative
description (anyOf 2)nullAlternative

Update tag key — response body

FieldTypePresenceDescription and constraints
$objectRootTag-key registry entry.
descriptionJSONOptional
description (anyOf 1)stringAlternative
description (anyOf 2)nullAlternative
keystringRequired within parent
workflow_countJSONOptional
workflow_count (anyOf 1)integerAlternativeDefault: 0
workflow_count (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$

Update tag value color — request body — body

FieldTypePresenceDescription and constraints
$objectRootBody for ``PATCH /v1/tag-values/{key}``. The value rides in the body, not the
path, so values containing ``/`` stay addressable.
colorstringRequired within parentPalette color name to assign to this (key, value).
valuestringRequired within parentTag value (label) under the key to recolor.

Report an issue with this page

Necessary

Required for sign-in, security, authorization, and remembering your choices.

Always active

Analytics

Helps us understand which product and documentation features are useful.

Performance diagnostics

Uses performance tracing and privacy-masked session replay to diagnose problems.

You can change these choices at any time from Cookie settings.