Tags
List Tags
Path Parameters
Workspace ID
Query Parameters
Search by tag name
Maximum number of items to return (1-200)
501 <= value <= 200Cursor for pagination (from previous response's next_cursor)
Header Parameters
Response Body
application/json
application/json
curl -X GET "https://loading/v1/orgs/string/workspaces/string/tags"{
"total": 0,
"has_more": false,
"next_cursor": "string",
"tags": [
{
"tag_id": "string",
"workspace_id": "string",
"name": "string",
"color": "string",
"description": "string",
"icon": "string",
"usage_count": 0,
"created_by": "string",
"created_at": "string",
"updated_at": "string"
}
]
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}Create Tag
Path Parameters
Workspace ID
Header Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X POST "https://loading/v1/orgs/string/workspaces/string/tags" \ -H "Content-Type: application/json" \ -d '{ "name": "string" }'{
"tag_id": "string",
"workspace_id": "string",
"name": "string",
"color": "string",
"description": "string",
"icon": "string",
"usage_count": 0,
"created_by": "string",
"created_at": "string",
"updated_at": "string"
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}Get Tag
Path Parameters
Workspace ID
Tag ID
Header Parameters
Response Body
application/json
application/json
curl -X GET "https://loading/v1/orgs/string/workspaces/string/tags/string"{
"tag_id": "string",
"workspace_id": "string",
"name": "string",
"color": "string",
"description": "string",
"icon": "string",
"usage_count": 0,
"created_by": "string",
"created_at": "string",
"updated_at": "string"
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}Update Tag
Path Parameters
Workspace ID
Tag ID
Header Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X PATCH "https://loading/v1/orgs/string/workspaces/string/tags/string" \ -H "Content-Type: application/json" \ -d '{}'{
"tag_id": "string",
"workspace_id": "string",
"name": "string",
"color": "string",
"description": "string",
"icon": "string",
"usage_count": 0,
"created_by": "string",
"created_at": "string",
"updated_at": "string"
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}Delete Tag
Path Parameters
Workspace ID
Tag ID
Header Parameters
Response Body
application/json
curl -X DELETE "https://loading/v1/orgs/string/workspaces/string/tags/string"{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}Assign Tag To Resource
Path Parameters
Workspace ID
Tag ID
Header Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X POST "https://loading/v1/orgs/string/workspaces/string/tags/string/assign" \ -H "Content-Type: application/json" \ -d '{ "resource_type": "secret", "resource_id": "string" }'null{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}Unassign Tag From Resource
Path Parameters
Workspace ID
Tag ID
Query Parameters
Resource type
"secret" | "source" | "augmentation" | "endpoint" | "app" | "model_instance" | "prompt" | "namespace" | "thread"Resource ID
Header Parameters
Response Body
application/json
application/json
curl -X DELETE "https://loading/v1/orgs/string/workspaces/string/tags/string/assign?resource_type=secret&resource_id=string"null{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}Get Resources By Tag
Path Parameters
Workspace ID
Tag ID
Query Parameters
Filter by resource type
Maximum number of items to return (1-200)
501 <= value <= 200Cursor for pagination (from previous response's next_cursor)
Header Parameters
Response Body
application/json
application/json
curl -X GET "https://loading/v1/orgs/string/workspaces/string/tags/string/resources"{
"tag_id": "string",
"resource_type": "string",
"resources": [
{}
],
"total": 0,
"has_more": false,
"next_cursor": "string"
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}Get Resource Tags
Path Parameters
Workspace ID
Resource type
"secret" | "source" | "augmentation" | "endpoint" | "app" | "model_instance" | "prompt" | "namespace" | "thread"Resource ID
Header Parameters
Response Body
application/json
application/json
curl -X GET "https://loading/v1/orgs/string/workspaces/string/resources/secret/string/tags"{
"resource_type": "string",
"resource_id": "string",
"tags": [
{
"tag_id": "string",
"workspace_id": "string",
"name": "string",
"color": "string",
"description": "string",
"icon": "string",
"usage_count": 0,
"created_by": "string",
"created_at": "string",
"updated_at": "string"
}
]
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}Add Tags To Resource
Path Parameters
Workspace ID
Resource type
"secret" | "source" | "augmentation" | "endpoint" | "app" | "model_instance" | "prompt" | "namespace" | "thread"Resource ID
Header Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X POST "https://loading/v1/orgs/string/workspaces/string/resources/secret/string/tags" \ -H "Content-Type: application/json" \ -d '[ "string" ]'null{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}Set Resource Tags
Path Parameters
Workspace ID
Resource type
"secret" | "source" | "augmentation" | "endpoint" | "app" | "model_instance" | "prompt" | "namespace" | "thread"Resource ID
Header Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X PUT "https://loading/v1/orgs/string/workspaces/string/resources/secret/string/tags" \ -H "Content-Type: application/json" \ -d '[ "string" ]'{
"resource_type": "string",
"resource_id": "string",
"tags": [
{
"tag_id": "string",
"workspace_id": "string",
"name": "string",
"color": "string",
"description": "string",
"icon": "string",
"usage_count": 0,
"created_by": "string",
"created_at": "string",
"updated_at": "string"
}
]
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}