Skip to content
YasadDocs
Sign inGet started
Developer docs2 min read

Authentication and roles

App keys, assistant keys, the roles, and what each may call.

On this page

Send the key from server code only: Authorization: Bearer <key>, over HTTPS (plain HTTP only for local development addresses). Keys never belong in browsers, repositories, logs or chat.

#Two kinds of key

  • App keys are created on an app's page in Yasad (Apps → your app → API keys). Your browser makes the key, Yasad stores only its fingerprint (SHA-256), and you copy it once into the app's server settings. Each app gets its own key, so you can turn one off without touching the others.
  • Assistant keys connect an AI assistant to the workspace, through Connect your AI or the MCP guide. They are approved and removed separately from app keys.

#Roles

RoleShown asCan
readerView onlyRead and export business records, collections, files, events and usage
storefrontCustomer websiteList priced resources, check availability, place orders, start checkout and read only its own orders
intakeForm inboxAdd records to any collection (contact, request and sign-up forms). Can't list, read, change or delete records; it only gets back the record it just created
mailerEmail senderSend transactional email and read delivery history
operatorStaff toolsEverything reader can, plus create and change records, bookings, orders, collections and private files
integrationsSettings managerManage merchant onboarding, refunds, webhooks, sending identity and file publication

AI assistants connected through Connect your AI may also hold workspace_context, which reads only the business name, description and available tools. It is not an app key role.

A storefront key identifies your app, not each shopper. If customers can look up their own orders, check that in your app (for example with a signed receipt link) before reading the order.

#Replacing and turning off keys

Replace keeps the old key working until the time you choose (1 hour, 24 hours or 7 days), so you can deploy the new key first. Turn off stops a key immediately and can't be undone. Expired and turned-off keys return 401; an operation outside the key's role returns 403. Every operation's roles are listed in the API reference.

Type to search