Skip to main content
Open Liftx Settings → Integrations and select API in the integration dropdown. TradingView has its own selection and restricted key type. An ordinary API key does not authenticate the webhook.

Create a key

  1. Select API, choose Create API key, and fill the separate New API key screen. Its Back button returns to the API list.
  2. Enter a descriptive Name, such as Portfolio monitor — demo or Strategy controller — production.
  3. Optionally set Expires in days to 1–365. Leave it blank for no expiration. A non-expiring key still requires current entitlement and can be disconnected or revoked.
  4. Select the required permissions from the table below.
  5. Select Exchange links. Verify both the linked account and its demo or live environment. A key can include 1–32 authorized links.
  6. Optionally restrict Instruments. Search the selected exchange’s catalog and select matching IDs; Search on switches the catalog when several links are selected without changing your permissions. Selections appear as removable chips. You can also add an exact ID or paste IDs separated by newlines. Up to 64 unique IDs are allowed; an empty selection permits instruments on the selected links. Do not use chart aliases.
  7. Select Continue to review access and verify your identity in the same setup screen. Enter your password or use your linked Apple account, plus your authenticator code when MFA is enabled, then select Create API key. Back returns to your setup without losing its values.
  8. On Save your API key, copy the API key into a private secret manager. The API base URL is also available to copy. Select I saved it — hide the secret at the bottom to return to your integrations and clear the displayed key.
Fresh approval is bound to the exact requested permissions and expires after five minutes. It is consumed once. Changing a policy requires approval for that policy; it is not enough to possess an already issued key.

Permission switches

Permissions are independent. A write-only trading key can submit an allowed command and inspect its own namespace receipts without read. Give a controller read when it needs position reconciliation. templates:write does not imply template read access. Discovery accepts any valid ordinary API credential. Listing linked accounts and all other data reads require read. Receipt detail permits an owning namespace, or a same-account read key whose exact link/instrument restrictions authorize the receipt.

Instrument restrictions and aggregate reads

A key restricted to one instrument cannot read an entire account/link aggregate that would disclose other instruments. For example, balances, positions pages, fee schedules, dashboard history and private aggregate stream subscriptions are unavailable to an instrument-restricted key. Use exact position reads, exact-instrument catalog selection and ticker subscriptions within its scope. Templates are account-owned. Granting template read or write permits the corresponding account template operation; templates do not become isolated to the key’s selected instrument.

Send a key

Send exactly one Authorization header. Do not put the key in the query string, a cookie, WebSocket subprotocol, Pine script or TradingView message. The webhook uses its separately issued TradingView body capability. Secrets contain 256 random bits. The service stores only a digest and displays the secret once. Metadata such as a prefix, name, scopes, expiration and revocation time lets you identify a key without recovering its secret.

Secret disposal and ambiguous issuance

The UI clears the displayed secret when hidden, on navigation, lock, logout or account change. Copy it before switching away. If issuance times out or its response is lost, inspect the credential list. Do not repeatedly press Create API key or Create replacement key, or automatically replay issuance. A committed duplicate can return metadata, but cannot recover the one-time secret; revoke an unusable new credential before explicitly issuing another.

Replacement, rotation and revocation

A replacement credential retains the existing integration namespace and its exact policy. This preserves command deduplication and TradingView lifecycle ownership. Changing permissions or scope is a new approved policy, not an unreviewed extension of the old key. Choose Create replacement key on the integration item, review the expiry and select Continue. Complete fresh authentication in the confirmation step and select Create replacement key. The current key remains active during this process. Replacement keys are grouped in the same integration item. After updating the intended client and confirming its use, open Keys and choose Remove key for the old credential. This revokes only that key and leaves its replacement active. The Keys disclosure appears only when multiple keys exist. Choose Disconnect to end the entire API integration and disable every associated key in one step. The item disappears after confirmed disconnection. TradingView and MCP use the same Disconnect action. Neither action removes existing positions or interrupts protection, termination or recovery already owned by Liftx. Stopping a bot is not the same operation as closing its positions. A confirmed revocation response is 200 with revoked:true. REVOCATION_UNCERTAIN means an attempted database update could not be confirmed. Inspect current metadata before an explicit retry; never treat a timeout as successful revocation. Metadata inspection and revocation remain available in authenticated Settings after entitlement expires. External reads, new issuance and trading handoffs require current entitlement. Streams close when their key or entitlement expires and enforce revocation throughout their lifetime.

Practical key boundaries

Keep independent strategies in separate namespaces when command identity, auditing and permissions must be independent. Ordinary API position authority is bounded by credential scope, not automatically by who opened the position; use dedicated links or a controller ownership policy where stronger strategy isolation is required.