Skip to content

Authentication and permissions ​

Current authoring requests use the signed-in application's non_linear_session cookie. The server validates the session and resolves the user's permissions. A story ID is a resource identifier, not a credential.

Authoring permissions ​

An ordinary author must own the story and have permission to edit their own stories. A specifically privileged account can have permission to edit other owners' stories. These checks run on the server for HTTP and socket operations.

Requests without a valid session fail with 401. A signed-in author attempting to edit another author's story fails with 403 unless explicitly privileged. Changing a user ID in submitted data does not grant that user's authority.

Same-origin browser requests use the existing session:

js
const response = await fetch('/studio-api/session', {
  credentials: 'same-origin',
});
if (!response.ok) throw new Error(`Session check failed: ${response.status}`);
const { user } = await response.json();

This example runs in a signed-in application context. It is not a token-login flow and does not work from an arbitrary third-party website by default.

Author access tokens are planned ​

There is currently no supported self-service author-token issuance endpoint or story-page token button. Do not use a player credential, database connection, server signing secret, or copied administrator session as a substitute.

The intended author-token feature would bind the token to the author, allowed stories, operations, expiry, and revocation. It must still enforce current permissions on every request. Publishing and deletion can have separate scopes. That is a design requirement, not a promise that these endpoints exist today.

Keep credentials in a tool's authentication settings or secret storage. Do not paste them into a shared chat, wiki page, example URL, or Git commit.

Non Linear documentation · Files in GitHub, no wiki database.