from mka1 import SDK
with SDK(
bearer_auth="<YOUR_BEARER_TOKEN_HERE>",
) as sdk:
res = sdk.permissions.llm.check(resource_type="conversation", resource_id="<id>", role="writer")
# Handle response
print(res){
"allowed": true
}Verifica si el llamador autenticado tiene un rol específico sobre un recurso.
from mka1 import SDK
with SDK(
bearer_auth="<YOUR_BEARER_TOKEN_HERE>",
) as sdk:
res = sdk.permissions.llm.check(resource_type="conversation", resource_id="<id>", role="writer")
# Handle response
print(res){
"allowed": true
}Documentation Index
Fetch the complete documentation index at: https://docs.mka1.com/llms.txt
Use this file to discover all available pages before exploring further.
Gateway auth: send Authorization: Bearer <mka1-api-key>. For multi-user server-side integrations, you can also send X-On-Behalf-Of: <external-user-id>.
Optional external end-user identifier forwarded by the API gateway.
Tipo de recurso LLM
completion, file, vector_store, conversation, response, skill Identificador único para el recurso
1^(\*|[a-zA-Z0-9_-]+)$Rol de permiso para el recurso (propietario > escritor > lector)
owner, writer, reader Permiso verificado con éxito
Si el usuario tiene el permiso especificado
¿Esta página le ayudó?