Trigger Terminal
StrategiesLeaderboardChangelogSign in

Developers

For creators on Trigger Terminal: let your members sign in on your own website with their trade-log.me account, manage members and plans from your backend, and get signed webhooks when members join, pay or leave.

Contents
Login with trade-log.meOAuth 2.1 / OpenID Connect for your website. Members sign in and join you.
Creator APIServer-to-server: create members, give and revoke plans, list members, manage webhooks.
WebhooksSigned POSTs to your server when members join, leave, get or lose plans, or pay.

Everything is set up under Account → Developer (creators only). New to creator tools? Read Becoming a creator first.

WhatBase URL
Issuer (OpenID Connect)https://trade-log.me
Discoveryhttps://trade-log.me/.well-known/openid-configuration
Creator APIhttps://trade-log.me/api/creator/v1

Versioning. The Creator API is versioned in the path (/v1). Within v1 we only add things — new endpoints, new optional fields, new event types — so ignore fields and events you don’t know. Anything that would break a working integration gets a new version, announced in the changelog.

Quick start (10 minutes)

  1. Create a plan under Account → Creator plans & members (a free plan given to every member is fine).
  2. Create an API key under Account → Developer → API keys with the scopes members:read, users:create and plans:write. Copy it — it is shown once — and keep it on your server only (e.g. TL_API_KEY).
  3. Call the API: list your plans and copy a plan id.
    List your plans (curl)
    curl -sS https://trade-log.me/api/creator/v1/plans -H "Authorization: Bearer $TL_API_KEY"
  4. Create a member with that plan. They get an email to activate their account.
    Create a member (curl)
    curl -sS -X POST https://trade-log.me/api/creator/v1/users \
      -H "Authorization: Bearer $TL_API_KEY" \
      -H "Content-Type: application/json" \
      -H "Idempotency-Key: order-1234" \
      -d '{"email":"[email protected]","display_name":"Ana","plans":["<planId>"],"external_id":"cus_42"}'
    # HTTP 202 {"status":"invite_sent","request_id":"req_…"}  (the same for new and existing emails)
  5. Add a webhook endpoint (Account → Developer → Webhooks, an https URL on your server), copy its signing secret and press Send test event. Verify it with the code in Signatures.
  6. Add “Login with trade-log.me” to your website: register an app (name, logo, exact redirect URI), then use the example for your stack and the button.

Login with trade-log.me (OpenID Connect)

Standard OAuth 2.1 authorization code flow with PKCE and OpenID Connect. Any certified OpenID Connect client library works: point it at the discovery URL.

MethodEndpointWhat
GET/.well-known/openid-configurationDiscovery document (issuer, endpoints, supported values)
GET/oauth/authorizeSign-in and consent (authorization code flow)
POST/oauth/tokenCode → tokens, and refresh (grant types authorization_code, refresh_token)
GET/oauth/userinfoClaims of the signed-in member (Bearer access token)
GET/oauth/jwksPublic ES256 signing keys (JWKS)
POST/oauth/revokeRevoke a refresh token or an access token (RFC 7009)

The flow

  1. Register an app (Account → Developer → Login with trade-log.me — apps): name, optional logo and up to 10 exact redirect URIs. https only; http://localhost and http://127.0.0.1 are allowed while developing; no #fragment. URIs are stored normalised (https://site.example becomes https://site.example/) and compared exactly. Choose:
    • Confidential (you have a server): client id tlc_… + client secret tls_…, shown once (you can rotate it).
    • Public (browser or mobile app, no server): no secret, PKCE required.
  2. Send the visitor to /oauth/authorize with response_type=code, client_id, redirect_uri, scope (default openid profile), state (required) and PKCE code_challenge + code_challenge_method=S256 (required for public clients, recommended for all; plain is refused). Optional: nonce (copied into the id_token) and prompt=consent (always show the consent screen).
  3. The member signs in (or creates an account, when the site allows it) and sees the consent screen. They come back to your redirect_uri with code and your state — or with error (e.g. access_denied) and state.
  4. Swap the code at POST /oauth/token (form-encoded or JSON) with grant_type=authorization_code, code, redirect_uri, code_verifier. Confidential clients authenticate with HTTP Basic (client_secret_basic) or client_id + client_secret in the body (client_secret_post); public clients send client_id only. Codes (tlo_…) are single use and live 60 seconds; using one twice revokes the tokens it issued.
POST /oauth/token → 200
{
  "access_token": "eyJhbGciOiJFUzI1NiIs…",
  "token_type": "Bearer",
  "expires_in": 900,
  "refresh_token": "tlr_…",
  "scope": "openid profile memberships",
  "id_token": "eyJhbGciOiJFUzI1NiIs…"
}

Scopes and claims

sub is pairwise: the same person has a different sub with each creator (format p + 26 characters), and it never changes for you. Store sub as the member’s id — not the username, which they can change. Nothing about other creators is ever returned.

ScopeClaimsWhere
openidsub, iss, aud, iat, exp, auth_time, nonce (if you sent one)id_token; sub also in userinfo
profilepreferred_username, name, picture (the creator-profile avatar, if any)id_token and userinfo
emailemail, email_verified — the member can untick it on the consent screen; check the scope you got backuserinfo only
membershipsmemberships: you (name, slug), whether they are your member, joined_at, via, and the plans of yours they hold (id, name, type, active, source, until, renews)userinfo only
GET /oauth/userinfo → 200 (scopes openid profile email memberships)
{
  "sub": "p3Jt0qWm8ZcVx1YbN6aLk2HdRe",
  "preferred_username": "ana",
  "name": "Ana",
  "picture": "https://trade-log.me/c/ana/avatar?v=1760175000000",
  "email": "[email protected]",
  "email_verified": true,
  "memberships": {
    "creator": {
      "name": "Your name",
      "slug": "your-slug"
    },
    "member": true,
    "joined_at": "2026-10-11T09:30:00.000Z",
    "via": "oauth",
    "plans": [
      {
        "id": "0b8f6c1e-2d4a-4f7b-8e9c-1a2b3c4d5e6f",
        "name": "Free members",
        "type": "free",
        "active": true,
        "source": "auto",
        "until": null,
        "renews": null
      }
    ]
  }
}

Examples

