Membrane Token
The main way to authenticate. Sign a JWT with your workspace key and secret. You can find your workspace key in the Signing Tokens section of the Access page in Console Settings. The workspace secret is shown only once, when you add it there with Add Secret: copy it then and store it on your backend. A workspace can keep several secrets, and a token signed with any of them is accepted. To replace a secret, add a new one, move your backend to it, then delete the old one: tokens signed with a deleted secret stop working at once. Webhooks and other requests that Membrane signs use the oldest secret in the list.Token fields
Public/Private Key Signing
For stronger security, you can sign tokens with a public/private key pair instead of a shared secret. Pass the private key to the sign method and provide the public key in the workspace settings. Use any asymmetric algorithm:ES256, RS256, PS256, etc.
Test Token
For quick testing, get a pre-generated test token from the Access page in Console Settings.Long-lived Tokens
For tokens that don’t expire, create a Long-lived Token on the Access page in Console Settings under the Client Tokens section.Workspace Management Token
For administrative operations that affect the entire workspace — managing tenants, updating workspace settings, importing/exporting configuration, and other operations that aren’t scoped to a single tenant. IncludeisAdmin: true in the token payload and omit tenantKey: