SupaKnock
Menu
Browse topics Authentication and permissions
← Developer reference

Connect your app

Authentication and permissions

Choose the right credential and keep project keys on your backend.

Use one authentication transport per request. A project ID, board ID or external user ID never grants access by itself.

Public reads

Individual active projects, boards and accepted requests can be read without a credential when their URL or ID is known. The installation-wide project directory requires an administrator; project keys list only their own project. Cross-origin browser reads use credentials: 'omit' and no Authorization header. Unpublished and archived records remain concealed.

Your application backend

Send Authorization: Bearer fb_…. A project credential grants only its assigned permissions in one project. Keep it off websites and out of mobile builds. Pass the verified external ID in the query for GET/DELETE, or in the JSON body for participant writes. Use your HTTP client's query encoder.

General API CORS does not allow credentialed calls from another website. Call SupaKnock through your backend; do not forward the browser's Origin header.

Accounts on your installation

POST /api/v1/auth/login takes email and password, sets the feedback_session cookie and returns csrf_token. Authenticated POST, PUT, PATCH and DELETE requests need X-CSRF-Token plus Origin equal to the configured server origin. The token is also in the readable feedback_csrf cookie. GET needs no CSRF token.

Registration creates participants, never administrators. Account-session calls omit external_user_id. Sign out with POST /api/v1/auth/logout; changing the password revokes every session.

Native administrator clients

Sign in through POST /api/v1/auth/native/login with email and password and no existing credential. Send the returned ns_ token as Bearer on later calls. The response also includes expiry and installation ID. These administrator-only sessions need no cookie CSRF. Store the token securely and sign in again after expiry.

This is the iPhone administrator app's transport. Your app's customers use the customer-chat exchange below; they do not need administrator accounts.

Chat customers and widget visitors

Send X-Chat-Token: cc_… for a verified customer or cv_… for the original anonymous conversation. Do not also send cookies or Authorization. Browser tokens require their bound website Origin; native customer tokens require no Origin. Neither token grants administration.

Project permissions

read

Read the project's public boards and accepted requests.

participate

Submit, vote, manage eligible own requests and establish customer chat access.

audience:read

Read creator/voter identities so your backend can notify them.

forms:submit

Send form submissions from your backend. Does not permit reading answers, managing forms, or acting as a participant.

manage

Manage the project's boards, moderation, lifecycle and webhooks.

Manage also permits public reads. It does not include participate or audience:read or forms:submit. Project keys cannot administer accounts, create projects or keys, archive resources, or open administrator-only features.

These docs describe the current source. Check your server’s /api/v1/openapi.json for the version you run.