Browser (public client, no secret, PKCE)
// 1) Send the visitor to trade-log.me
const ISSUER = 'https://trade-log.me';
const CLIENT_ID = 'tlc_your_client_id';
const REDIRECT = 'https://your-site.example/callback';
const b64url = buf => btoa(String.fromCharCode(...new Uint8Array(buf))).replace(/\+/g, '-').replace(/\//g, '_').replace(/=+$/, '');
const random = n => b64url(crypto.getRandomValues(new Uint8Array(n)));

async function loginWithTradeLog() {
  const verifier = random(32), state = random(16), nonce = random(16);
  const challenge = b64url(await crypto.subtle.digest('SHA-256', new TextEncoder().encode(verifier)));
  sessionStorage.setItem('tl_login', JSON.stringify({ verifier, state, nonce }));
  const q = new URLSearchParams({ response_type: 'code', client_id: CLIENT_ID, redirect_uri: REDIRECT,
    scope: 'openid profile memberships', state, nonce, code_challenge: challenge, code_challenge_method: 'S256' });
  location.href = ISSUER + '/oauth/authorize?' + q;
}

// 2) On the REDIRECT page: check state, swap the code for tokens (the verifier proves it's you)
async function finishLogin() {
  const p = new URLSearchParams(location.search), saved = JSON.parse(sessionStorage.getItem('tl_login') || '{}');
  sessionStorage.removeItem('tl_login');
  if (p.get('error')) throw new Error('Sign-in cancelled: ' + p.get('error'));
  if (!p.get('code') || p.get('state') !== saved.state) throw new Error('state mismatch');
  const r = await fetch(ISSUER + '/oauth/token', { method: 'POST', headers: { 'Content-Type': 'application/x-www-form-urlencoded' },
    body: new URLSearchParams({ grant_type: 'authorization_code', code: p.get('code'), redirect_uri: REDIRECT, client_id: CLIENT_ID, code_verifier: saved.verifier }) });
  const tok = await r.json(); // { access_token, token_type, expires_in: 900, refresh_token, scope, id_token }
  if (!r.ok) throw new Error(tok.error_description || tok.error);
  const me = await (await fetch(ISSUER + '/oauth/userinfo', { headers: { Authorization: 'Bearer ' + tok.access_token } })).json();
  return me; // { sub, preferred_username, name, picture, memberships: { member, plans: [...] } }
}
Node.js + Express (confidential client, secret on the server)
// npm install express express-session jose
const express = require('express');
const session = require('express-session');
const crypto = require('crypto');
const { createRemoteJWKSet, jwtVerify } = require('jose');

const ISSUER = 'https://trade-log.me';
const CLIENT_ID = process.env.TL_CLIENT_ID;         // tlc_…
const CLIENT_SECRET = process.env.TL_CLIENT_SECRET; // tls_… (shown once when you create the app)
const REDIRECT = 'https://your-site.example/auth/callback';
const JWKS = createRemoteJWKSet(new URL(ISSUER + '/oauth/jwks'));
const rnd = n => crypto.randomBytes(n).toString('base64url');
const basic = 'Basic ' + Buffer.from(encodeURIComponent(CLIENT_ID) + ':' + encodeURIComponent(CLIENT_SECRET)).toString('base64');

const app = express();
app.use(session({ secret: process.env.SESSION_SECRET, resave: false, saveUninitialized: false,
  cookie: { httpOnly: true, secure: true, sameSite: 'lax' } }));

app.get('/auth/login', (req, res) => {
  const t = req.session.tl = { state: rnd(16), nonce: rnd(16), verifier: rnd(32) };
  const q = new URLSearchParams({ response_type: 'code', client_id: CLIENT_ID, redirect_uri: REDIRECT,
    scope: 'openid profile email memberships', state: t.state, nonce: t.nonce,
    code_challenge: crypto.createHash('sha256').update(t.verifier).digest('base64url'), code_challenge_method: 'S256' });
  res.redirect(ISSUER + '/oauth/authorize?' + q);
});

app.get('/auth/callback', async (req, res, next) => {
  try {
    const t = req.session.tl || {}; delete req.session.tl;
    if (req.query.error) return res.status(400).send('Sign-in cancelled');
    if (!req.query.code || req.query.state !== t.state) return res.status(400).send('Bad state');
    const r = await fetch(ISSUER + '/oauth/token', { method: 'POST',
      headers: { 'Content-Type': 'application/x-www-form-urlencoded', Authorization: basic },
      body: new URLSearchParams({ grant_type: 'authorization_code', code: req.query.code, redirect_uri: REDIRECT, code_verifier: t.verifier }) });
    const tok = await r.json();
    if (!r.ok) return res.status(400).send(tok.error_description || tok.error);
    const { payload } = await jwtVerify(tok.id_token, JWKS, { issuer: ISSUER, audience: CLIENT_ID, algorithms: ['ES256'] });
    if (payload.nonce !== t.nonce) return res.status(400).send('Bad nonce');
    const me = await (await fetch(ISSUER + '/oauth/userinfo', { headers: { Authorization: 'Bearer ' + tok.access_token } })).json();
    req.session.user = { sub: payload.sub, name: payload.name, email: me.email || null, member: !!(me.memberships && me.memberships.member) };
    req.session.refreshToken = tok.refresh_token; // server side only
    res.redirect('/');
  } catch (e) { next(e); }
});

// a new access token when the old one (15 minutes) expired; the refresh token ROTATES: keep the new one
async function refresh(req) {
  const r = await fetch(ISSUER + '/oauth/token', { method: 'POST',
    headers: { 'Content-Type': 'application/x-www-form-urlencoded', Authorization: basic },
    body: new URLSearchParams({ grant_type: 'refresh_token', refresh_token: req.session.refreshToken }) });
  const tok = await r.json();
  if (!r.ok) { delete req.session.user; throw new Error('sign in again: ' + tok.error); } // invalid_grant
  req.session.refreshToken = tok.refresh_token;
  return tok.access_token;
}

// sign out of your site: revoke the refresh token (ends that session family), then drop your own session
app.post('/auth/logout', async (req, res) => {
  if (req.session.refreshToken) await fetch(ISSUER + '/oauth/revoke', { method: 'POST',
    headers: { 'Content-Type': 'application/x-www-form-urlencoded', Authorization: basic },
    body: new URLSearchParams({ token: req.session.refreshToken }) }).catch(() => {});
  req.session.destroy(() => res.redirect('/'));
});

app.listen(3000);
module.exports = { refresh };
PHP (confidential client, sessions + cURL)
<?php
// login.php — send the visitor to trade-log.me
session_start();
const ISSUER = 'https://trade-log.me';
const REDIRECT = 'https://your-site.example/callback.php';
$clientId = getenv('TL_CLIENT_ID');
$b64 = fn($bin) => rtrim(strtr(base64_encode($bin), '+/', '-_'), '=');
$_SESSION['tl'] = ['state' => $b64(random_bytes(16)), 'verifier' => $b64(random_bytes(32))];
$q = http_build_query(['response_type' => 'code', 'client_id' => $clientId, 'redirect_uri' => REDIRECT,
  'scope' => 'openid profile email memberships', 'state' => $_SESSION['tl']['state'],
  'code_challenge' => $b64(hash('sha256', $_SESSION['tl']['verifier'], true)), 'code_challenge_method' => 'S256']);
header('Location: ' . ISSUER . '/oauth/authorize?' . $q);
exit;

// callback.php — swap the code for tokens, then read the member
// (the token answer comes straight from trade-log.me over TLS, so userinfo is enough here; to trust the
//  id_token on its own, verify it against /oauth/jwks with a JOSE library such as firebase/php-jwt)
function tl_post(string $url, array $form): array {
  $ch = curl_init($url);
  curl_setopt_array($ch, [CURLOPT_POST => true, CURLOPT_RETURNTRANSFER => true, CURLOPT_POSTFIELDS => http_build_query($form),
    CURLOPT_USERPWD => rawurlencode(getenv('TL_CLIENT_ID')) . ':' . rawurlencode(getenv('TL_CLIENT_SECRET'))]);
  $body = curl_exec($ch); $code = curl_getinfo($ch, CURLINFO_HTTP_CODE); curl_close($ch);
  return [$code, json_decode((string)$body, true) ?: []];
}
$saved = $_SESSION['tl'] ?? []; unset($_SESSION['tl']);
if (!isset($_GET['code'], $_GET['state']) || !hash_equals($saved['state'] ?? '', $_GET['state'])) { http_response_code(400); exit('Bad state'); }
[$code, $tok] = tl_post(ISSUER . '/oauth/token', ['grant_type' => 'authorization_code', 'code' => $_GET['code'],
  'redirect_uri' => REDIRECT, 'code_verifier' => $saved['verifier']]);
if ($code !== 200) { http_response_code(400); exit($tok['error'] ?? 'token error'); }
$ch = curl_init(ISSUER . '/oauth/userinfo');
curl_setopt_array($ch, [CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => ['Authorization: Bearer ' . $tok['access_token']]]);
$me = json_decode((string)curl_exec($ch), true); curl_close($ch);
session_regenerate_id(true);
$_SESSION['user'] = ['sub' => $me['sub'], 'name' => $me['name'] ?? '', 'email' => $me['email'] ?? null];
$_SESSION['tl_refresh'] = $tok['refresh_token'];
header('Location: /');

Tokens and lifetimes

TokenFormatLifetimeNotes
Authorization codetlo_…60 secondsSingle use. Reuse revokes everything issued from it.
Access tokenES256 JWT15 minutes (expires_in 900)aud = your client_id. Send as Authorization: Bearer to /oauth/userinfo. Checked against the member’s consent on every call.
ID tokenES256 JWT15 minutesOnly with the openid scope. Validate it — see below.
Refresh tokentlr_…60 daysRotates: each use returns a new one and uses up the old one. Using an old one again revokes the whole session (reuse detection). A refresh may keep or narrow the scopes, never widen them.

Refresh with grant_type=refresh_token and refresh_token (plus client authentication). invalid_grant means the session is over (revoked, expired, consent removed, or reuse detected): sign the member in again. Keep refresh tokens on your server; if you have no server (public client), keep them in memory, not in localStorage.

Validating the id_token

Check the ES256 signature with the key from /oauth/jwks whose kid matches the token header, then iss (exactly the issuer from discovery), aud (your client_id), exp, and nonce if you sent one. Keys rotate; the previous key stays in the JWKS for 2 days, so cache the JWKS and refetch it when you meet an unknown kid.

Validate an id_token (Node.js, jose)
// npm install jose
const { createRemoteJWKSet, jwtVerify } = require('jose');
const ISSUER = 'https://trade-log.me';
const JWKS = createRemoteJWKSet(new URL(ISSUER + '/oauth/jwks')); // cached; refetched when a new kid appears

async function verifyIdToken(idToken, clientId, expectedNonce) {
  const { payload } = await jwtVerify(idToken, JWKS, {
    issuer: ISSUER,          // iss must be exactly the issuer from discovery
    audience: clientId,      // aud = your client_id
    algorithms: ['ES256'],   // refuse anything else
    clockTolerance: 60,      // seconds
  });
  if (expectedNonce && payload.nonce !== expectedNonce) throw new Error('nonce mismatch');
  return payload; // { iss, sub, aud, iat, exp, auth_time, nonce?, preferred_username?, name?, picture? }
}
module.exports = { verifyIdToken };

Other languages: any JOSE / JWT library that supports ES256 and JWKS works — e.g. PyJWT with PyJWKClient (Python), firebase/php-jwt with JWK::parseKeySet (PHP), golang-jwt with a JWKS fetcher (Go), Microsoft.IdentityModel.Tokens (.NET). Always pin the algorithm to ES256.

Sign-out and revoke

There is no global sign-out endpoint: signing out of your site does not sign the member out of trade-log.me. To end your session, revoke the refresh token at POST /oauth/revoke (token=tlr_…, with client authentication) — that ends the whole session family — and drop your own session. You can also revoke an access token (its jti is blocked until it expires). The endpoint answers 200 {} for any token, as RFC 7009 asks.

Members can disconnect your app at any time under Account → Connected apps. Their refresh tokens stop working and /oauth/userinfo answers 401 invalid_token from then on. The admin can switch an app (or your API) off; then your client gets invalid_client.

  • Shows your app’s name and logo, “by <your name>”, the host it returns to, and one line per scope. The member can untick email.
  • If the member isn’t your member yet, it says “You’ll join <your name> on trade-log.me”; allowing it adds them to your members (member.joined with via: "oauth") and gives them your auto-given free plans.
  • When the member already allowed the same scopes and is already your member, they go straight back to you (send prompt=consent to always show it).
  • New visitors can create an account on the sign-in page, if the site’s admin allows sign-ups there. People you created through the API can ask for their activation link again from the same page.

Creator API

Basics

  • Base URL https://trade-log.me/api/creator/v1. JSON in, JSON out. Only call it from your server — never from a browser.
  • Authentication: Authorization: Bearer tl_live_…. Keys are created under Account → Developer → API keys, shown once and stored hashed. Give each key only the scopes it needs: users:create, members:read, plans:write, webhooks:manage. You can revoke a key at any time; its last use (time and IP) is shown.
  • IP allow-list (optional, per key): up to 20 entries, exact IPv4 / IPv6 addresses or IPv4 CIDR ranges (e.g. 203.0.113.0/24). Other addresses get 403 ip_not_allowed.
  • Rate limits: 600 requests a minute per key; user creations POST /users 60 an hour per creator (the admin can change it); 30 failed authentications per 10 minutes per IP. Over a limit you get 429 rate_limited. No rate-limit headers are sent — back off (e.g. 1, 2, 4… seconds, at most a minute) and retry.
  • Idempotency: send Idempotency-Key: <your id> (up to 100 characters) on POST /users. A repeat with the same key within 24 hours returns the first answer and does nothing again.
  • Pagination (GET /members): limit 1–200 (default 50) and the opaque cursor from the previous page’s next_cursor; next_cursor is null on the last page.
  • Errors are { "error": { "code", "message" } } — see Errors. Bodies over 64 KB are refused (413 too_large, or the connection is closed).
  • You only ever see your own members, plans and endpoints; ids of other creators answer 404.
Node.js: a small API client
const BASE = 'https://trade-log.me/api/creator/v1';
async function tl(method, path, body, headers = {}) {
  const r = await fetch(BASE + path, { method, headers: { Authorization: 'Bearer ' + process.env.TL_API_KEY,
    ...(body ? { 'Content-Type': 'application/json' } : {}), ...headers }, body: body ? JSON.stringify(body) : undefined });
  const j = await r.json().catch(() => ({}));
  if (r.status === 429) throw Object.assign(new Error('rate limited — retry later'), { retry: true });
  if (!r.ok) throw new Error(j.error ? j.error.code + ': ' + j.error.message : 'HTTP ' + r.status);
  return j;
}
// every member, page by page
async function allMembers() {
  const out = []; let cursor = null;
  do {
    const q = new URLSearchParams({ limit: '200', ...(cursor ? { cursor } : {}) });
    const page = await tl('GET', '/members?' + q);
    out.push(...page.data); cursor = page.next_cursor;
  } while (cursor);
  return out;
}
// give a plan for 30 days
async function giveTrial(sub, planId) {
  const until = new Date(Date.now() + 30 * 864e5).toISOString().slice(0, 10);
  return tl('POST', '/members/' + sub + '/plans', { planId, until });
}
module.exports = { tl, allMembers, giveTrial };

Create or invite a member

POST /api/creator/v1/users scope users:create

FieldType
emailstring, requiredDisposable addresses and blocked domains are refused.
usernamestring3–32 letters, digits, . _ -. If taken or missing, one is made from the email.
display_namestringUp to 60 characters.
plansarray of plan idsOnly your own active plans.
external_idstringYour own id for this person (up to 120 characters), returned in member objects and webhooks.
→ 202 Accepted
{
  "status": "invite_sent",
  "request_id": "req_Ab12Cd34Ef56"
}

What happens — and why the answer is always the same:

  • A new email: an account is created, linked to you (member.joined with via: "api"), the plans are given (plan.granted) and the person gets an Activate your account email (link valid 7 days). They can’t sign in with a password before activating; user.activated follows when they do.
  • An email that already has an account: nothing is linked. The person gets an invitation email (valid 14 days) and must accept it while signed in; then they join you and get the plans.
  • The answer is 202 invite_sent in both cases, so the API can’t be used to find out who has an account (no account enumeration). Use webhooks to learn when someone joined.

Members

GET /api/creator/v1/members scope members:read

Query: plan (only members with that plan active), since (ISO date: joined at or after), external_id, limit, cursor.

→ 200
{
  "data": [
    {
      "sub": "p3Jt0qWm8ZcVx1YbN6aLk2HdRe",
      "username": "ana",
      "display_name": "Ana",
      "member": true,
      "joined_at": "2026-10-11T09:30:00.000Z",
      "via": "api",
      "external_id": "cus_42",
      "plans": [
        {
          "plan_id": "0b8f6c1e-2d4a-4f7b-8e9c-1a2b3c4d5e6f",
          "name": "Free members",
          "source": "auto",
          "active": true,
          "until": null,
          "period_end": null
        },
        {
          "plan_id": "6f1c2a9e-4b7d-4e2a-9c1f-2d3e4f5a6b7c",
          "name": "VIP signals",
          "source": "paid",
          "active": true,
          "until": null,
          "period_end": "2026-11-11"
        }
      ],
      "email": "[email protected]",
      "activated": true
    }
  ],
  "total": 1,
  "next_cursor": null
}

Email rules: email is included only when the member gave the email scope to one of your Login apps, or you created their account through the API. Otherwise the field is absent. activated is false while an account you created waits for activation. source is auto, grant, paid or revoked; via is link, go, grant, paid, api or oauth.

GET /api/creator/v1/members/{sub} scope members:read

One member object as above, or 404 not_found.

Plans

GET /api/creator/v1/plans scope any key

→ 200
{
  "data": [
    {
      "id": "0b8f6c1e-2d4a-4f7b-8e9c-1a2b3c4d5e6f",
      "name": "Free members",
      "description": "",
      "type": "free",
      "price": null,
      "auto_grant": true,
      "active": true,
      "all_scripts": true,
      "scripts": null,
      "trial_days": 0
    },
    {
      "id": "6f1c2a9e-4b7d-4e2a-9c1f-2d3e4f5a6b7c",
      "name": "VIP signals",
      "description": "Private strategies",
      "type": "paid",
      "price": {
        "amount": 19,
        "currency": "eur"
      },
      "auto_grant": false,
      "active": true,
      "all_scripts": false,
      "scripts": [
        "a3f0c2d4-…"
      ],
      "trial_days": 7
    }
  ]
}

POST /api/creator/v1/members/{sub}/plans scope plans:write

Body { "planId": "…", "until": "2026-12-31" } — until optional (YYYY-MM-DD, not in the past; access ends after that day). Gives the plan by hand, as from your Account page; the member is notified and plan.granted is sent. Answers the updated member object. A plan that is switched off answers 400 invalid_request.

DELETE /api/creator/v1/members/{sub}/plans/{planId} scope plans:write

Takes a plan you gave away again (or switches an auto-given plan off for this member); the member is notified and plan.revoked is sent. Paid subscriptions can’t be revoked here — they end through Stripe. Answers the updated member object.

Webhook endpoints

GET /api/creator/v1/webhooks scope webhooks:manage

→ 200
{
  "data": [
    {
      "id": "9d0e…",
      "url": "https://your-site.example/tl-webhook",
      "events": [
        "member.joined",
        "plan.granted"
      ],
      "enabled": true,
      "created": "2026-10-11T09:30:00.000Z",
      "failingSince": null,
      "disabledAt": null,
      "disabledWhy": null,
      "pending": 0
    }
  ]
}

POST /api/creator/v1/webhooks scope webhooks:manage

Body { "url": "https://…", "events": ["member.joined", …] } — events optional (default: all). Answers 201 with the endpoint and its signing secret (whsec_tl_…, shown once). Up to 5 endpoints. Rotating the secret, pausing, the test event and the delivery log are on your Developer page.

DELETE /api/creator/v1/webhooks/{id} scope webhooks:manage

Removes the endpoint and its queued deliveries. Answers { "ok": true }.

Webhooks

Each delivery is a POST with a JSON body and these headers:

Request
POST /tl-webhook HTTP/1.1
Content-Type: application/json
User-Agent: TriggerTerminal-Webhooks/1
TL-Signature: t=1760175000,v1=5257a869e7ecebeda32affa62cdca3fa51cad7e77a0e56ff536d0ce8e108d8bd
TL-Event: member.joined
TL-Delivery: dlv_Qw3Er5Ty7U

Body: { id, type, created, creator, data }. id (evt_…) identifies the event and TL-Delivery the delivery; both stay the same on retries — use them to ignore duplicates. creator is your profile slug. data.member = { sub, username, external_id } (same pairwise sub as Login with).

Events and payloads

EventWhenExtra fields in data
member.joinedSomeone joined you: join link, coupon link, given a plan by hand, a purchase, the API or "Login with".via, signup
member.leftA member left you (Account → My creators → Leave).—
plan.grantedA member got one of your plans: automatically on joining (auto), by hand or through the API (grant), or by paying (paid).plan, source, until (grant only)
plan.revokedYou (or your API key) took a plan away, an auto plan was switched off for them, or you deleted the plan.plan, reason
plan.expiredA plan given with an expiry date ran out (not sent for paid plans — see subscription.ended).plan, until
subscription.startedA member started a paid subscription to one of your paid plans, scripts or feeds.subscription, item
subscription.renewedA monthly payment of a running subscription succeeded.subscription, item
subscription.cancelledThe member cancelled; access continues to period_end (cancel_at).subscription, item
subscription.endedThe subscription stopped being active (ended, unpaid…).subscription, item
subscription.trial_startedA member started a free trial of one of your paid plans (sent together with subscription.started). One trial per member per plan.subscription (status trialing, trial_end), item
subscription.trial_endedA free trial is over: it became a paid subscription (converted: true) or it was cancelled / its first payment failed (converted: false).subscription, item, converted
user.activatedAn account you created with POST /users was activated (password chosen, email confirmed).—

source: auto · grant · paid · affiliate (the affiliate checker verified the member's exchange sign-up). reason: revoked · auto plan ended · plan deleted. subscription.model: platform (Trigger Terminal sells) or direct (your own Stripe). subscription.trial_end: the last day of a free trial, or null. item.kind: cplan (a creator plan), script or feed; amounts are in currency units (19 = 19.00).

member.joined
{
  "id": "evt_Xq9w8E7r6T5y",
  "type": "member.joined",
  "created": "2026-10-11T09:30:00.000Z",
  "creator": "your-slug",
  "data": {
    "member": {
      "sub": "p3Jt0qWm8ZcVx1YbN6aLk2HdRe",
      "username": "ana",
      "external_id": "cus_42"
    },
    "via": "api",
    "signup": false
  }
}
member.left
{
  "id": "evt_Xq9w8E7r6T5y",
  "type": "member.left",
  "created": "2026-10-11T09:30:00.000Z",
  "creator": "your-slug",
  "data": {
    "member": {
      "sub": "p3Jt0qWm8ZcVx1YbN6aLk2HdRe",
      "username": "ana",
      "external_id": "cus_42"
    }
  }
}
plan.granted
{
  "id": "evt_Xq9w8E7r6T5y",
  "type": "plan.granted",
  "created": "2026-10-11T09:30:00.000Z",
  "creator": "your-slug",
  "data": {
    "member": {
      "sub": "p3Jt0qWm8ZcVx1YbN6aLk2HdRe",
      "username": "ana",
      "external_id": "cus_42"
    },
    "plan": {
      "id": "0b8f6c1e-2d4a-4f7b-8e9c-1a2b3c4d5e6f",
      "name": "Free members"
    },
    "source": "grant",
    "until": "2026-12-31"
  }
}
plan.revoked
{
  "id": "evt_Xq9w8E7r6T5y",
  "type": "plan.revoked",
  "created": "2026-10-11T09:30:00.000Z",
  "creator": "your-slug",
  "data": {
    "member": {
      "sub": "p3Jt0qWm8ZcVx1YbN6aLk2HdRe",
      "username": "ana",
      "external_id": "cus_42"
    },
    "plan": {
      "id": "0b8f6c1e-2d4a-4f7b-8e9c-1a2b3c4d5e6f",
      "name": "Free members"
    },
    "reason": "revoked"
  }
}
plan.expired
{
  "id": "evt_Xq9w8E7r6T5y",
  "type": "plan.expired",
  "created": "2026-10-11T09:30:00.000Z",
  "creator": "your-slug",
  "data": {
    "member": {
      "sub": "p3Jt0qWm8ZcVx1YbN6aLk2HdRe",
      "username": "ana",
      "external_id": "cus_42"
    },
    "plan": {
      "id": "0b8f6c1e-2d4a-4f7b-8e9c-1a2b3c4d5e6f",
      "name": "Free members"
    },
    "until": "2026-10-10"
  }
}
subscription.started
{
  "id": "evt_Xq9w8E7r6T5y",
  "type": "subscription.started",
  "created": "2026-10-11T09:30:00.000Z",
  "creator": "your-slug",
  "data": {
    "member": {
      "sub": "p3Jt0qWm8ZcVx1YbN6aLk2HdRe",
      "username": "ana",
      "external_id": "cus_42"
    },
    "subscription": {
      "id": "sub_1Q2w3E4r5T6y",
      "status": "active",
      "period_end": "2026-11-11",
      "cancel_at": null,
      "amount": 19,
      "currency": "eur",
      "model": "platform",
      "trial_end": null
    },
    "item": {
      "id": "6f1c2a9e-4b7d-4e2a-9c1f-2d3e4f5a6b7c",
      "kind": "cplan",
      "name": "VIP signals"
    }
  }
}
subscription.renewed
{
  "id": "evt_Xq9w8E7r6T5y",
  "type": "subscription.renewed",
  "created": "2026-10-11T09:30:00.000Z",
  "creator": "your-slug",
  "data": {
    "member": {
      "sub": "p3Jt0qWm8ZcVx1YbN6aLk2HdRe",
      "username": "ana",
      "external_id": "cus_42"
    },
    "subscription": {
      "id": "sub_1Q2w3E4r5T6y",
      "status": "active",
      "period_end": "2026-12-11",
      "cancel_at": null,
      "amount": 19,
      "currency": "eur",
      "model": "platform",
      "trial_end": null
    },
    "item": {
      "id": "6f1c2a9e-4b7d-4e2a-9c1f-2d3e4f5a6b7c",
      "kind": "cplan",
      "name": "VIP signals"
    }
  }
}
subscription.cancelled
{
  "id": "evt_Xq9w8E7r6T5y",
  "type": "subscription.cancelled",
  "created": "2026-10-11T09:30:00.000Z",
  "creator": "your-slug",
  "data": {
    "member": {
      "sub": "p3Jt0qWm8ZcVx1YbN6aLk2HdRe",
      "username": "ana",
      "external_id": "cus_42"
    },
    "subscription": {
      "id": "sub_1Q2w3E4r5T6y",
      "status": "active",
      "period_end": "2026-11-11",
      "cancel_at": "2026-11-11",
      "amount": 19,
      "currency": "eur",
      "model": "platform",
      "trial_end": null
    },
    "item": {
      "id": "6f1c2a9e-4b7d-4e2a-9c1f-2d3e4f5a6b7c",
      "kind": "cplan",
      "name": "VIP signals"
    }
  }
}
subscription.ended
{
  "id": "evt_Xq9w8E7r6T5y",
  "type": "subscription.ended",
  "created": "2026-10-11T09:30:00.000Z",
  "creator": "your-slug",
  "data": {
    "member": {
      "sub": "p3Jt0qWm8ZcVx1YbN6aLk2HdRe",
      "username": "ana",
      "external_id": "cus_42"
    },
    "subscription": {
      "id": "sub_1Q2w3E4r5T6y",
      "status": "canceled",
      "period_end": "2026-11-11",
      "cancel_at": "2026-11-11",
      "amount": 19,
      "currency": "eur",
      "model": "platform",
      "trial_end": null
    },
    "item": {
      "id": "6f1c2a9e-4b7d-4e2a-9c1f-2d3e4f5a6b7c",
      "kind": "cplan",
      "name": "VIP signals"
    }
  }
}
subscription.trial_started
{
  "id": "evt_Xq9w8E7r6T5y",
  "type": "subscription.trial_started",
  "created": "2026-10-11T09:30:00.000Z",
  "creator": "your-slug",
  "data": {
    "member": {
      "sub": "p3Jt0qWm8ZcVx1YbN6aLk2HdRe",
      "username": "ana",
      "external_id": "cus_42"
    },
    "subscription": {
      "id": "sub_1Q2w3E4r5T6y",
      "status": "trialing",
      "period_end": "2026-10-18",
      "cancel_at": null,
      "amount": 19,
      "currency": "eur",
      "model": "platform",
      "trial_end": "2026-10-18"
    },
    "item": {
      "id": "6f1c2a9e-4b7d-4e2a-9c1f-2d3e4f5a6b7c",
      "kind": "cplan",
      "name": "VIP signals"
    }
  }
}
subscription.trial_ended
{
  "id": "evt_Xq9w8E7r6T5y",
  "type": "subscription.trial_ended",
  "created": "2026-10-11T09:30:00.000Z",
  "creator": "your-slug",
  "data": {
    "member": {
      "sub": "p3Jt0qWm8ZcVx1YbN6aLk2HdRe",
      "username": "ana",
      "external_id": "cus_42"
    },
    "subscription": {
      "id": "sub_1Q2w3E4r5T6y",
      "status": "active",
      "period_end": "2026-11-18",
      "cancel_at": null,
      "amount": 19,
      "currency": "eur",
      "model": "platform",
      "trial_end": "2026-10-18"
    },
    "item": {
      "id": "6f1c2a9e-4b7d-4e2a-9c1f-2d3e4f5a6b7c",
      "kind": "cplan",
      "name": "VIP signals"
    },
    "converted": true
  }
}
user.activated
{
  "id": "evt_Xq9w8E7r6T5y",
  "type": "user.activated",
  "created": "2026-10-11T09:30:00.000Z",
  "creator": "your-slug",
  "data": {
    "member": {
      "sub": "p3Jt0qWm8ZcVx1YbN6aLk2HdRe",
      "username": "ana",
      "external_id": "cus_42"
    }
  }
}

The test event from your Developer page is { "type": "test", "data": { "hello": "world" } } with TL-Event: test.

Signatures

TL-Signature: t=<unix seconds>,v1=<hex> where v1 = HMAC-SHA256(secret, t + "." + raw body). Compute it over the raw bytes you received (before any JSON parsing), compare in constant time, and refuse timestamps more than 5 minutes away from your clock. Each attempt is signed again with a fresh t.

Verify a webhook — Node.js (Express)
const express = require('express');
const crypto = require('crypto');
const app = express();
const seen = new Set(); // use your database in production

// the RAW body is needed: the signature covers the exact bytes we sent
app.post('/tl-webhook', express.raw({ type: 'application/json' }), (req, res) => {
  const h = String(req.get('TL-Signature') || '');
  const t = (h.match(/(?:^|,)t=(\d+)/) || [])[1], v1 = (h.match(/(?:^|,)v1=([0-9a-f]{64})/) || [])[1];
  if (!t || !v1 || Math.abs(Date.now() / 1000 - Number(t)) > 300) return res.sendStatus(400);
  const want = crypto.createHmac('sha256', process.env.TL_WEBHOOK_SECRET).update(t + '.' + req.body).digest('hex');
  if (!crypto.timingSafeEqual(Buffer.from(want), Buffer.from(v1))) return res.sendStatus(400);
  const event = JSON.parse(req.body); // { id, type, created, creator, data }
  if (seen.has(event.id)) return res.sendStatus(200); // a retry of something you already handled
  seen.add(event.id);
  res.sendStatus(200); // answer within 10 seconds; do slow work afterwards
});
app.listen(3000);
Verify a webhook — PHP
<?php
$secret = getenv('TL_WEBHOOK_SECRET');
$body = file_get_contents('php://input');
$sig = $_SERVER['HTTP_TL_SIGNATURE'] ?? '';
if (!preg_match('/(?:^|,)t=(\d+)/', $sig, $t) || !preg_match('/(?:^|,)v1=([0-9a-f]{64})/', $sig, $v)
    || abs(time() - (int)$t[1]) > 300) { http_response_code(400); exit; }
$want = hash_hmac('sha256', $t[1] . '.' . $body, $secret);
if (!hash_equals($want, $v[1])) { http_response_code(400); exit; }
$event = json_decode($body, true); // ['id' => 'evt_…', 'type' => 'member.joined', 'data' => [...]]
http_response_code(200);
echo 'ok';
Verify a webhook — Python
import hashlib, hmac, json, os, re, time

def verify(raw_body: bytes, signature_header: str, secret: str = os.environ.get("TL_WEBHOOK_SECRET", ""), tolerance: int = 300):
    t = re.search(r"(?:^|,)t=(\d+)", signature_header or "")
    v1 = re.search(r"(?:^|,)v1=([0-9a-f]{64})", signature_header or "")
    if not t or not v1 or abs(time.time() - int(t.group(1))) > tolerance:
        raise ValueError("bad signature header")
    want = hmac.new(secret.encode(), t.group(1).encode() + b"." + raw_body, hashlib.sha256).hexdigest()
    if not hmac.compare_digest(want, v1.group(1)):
        raise ValueError("bad signature")
    return json.loads(raw_body)  # {"id", "type", "created", "creator", "data"}

# Flask: event = verify(request.get_data(), request.headers.get("TL-Signature", ""))

Retries, auto-disable and the delivery log

  • Answer with any 2xx within 10 seconds. Anything else — another status, a timeout, a network error, a redirect — counts as a failure. Redirects are never followed.
  • Failed deliveries are retried with exponential backoff: 30 s, 1 min, 2 min, 4 min… up to 2 hours between tries, for 24 hours; then that delivery is dropped (marked “gave up after 24 h” in the log). Deliveries can arrive out of order — use created.
  • An endpoint that keeps failing for 3 days is switched off, its queue is cleared and you get a notification. Fix it, then switch it on again on your Developer page.
  • The delivery log keeps the last 100 attempts per endpoint: time, event, attempt, HTTP status, duration and error.
  • Send test event delivers one test event at once and shows the result.
  • Address rules (SSRF protection): https only, no user name or password in the URL, no localhost / .local / .internal names. The host name must resolve only to public addresses — private (10/8, 172.16/12, 192.168/16), loopback, link-local (169.254/16), CGNAT (100.64/10), multicast and reserved ranges and their IPv6 equivalents are refused. The address is checked after DNS resolution and pinned for the connection.

Member API and AI connector

Two APIs every member has for their own account (not for creators' members). They are separate from the Creator API above: other tokens, other base URLs.

Member API (read-only)

Create a token under Account → API & webhooks (up to 5) and send it as Authorization: Bearer tt_…. Only GET — the tokens can never place or cancel orders (other methods answer 405). Up to 60 requests a minute per token (then 429).

EndpointAnswers
GET https://trade-log.me/api/v1/meWho the token belongs to: username, plan, token name
GET https://trade-log.me/api/v1/accountsYour accounts: id, name, exchange, exchangeName, mode, demo
GET https://trade-log.me/api/v1/positionsOpen positions and balances per account (?account=ID): symbol, side, size, entry, mark, pnl, leverage, liq, sl — paper accounts and accounts with a read-only key on the website
GET https://trade-log.me/api/v1/journalClosed trades with your notes and tags (?from, to, src=exchange|paper|bot|manual, account, limit up to 2000)
GET https://trade-log.me/api/v1/signalsThe signal log (?limit up to 500)

Outgoing webhooks from the same page POST JSON when order.filled, order.placed, order.sent, order.failed, order.paper, trade.closed happen, with the headers X-TT-Event and X-TT-Signature: t=…,v1=… (HMAC-SHA256 of t + "." + body with the endpoint's secret — the same scheme as the creator webhooks).

Signal JSON: markets (perp / inverse / spot)

Every order signal — your relay URL /hook/<secret>/<exchange>/<account>, bots, alerts, Pine strategies and the fixed-IP gateway's /webhooks/<exchange> — takes an optional market field:

marketWhat it tradesPair
perp (default)USDT/USDC-margined perpetuals — what every signal without the field tradesBTCUSDT
inverseCoin-margined (inverse) perpetuals: contracts worth a fixed USD amount, margin and P&L in the coin. qty_in_percentage "4" sizes in USD value; "0" in coins (converted to contracts)BTCUSD (BTCUSDT is converted)
spotBuy / sell the coin. Long only — an entry short (position 1) or close short is refused with a clear message. No leverage or margin mode.BTCUSDT

Supported per exchange (Beta = built from the exchange's API documentation, not yet tested live): Bybit (perp, inverse β, spot β); OKX (perp, inverse β, spot β); OKX EU (perp, spot β); Bitget (perp, inverse β, spot β); Binance (perp, inverse β, spot β); Kraken Futures (perp, inverse β); Deribit (perp, inverse); BitMEX (perp β, inverse β); Gate (perp, inverse β, spot β); KuCoin (perp, inverse β, spot β); HTX (perp, inverse β, spot β); BingX (perp, spot β); MEXC (perp, spot β); Bitfinex (perp, spot β); Phemex (perp, inverse β); Hyperliquid (perp, spot β); Blofin (perp, inverse β). An exchange without the market answers “<Exchange> has no spot market here — <Exchange> supports: USDT perp, …” and nothing is sent. Inverse and spot orders need the Chrome extension (v1.24.0+; v1.25.0+ for Gate, KuCoin, HTX, BingX, MEXC, Bitfinex, Phemex and Hyperliquid; v1.25.1+ for Blofin) or keys stored on the site; trigger.trade webhook accounts trade the default market only (trigger.trade's own "inverse": "1" is passed on to it unchanged). Example:

{"position":"0","coin_pair":"BTCUSD","market":"inverse","qty":"500","qty_in_percentage":"4","leverage":"5"}

Symbol formats: spot cross pairs and USDC perpetuals

Spot cross pairs (Binance, Bybit, OKX, OKX EU, Bitget, Kraken Spot — Beta): coin_pair may be "ETHBTC", "ETH/BTC" or "ETH-BTC". It is matched against the exchange's own spot instruments (base and quote as the exchange lists them — Kraken's XETHXXBT / ETH/XBT is ETH/BTC). A string that matches two pairs is refused: “… is ambiguous — it could be A/B or C/D. Write it as BASE/QUOTE.” A bare coin ("ETH") means its USDT pair. Prices are in the quote coin; qty_in_percentage "1" spends that % of the quote balance (BTC for ETH/BTC), "4" is a USD value converted through the quote's USD price, "0" is the base-coin quantity. The exchange's lot size, tick and minimum order value (in the quote) apply. Long only, as all spot. Needs Chrome extension v1.25.2.

USDC-margined perpetuals (market perp): "BTCUSDC" goes to the USDC instrument, not the USDT one — Blofin BTC-USDC, Binance USDⓈ-M BTCUSDC, OKX BTC-USDC-SWAP, Bybit's USDC perpetual and Bitget USDC-M (found by base coin + USDC settlement in their contract lists; Beta). Sizes from the USDC balance; P&L in USDC. Hyperliquid is USDC-margined already. Needs Chrome extension v1.25.2.

ExchangeCross pairSent to the exchange as
Binance / Bybit / BitgetETH/BTCETHBTC
OKXETH/BTCETH-BTC
Kraken SpotETH/BTCXETHXXBT (altname ETHXBT)
Blofin perpBTCUSDCBTC-USDC

AI connector (MCP)

Connect Claude, ChatGPT or another MCP app at https://trade-log.me/mcp (Streamable HTTP). The app signs in with OAuth, or you create a personal token (ttm_…) under Account → AI connector. Each connection has a trade permission: read only, paper trading, or paper + live trading. Orders are two-step: preview_order / close_position never trade; confirm_order sends, after the member confirms. Step-by-step: AI connector help.

ToolWhat it does
list_accountsAccounts with their ids
get_portfolioBalances, equity and open positions with uPnL
get_pnlRealised P&L summary from the journal
list_tradesRecent closed trades
get_priceLatest price and 24h change of a pair
list_scriptsYour scripts, each with its language (pine, javascript, typescript, python)
upload_scriptSave a script and check it with the engine — source, optional language (pine | javascript | typescript | python; default pine or the // @lang= / # @lang= first line), script_id to update
backtest_scriptBack-test a strategy on exchange candles
list_botsBots and DCA bots
set_bot_statusPause or start a bot (starting needs trading allowed)
list_alertsActive alerts
create_alertCreate a price, %, RSI, volume or funding alert
delete_alertDelete an alert
optimize_scriptTest ranges of a strategy's settings (up to 300 combinations)
preview_orderPrepare an entry — returns a preview and a confirm_id; nothing is sent
close_positionPrepare closing a position — preview and confirm_id
confirm_orderSend a prepared order (confirm_id valid 3 minutes), only within the connection's trade permission

Errors

Creator API

Example — 403
{ "error": { "code": "insufficient_scope", "message": "This key lacks the plans:write scope" } }
HTTPcodeWhen
400invalid_requestThe body or a query value is wrong (bad JSON, since not a date, a plan grant the rules refuse…).
400invalid_emailPOST /users: email missing or not valid.
400email_blockedPOST /users: a disposable address or a domain the site blocks.
400invalid_planPOST /users: plans contains an id that is not one of your active plans.
400invalid_usernamePOST /users: username is not 3–32 letters, digits, . _ -
401unauthorizedNo Authorization header, or an unknown or revoked key.
403insufficient_scopeThe key lacks the scope this endpoint needs.
403ip_not_allowedThe key has an IP allow-list and the request came from another address.
403api_disabledThe admin switched the Creator API off for your account.
403not_a_creatorThe account that owns the key no longer has creator tools.
404not_foundUnknown endpoint, or no such member / plan / webhook of yours.
413too_largeThe request body is over 64 KB (the connection may also just be closed before this answer arrives).
429rate_limitedToo many requests, user creations or failed attempts — wait and retry.
500server_errorSomething went wrong on our side — retry later.
503api_disabledThe Creator API is switched off site-wide (kill switch).

OAuth / OpenID Connect

Token, revoke and userinfo errors are JSON { "error", "error_description" } (RFC 6749). Authorize errors go back to your redirect_uri as ?error=…&error_description=…&state=….

HTTPerrorWhen
redirectinvalid_requeststate missing, bad code_challenge, code_challenge_method not S256, PKCE missing for a public client.
redirectinvalid_scopeA scope that doesn’t exist.
redirectunsupported_response_typeresponse_type other than code.
redirectaccess_deniedThe member pressed Cancel, or the app is switched off.
page—Unknown client_id or a redirect_uri that is not registered: an error page is shown and nothing is sent to the redirect URI.
400invalid_grantCode invalid / expired / used, redirect_uri or PKCE mismatch, consent revoked, refresh token unknown / expired / reused.
400unsupported_grant_typegrant_type other than authorization_code or refresh_token.
400invalid_scopeA refresh asked for more scopes than were granted.
401invalid_clientUnknown client, wrong secret, a secret sent by a public client, or the app is switched off.
401invalid_token/oauth/userinfo: the access token is invalid, expired, revoked, or the consent was revoked.
429slow_downToo many requests or failed attempts from your IP or client.

Security best practices

  • Keep API keys, client secrets and webhook secrets on your server (environment variables or a secret store) — never in browser code, apps or git.
  • One key per system, only the scopes it needs, and an IP allow-list when your servers have fixed addresses. Revoke keys you no longer use; rotate secrets if one may have leaked.
  • Always use state and PKCE (S256), even with a client secret. Use nonce and validate the id_token (signature, iss, aud, exp, nonce).
  • Identify members by sub. Don’t treat email as an identity proof unless email_verified is true, and expect it to be missing.
  • Store refresh tokens server-side; replace them on every refresh (old ones become invalid) and revoke them on sign-out.
  • Verify every webhook signature on the raw body, check the timestamp, ignore duplicates by event id, answer fast and do slow work in a queue.
  • Register exact https redirect URIs only. Don’t forward arbitrary query parameters to them.
  • Check memberships (or the API) on your server before unlocking paid content, and re-check when access tokens are refreshed — plans end.
  • Never ask members for their trade-log.me password or exchange keys. The API never exposes trades, balances or keys, and that is by design.

Limits and policies

WhatLimit
Login apps5 per creator, up to 10 redirect URIs each
API keys5 active per creator
Webhook endpoints5 per creator
Creator API requests600 per minute per key
User creations (POST /users)60 per hour per creator (set by the admin)
Failed API authentications30 per 10 minutes per IP, then 429
/oauth/token60 requests per minute per IP and 300 per minute per client; 20 failed attempts in 10 minutes block the IP for a while (429 slow_down)
/oauth/userinfo, /oauth/revoke120 requests per minute per IP
API request body64 KB
Webhook timeout / retries10 s / 24 h; switched off after 3 days of failures
Delivery logLast 100 attempts per endpoint
  • The site’s admin can switch off a Login app, your API access, or the whole Creator API (kill switch); sign-up from the Login page may also be off. Your integration should handle invalid_client, api_disabled and not_a_creator gracefully.
  • Use the API for your own members and customers. Don’t create accounts for people who didn’t ask for one; disposable email domains are refused.
  • The “Login with trade-log.me” button must use the name and the logo mark exactly as in the button kit: don’t change the mark, its colours or the wording, and don’t suggest that Trigger Terminal endorses your service.

Button kit

Use the site’s logo mark only, as below. Light version on light backgrounds, dark on dark ones. Minimum height 36 px; keep at least 8 px of space around it.

Button — light
<a class="tl-login tl-light" href="/auth/login">
  <svg viewBox="0 0 32 32" width="18" height="18" aria-hidden="true"><path d="M5 22l7-8 5 4 10-11" stroke="currentColor" stroke-width="3" fill="none" stroke-linecap="round" stroke-linejoin="round"/></svg>
  Login with trade-log.me
</a>
<style>
.tl-login{display:inline-flex;align-items:center;gap:10px;padding:10px 18px;border-radius:10px;font:600 15px/1.2 system-ui,-apple-system,Segoe UI,sans-serif;text-decoration:none}
.tl-login svg{color:#16a34a;flex:none}
.tl-light{background:#ffffff;color:#0f1724;border:1px solid #d0d7e2}.tl-light:hover{border-color:#3b82f6}
</style>
Button — dark
<a class="tl-login tl-dark" href="/auth/login">
  <svg viewBox="0 0 32 32" width="18" height="18" aria-hidden="true"><path d="M5 22l7-8 5 4 10-11" stroke="currentColor" stroke-width="3" fill="none" stroke-linecap="round" stroke-linejoin="round"/></svg>
  Login with trade-log.me
</a>
<style>
.tl-login{display:inline-flex;align-items:center;gap:10px;padding:10px 18px;border-radius:10px;font:600 15px/1.2 system-ui,-apple-system,Segoe UI,sans-serif;text-decoration:none}
.tl-login svg{color:#22c55e;flex:none}
.tl-dark{background:#0f1724;color:#e6edf6;border:1px solid #2b3a52}.tl-dark:hover{border-color:#3b82f6}
</style>

Changelog

VersionReleased withChanges
Signal JSON · symbolsTrigger Terminal v168Spot cross pairs: coin_pair "ETHBTC", "ETH/BTC" or "ETH-BTC" resolved against the exchange's instruments (Binance, Bybit, OKX, Bitget, Kraken Spot); ambiguous strings are refused. USDC-margined perpetuals: "BTCUSDC" goes to the USDC instrument on Blofin, Binance, OKX, Bybit and Bitget (Beta).
Signal JSON · market (Blofin)Trigger Terminal v167market "inverse" on Blofin: the Coin-M perpetuals (BTC-USD …), sized in USD contracts, P&L in the coin (Beta).
Signal JSON · market (more exchanges)Trigger Terminal v166market "inverse" on Gate, KuCoin, HTX and Phemex; market "spot" on Gate, KuCoin, HTX, BingX, MEXC, Bitfinex and Hyperliquid (Beta). Spot shorts are refused as before.
Signal JSON · marketTrigger Terminal v164Signals (webhooks, relay alerts, bots, Pine strategies, the member API's trading tools) accept "market": perp | inverse | spot. No field = the exchange's default market, so existing signals are unchanged. Member API positions carry market and, for inverse positions, pnlCcy.
Member APIs · v1Trigger Terminal v158Member API GET /api/v1/positions: mark, pnl and leverage are now filled for Kraken Futures, dYdX, WEEX, WhiteBIT, Bitunix and WOO X where they used to be null (same fields, no breaking change). Orders through the AI connector are refused above the pair's maximum leverage. Creator API unchanged.
AI connectorTrigger Terminal v157list_scripts returns each script's language; upload_script accepts language: pine, javascript, typescript or python. Creator API unchanged.
v1 · trialsTrigger Terminal v155New events subscription.trial_started and subscription.trial_ended; subscription.trial_end in subscription payloads; plans list trial_days. Additive — no breaking change.
v1 · docs refreshTrigger Terminal v150Full reference: quick start, claims per scope, every endpoint with examples, every webhook event with its payload, errors, limits, button kit. No API change.
v1Trigger Terminal v149First release: Login with trade-log.me (OAuth 2.1 / OpenID Connect), Creator API v1, signed webhooks.

Questions? Ask support · Help for creators