Create a tag

View as Markdown

Creates a library tag (optionally under a parent). Requires action:manage.

Authentication

AuthorizationBearer

WorkOS session JWT or an organization API key, sent as Authorization: Bearer <token>.

Request

This endpoint expects an object.
labelstringRequired1-200 characters
parentIdstring or nullOptional>=1 character

Response

The created tag.
tagobject

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error