Python (SDK)
Resource Authorization
Grant permission to a user or make public
Grant a role to a user for a resource, or grant public access by using ”*” as userId. Only owners can grant permissions. Public access is allowed only for writer and reader roles.
POST
Python (SDK)
Authorizations
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>.
Headers
Optional external end-user identifier forwarded by the API gateway.
Body
application/json
Type of LLM resource
Available options:
completion, file, vector_store, conversation, response, skill Unique identifier for the resource
Required string length:
1 - 79Unique identifier for the user, or "*" to grant/revoke public access
Required string length:
1 - 169Permission role for the resource (owner > writer > reader)
Available options:
owner, writer, reader Response
Permission granted successfully