@create api offers seven auth kinds. The secret fields follow the kind. A blank secret on a later edit keeps the stored one.

API connection editor with API key authentication selected and the secret field empty
No credential is entered in this screenshot.

KindWhat you fill inWhere the secret lives
NoneBase URL onlyNowhere
API keyHeader name, default X-Api-Key, and the keyKeychain, or a vault reference
BearerThe tokenKeychain, or a vault reference
BasicUsername and passwordPassword in the keychain, or a vault reference
Client credentialsAzure tenant id, client id, client secret, scopeClient secret in the keychain, or a vault reference
OAuth (browser)Authorization URL, token URL, client id, optional client secretTokens in memory. Optional secret in the keychain
OAuth (device code)Token URL, device URL, client id, optional client secretTokens in memory. Optional secret in the keychain

Client credentials are the Azure app-only flow: the app asks Entra for a token with the tenant, the client id, and the secret, then sends that token on the call.

Browser sign-in

OAuth (browser) is authorization code with PKCE S256. The app listens on 127.0.0.1, opens your browser, checks state, and exchanges the code at the token URL. The client secret is optional.

@signin GitHub
@signout GitHub

A call with no valid token tells you to run @signin <connection>. @signout <connection> forgets the active tab’s target and leaves another target’s token. Ctrl+C cancels a sign-in.

Tokens are cached in memory only, per connection and per target, and refresh themselves when the server sent a refresh token. A failed refresh forgets that target. A restart means signing in again. A saved call whose target is a WSL distribution uses that target’s token. It does not send the token stored for this computer.

Device code

OAuth (device code) prints the code and the verification URL in the terminal and polls the token URL. It honours interval and slow_down. Ctrl+C cancels the wait.

Headers that do not belong on the endpoint

@create endpoint refuses Authorization, Cookie, and API-key headers. Those belong on the connection. Endpoint headers are for values that are not the credential.