Get the next available slot and remaining capacity for a field type. This does not reserve a slot. Create Tag selects a free slot when tagSlot is omitted. Workspace API keys return 403; use a personal API key or scoped OAuth token.
OAuth scope: api:read.
/api/v2/knowledge/{knowledgeBaseId}/tags/next-slotSua API key do Studio, pessoal ou com escopo de workspace. Gere uma em Settings e depois API Keys. As operações que rejeitam API keys de workspace dizem isso na própria descrição.
Em: header
Parâmetros de path
Identificador único da knowledge base.
1 <= lengthParâmetros de query
Workspace dono da knowledge base.
1 <= length <= 128Value type stored in the slot; it decides which slots are usable and which filter operators apply. Slot capacity per type: text 7, number 5, date 2, boolean 3.
"text" | "number" | "date" | "boolean"Corpo da resposta
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://agent-studio.seeyu.ai/api/v2/knowledge/string/tags/next-slot?workspaceId=string&fieldType=text" \ -H "X-API-Key: YOUR_API_KEY"{
"data": {
"nextAvailableSlot": "tag3",
"fieldType": "string",
"usedSlots": [
"string"
],
"totalSlots": 1,
"availableSlots": 0
}
}{
"error": {
"code": "BAD_REQUEST",
"message": "Invalid request"
}
}{
"error": {
"code": "UNAUTHORIZED",
"message": "Authentication required"
}
}{
"error": {
"code": "FORBIDDEN",
"message": "Insufficient workspace permissions",
"details": {
"code": "INSUFFICIENT_WORKSPACE_ROLE"
}
}
}{
"error": {
"code": "NOT_FOUND",
"message": "Not found"
}
}{
"error": {
"code": "RATE_LIMITED",
"message": "API rate limit exceeded",
"details": {
"retryAfter": "2026-01-01T00:00:30.000Z"
}
}
}{
"error": {
"code": "INTERNAL_ERROR",
"message": "Internal server error"
}
}{
"error": {
"code": "SERVICE_UNAVAILABLE",
"message": "Service temporarily unavailable"
}
}