Kiosa API kiosa.ai

Authentication

How login, consent and tokens of the API work together.

One sign-in for all businesses#

The API has one host for all businesses: https://api.kiosa.ai/v1. You never need to know which server a business runs on. Kiosa reads the business from the token and forwards the call internally.

OAuth#

The login follows the OAuth 2.1 profile: Authorization Code with PKCE (S256 only) and the recommendations of RFC 9700.

Issuerhttps://api.kiosa.ai
Authorizehttps://api.kiosa.ai/api/oauth/authorize
Tokenhttps://api.kiosa.ai/api/oauth/token
Revokehttps://api.kiosa.ai/api/oauth/revoke
Server metadatahttps://api.kiosa.ai/.well-known/oauth-authorization-server (RFC 8414)
Resource metadatahttps://api.kiosa.ai/.well-known/oauth-protected-resource/v1 (RFC 9728)

The metadata names the valid paths. Read it if you do not want to hard-code endpoints.

Partner clients#

Partners use a Client ID Metadata Document: the client ID is an https URL on the partner's domain, the client is public, and PKCE is mandatory. The document only proves that the domain belongs to the partner. It is not an approval.

Only a client whose exact client ID Kiosa lists as an approved, active partner gets any scope. Without approval there is no scope at all, not even a read scope. Kiosa then shows an error page and does not redirect to your redirect_uri. integrations:write only covers the providers in the approval. Kiosa checks this approval at consent and on every call. If Kiosa withdraws it, existing tokens stop working immediately.

  • A user with the TENANT_ADMIN role may consent. In exceptional cases, Kiosa support can consent on behalf of a business; this is logged, and the business's admins are notified.
  • The consent page shows the partner, the verified domain, the scopes in plain language and the business.
  • A business can switch off partner apps altogether (Settings, Connected apps). They are allowed by default, but an admin's consent is still required.

Resource binding#

A token for the API carries resource=https://api.kiosa.ai/v1 and is valid only there. It is invalid for mcp.kiosa.ai and vice versa. Kiosa sets resource, scopes and issuer on the server side, never from host or request.

Lifetimes#

Access token 1 hour, refresh token rotating with reuse detection and 90 days from issuance. Details: Refresh and revoke tokens.

Live checks on every call#

Kiosa does not only check the token. On every call: token valid, scope matches, partner approved, user active, role sufficient, business valid, "Partner apps" switch on. If one is missing, Kiosa rejects the call entirely. There is no partial result.