Create anon key
Changed onRequest
- Base URLhttps://api.volcano.dev
- Auth
- HTTP bearer
- or HTTP bearer
Path parameters
Project ID
Request body
Key name for identification. Can only contain letters, numbers, underscores, and hyphens.
Optional list of permissions for this key. If not provided, defaults to auth-only permissions: auth.signup, auth.signin, auth.refresh, auth.logout, auth.password_reset, auth.confirm_email, auth.resend_confirmation. Storage, realtime, and functions permissions must be explicitly added if needed.
Example request
{
"name": "frontend-app",
"permissions": [
"auth.signup",
"auth.signin",
"auth.refresh",
"auth.logout"
]
}Response
Anon key created
JWT token - use this in frontend Authorization header
Permissions granted to this anon key. Auth permissions: auth.signup, auth.signin, auth.refresh, auth.logout, auth.password_reset, auth.confirm_email, auth.resend_confirmation Storage permissions: storage.upload, storage.download, storage.list, storage.delete Realtime permissions: realtime.connect, realtime.subscribe, realtime.publish Functions permissions: functions.invoke
Whether this is the project's configured default anon key. Only one key per project can be default.
Example response
{
"permissions": [
"auth.signup",
"auth.signin",
"auth.refresh",
"auth.logout"
]
}Changes
- info
the endpoint scheme security
ProjectAccessTokenwas added to the API
- info
- breaking
added the new path request parameter
id - breaking
the response's body type changed from no type to
objectfor status
7 more changes in this revision
- breaking