{"openapi":"3.0.0","paths":{"/api/health":{"get":{"operationId":"HealthController_health","parameters":[],"responses":{"200":{"description":""}},"tags":["health"]}},"/api/v1/deposit-options":{"get":{"operationId":"DepositOptionsController_options","parameters":[],"responses":{"200":{"description":""}},"summary":"Accepted deposit chains and stablecoins (token contract, decimals, confirmations)","tags":["public"]}},"/api/auth/config":{"get":{"operationId":"AuthController_config","parameters":[],"responses":{"200":{"description":""}},"tags":["auth"]}},"/api/auth/privy":{"post":{"operationId":"AuthController_privy","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrivyLoginDto"}}}},"responses":{"201":{"description":""}},"tags":["auth"]}},"/api/auth/totp/setup":{"post":{"operationId":"AuthController_setup","parameters":[],"responses":{"201":{"description":""}},"tags":["auth"]}},"/api/auth/totp/confirm":{"post":{"operationId":"AuthController_confirm","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TotpDto"}}}},"responses":{"201":{"description":""}},"tags":["auth"]}},"/api/auth/totp":{"post":{"operationId":"AuthController_totp","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TotpDto"}}}},"responses":{"201":{"description":""}},"tags":["auth"]}},"/api/auth/desktop/login":{"post":{"operationId":"AuthController_desktopLogin","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DesktopLoginDto"}}}},"responses":{"201":{"description":""}},"tags":["auth"]}},"/api/auth/refresh":{"post":{"operationId":"AuthController_refresh","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RefreshDto"}}}},"responses":{"201":{"description":""}},"tags":["auth"]}},"/api/auth/logout":{"post":{"operationId":"AuthController_logout","parameters":[],"responses":{"201":{"description":""}},"tags":["auth"]}},"/api/auth/sync-key":{"get":{"operationId":"AuthController_syncKey","parameters":[],"responses":{"200":{"description":""}},"tags":["auth"]}},"/api/auth/me":{"get":{"operationId":"AuthController_me","parameters":[],"responses":{"200":{"description":""}},"tags":["auth"]}},"/api/v1/catalog":{"get":{"operationId":"V1Controller_catalog","parameters":[],"responses":{"200":{"description":""}},"security":[{"api-key":[]},{"bearer":[]}],"tags":["public"]}},"/api/v1/ledger":{"get":{"operationId":"V1Controller_ledger","parameters":[],"responses":{"200":{"description":""}},"security":[{"api-key":[]},{"bearer":[]}],"tags":["public"]}},"/api/v1/balance":{"get":{"operationId":"V1Controller_balance","parameters":[],"responses":{"200":{"description":""}},"security":[{"api-key":[]},{"bearer":[]}],"tags":["public"]}},"/api/v1/account":{"get":{"operationId":"V1Controller_account","parameters":[],"responses":{"200":{"description":""}},"security":[{"api-key":[]},{"bearer":[]}],"tags":["public"]}},"/api/v1/subscription":{"get":{"operationId":"V1Controller_subscription","parameters":[],"responses":{"200":{"description":""}},"security":[{"api-key":[]},{"bearer":[]}],"tags":["public"]}},"/api/v1/deposits":{"post":{"operationId":"V1Controller_deposit","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateDepositDto"}}}},"responses":{"201":{"description":""}},"security":[{"api-key":[]},{"bearer":[]}],"tags":["public"]},"get":{"operationId":"V1Controller_deposits","parameters":[],"responses":{"200":{"description":""}},"security":[{"api-key":[]},{"bearer":[]}],"tags":["public"]}},"/api/v1/deposits/{id}":{"get":{"operationId":"V1Controller_depositOne","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""}},"security":[{"api-key":[]},{"bearer":[]}],"tags":["public"]}},"/api/v1/keys":{"post":{"operationId":"V1Controller_createKey","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateKeyDto"}}}},"responses":{"201":{"description":""}},"security":[{"api-key":[]},{"bearer":[]}],"tags":["public"]},"get":{"operationId":"V1Controller_keys","parameters":[],"responses":{"200":{"description":""}},"security":[{"api-key":[]},{"bearer":[]}],"tags":["public"]}},"/api/v1/keys/{id}":{"delete":{"operationId":"V1Controller_revoke","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""}},"security":[{"api-key":[]},{"bearer":[]}],"tags":["public"]}},"/api/v1/plan-orders":{"get":{"operationId":"V1Controller_planOrders","parameters":[],"responses":{"200":{"description":""}},"security":[{"api-key":[]},{"bearer":[]}],"tags":["public"]}},"/api/agl/v1/deposits/options":{"get":{"operationId":"ApgDepositsController_options","parameters":[],"responses":{"200":{"description":""}},"security":[{"api-key":[]},{"bearer":[]}],"summary":"Chains and assets accepted for deposits right now (token contracts, decimals, confirmations).","tags":["deposits"]}},"/api/agl/v1/deposits":{"post":{"description":"Returns a unique deposit address for this order. Send the chosen stablecoin on the chosen chain; the balance is credited after the required confirmations (status pending -> confirming -> credited -> swept). Omit amount_usd for an open amount. Same Idempotency-Key returns the same deposit.","operationId":"ApgDepositsController_create","parameters":[{"name":"idempotency-key","required":true,"in":"header","schema":{"type":"string"}},{"name":"x-agl-client","required":true,"in":"header","schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","description":"6-128 chars. Replays return the original deposit.","required":false,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateApgDepositDto"}}}},"responses":{"201":{"description":""}},"security":[{"api-key":[]},{"bearer":[]}],"summary":"Create a deposit order and get its address","tags":["deposits"]},"get":{"operationId":"ApgDepositsController_list","parameters":[{"name":"cursor","required":false,"in":"query","schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","schema":{"type":"string"}},{"name":"status","required":false,"in":"query","schema":{"enum":["pending","confirming","credited","swept","expired","review"],"type":"string"}}],"responses":{"200":{"description":""}},"security":[{"api-key":[]},{"bearer":[]}],"summary":"List deposit orders, newest first","tags":["deposits"]}},"/api/agl/v1/deposits/{id}":{"get":{"operationId":"ApgDepositsController_get","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""}},"security":[{"api-key":[]},{"bearer":[]}],"summary":"Read one deposit order with its on-chain payments and status","tags":["deposits"]}},"/api/agl/v1/balance":{"get":{"operationId":"ApgDepositsController_balance","parameters":[],"responses":{"200":{"description":""}},"security":[{"api-key":[]},{"bearer":[]}],"summary":"Account balance in USD","tags":["deposits"]}},"/api/agl/v1/agents/challenge":{"post":{"operationId":"AgentsController_challenge","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentChallengeDto"}}}},"responses":{"200":{"description":""}},"summary":"Step 1: get a SIWE message to sign with the agent's EVM key (personal_sign)","tags":["agents"]}},"/api/agl/v1/agents/signup":{"post":{"description":"Creates the account on first use; later calls with the same wallet add another API key to the same account (max 25 active).","operationId":"AgentsController_signup","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentSignupDto"}}}},"responses":{"200":{"description":""}},"summary":"Step 2: send the signed message, get an account and an API key","tags":["agents"]}},"/api/plans":{"get":{"operationId":"PlansController_list","parameters":[],"responses":{"200":{"description":""}},"summary":"Plans on sale","tags":["Plans"]},"post":{"operationId":"PlansController_create","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatePlanDto"}}}},"responses":{"201":{"description":""}},"security":[{"bearer":[]}],"summary":"[Admin] Create plan","tags":["Plans"]}},"/api/plans/all":{"get":{"operationId":"PlansController_all","parameters":[],"responses":{"200":{"description":""}},"security":[{"bearer":[]}],"summary":"[Admin] All plans","tags":["Plans"]}},"/api/plans/{id}":{"patch":{"operationId":"PlansController_update","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"number"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdatePlanDto"}}}},"responses":{"200":{"description":""}},"security":[{"bearer":[]}],"summary":"[Admin] Update plan","tags":["Plans"]},"delete":{"operationId":"PlansController_remove","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"number"}}],"responses":{"200":{"description":""}},"security":[{"bearer":[]}],"summary":"[Admin] Hide plan","tags":["Plans"]}},"/api/v1/plans/quote":{"get":{"operationId":"PlanPurchaseController_quote","parameters":[{"name":"planCode","required":true,"in":"query","schema":{"type":"string"}},{"name":"period","required":true,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":""}},"security":[{"api-key":[]},{"bearer":[]}],"summary":"Price, balance and resulting expiry for a plan","tags":["plans"]}},"/api/v1/plans/buy":{"post":{"operationId":"PlanPurchaseController_buy","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BuyPlanDto"}}}},"responses":{"201":{"description":""}},"security":[{"api-key":[]},{"bearer":[]}],"summary":"Buy or renew a plan from the deposit balance","tags":["plans"]}},"/api/v1/plans/orders":{"get":{"operationId":"PlanPurchaseController_orders","parameters":[],"responses":{"200":{"description":""}},"security":[{"api-key":[]},{"bearer":[]}],"summary":"Plan purchases of this account","tags":["plans"]}},"/api/subscriptions/me":{"get":{"operationId":"SubscriptionsController_me","parameters":[{"name":"deviceHash","required":true,"in":"query","schema":{"type":"string"}},{"name":"x-device-hash","required":true,"in":"header","schema":{"type":"string"}}],"responses":{"200":{"description":""}},"security":[{"bearer":[]}],"summary":"Current plan with cloud/local quota (plan card)","tags":["Subscriptions"]}},"/api/subscriptions/me/history":{"get":{"operationId":"SubscriptionsController_history","parameters":[],"responses":{"200":{"description":""}},"security":[{"bearer":[]}],"summary":"Plan history","tags":["Subscriptions"]}},"/api/entitlements/me":{"get":{"operationId":"EntitlementsController_me","parameters":[{"name":"deviceHash","required":true,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":""}},"security":[{"bearer":[]}],"summary":"Current entitlements (plan, quota, devices)","tags":["Entitlements"]}},"/api/devices/usage":{"patch":{"operationId":"DevicesController_reportUsage","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportUsageDto"}}}},"responses":{"200":{"description":""}},"security":[{"bearer":[]}],"summary":"Report the local profile count on this device (desktop app)","tags":["Devices"]}},"/api/devices":{"get":{"operationId":"DevicesController_list","parameters":[],"responses":{"200":{"description":""}},"security":[{"bearer":[]}],"summary":"My devices","tags":["Devices"]}},"/api/devices/sessions":{"get":{"operationId":"DevicesController_sessions","parameters":[],"responses":{"200":{"description":""}},"security":[{"bearer":[]}],"summary":"Active login sessions","tags":["Devices"]}},"/api/devices/sessions/{id}":{"delete":{"operationId":"DevicesController_revokeSession","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"number"}}],"responses":{"200":{"description":""}},"security":[{"bearer":[]}],"summary":"Revoke a login session","tags":["Devices"]}},"/api/devices/{id}":{"delete":{"operationId":"DevicesController_revoke","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"number"}}],"responses":{"200":{"description":""}},"security":[{"bearer":[]}],"summary":"Revoke a device","tags":["Devices"]}},"/api/folders":{"get":{"operationId":"ProfilesController_listFolders","parameters":[],"responses":{"200":{"description":""}},"security":[{"bearer":[]}],"summary":"Folders","tags":["Profiles"]},"post":{"operationId":"ProfilesController_createFolder","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateFolderDto"}}}},"responses":{"201":{"description":""}},"security":[{"bearer":[]}],"summary":"Create folder","tags":["Profiles"]}},"/api/folders/{id}":{"delete":{"operationId":"ProfilesController_removeFolder","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"number"}}],"responses":{"200":{"description":""}},"security":[{"bearer":[]}],"summary":"Delete folder","tags":["Profiles"]}},"/api/profiles":{"get":{"operationId":"ProfilesController_list","parameters":[{"name":"folderId","required":true,"in":"query","schema":{"type":"string"}},{"name":"isCloud","required":true,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":""}},"security":[{"bearer":[]}],"summary":"Profiles (server metadata)","tags":["Profiles"]},"post":{"operationId":"ProfilesController_create","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateProfileDto"}}}},"responses":{"201":{"description":""}},"security":[{"bearer":[]}],"summary":"Create profile (plan quota enforced)","tags":["Profiles"]}},"/api/profiles/authorize-launch":{"post":{"operationId":"ProfilesController_authorizeLaunch","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthorizeLaunchDto"}}}},"responses":{"201":{"description":""}},"security":[{"bearer":[]}],"summary":"Issue a launch ticket (required before opening a cloud profile)","tags":["Profiles"]}},"/api/profiles/reconcile":{"post":{"operationId":"ProfilesController_reconcile","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReconcileProfilesDto"}}}},"responses":{"201":{"description":""}},"security":[{"bearer":[]}],"summary":"Reconcile the profile registry with this device","tags":["Profiles"]}},"/api/profiles/{id}":{"get":{"operationId":"ProfilesController_get","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"number"}}],"responses":{"200":{"description":""}},"security":[{"bearer":[]}],"summary":"Profile detail","tags":["Profiles"]},"patch":{"operationId":"ProfilesController_update","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"number"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateProfileDto"}}}},"responses":{"200":{"description":""}},"security":[{"bearer":[]}],"summary":"Update profile","tags":["Profiles"]},"delete":{"operationId":"ProfilesController_remove","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"number"}}],"responses":{"200":{"description":""}},"security":[{"bearer":[]}],"summary":"Delete profile","tags":["Profiles"]}},"/api/profiles/{id}/open":{"post":{"operationId":"ProfilesController_open","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"number"}}],"responses":{"201":{"description":""}},"security":[{"bearer":[]}],"summary":"Mark a profile opened and take its lock (needs a launch ticket)","tags":["Profiles"]}},"/api/profiles/{id}/lock/renew":{"post":{"operationId":"ProfilesController_renewLock","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"number"}}],"responses":{"201":{"description":""}},"security":[{"bearer":[]}],"summary":"Renew the cloud profile lock (heartbeat)","tags":["Profiles"]}},"/api/profiles/{id}/unlock":{"post":{"operationId":"ProfilesController_unlockProfile","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"number"}}],"responses":{"201":{"description":""}},"security":[{"bearer":[]}],"summary":"Release the cloud profile lock after the browser closes","tags":["Profiles"]}},"/api/profiles/{id}/blob/meta":{"get":{"operationId":"ProfilesController_blobMeta","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"number"}}],"responses":{"200":{"description":""}},"security":[{"bearer":[]}],"summary":"Metadata blob sync (size, updatedAt)","tags":["Profiles"]}},"/api/profiles/{id}/blob/upload-url":{"post":{"operationId":"ProfilesController_blobUploadUrl","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"number"}}],"responses":{"201":{"description":""}},"security":[{"bearer":[]}],"summary":"Get a signed URL to upload the profile blob","tags":["Profiles"]}},"/api/profiles/{id}/blob/download-url":{"post":{"operationId":"ProfilesController_blobDownloadUrl","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"number"}}],"responses":{"201":{"description":""}},"security":[{"bearer":[]}],"summary":"Get a signed URL to download the profile blob","tags":["Profiles"]}},"/api/profiles/{id}/blob/complete":{"post":{"operationId":"ProfilesController_blobComplete","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"number"}}],"responses":{"201":{"description":""}},"security":[{"bearer":[]}],"summary":"Confirm the blob upload","tags":["Profiles"]}},"/api/workflows":{"get":{"operationId":"WorkflowsController_list","parameters":[],"responses":{"200":{"description":""}},"security":[{"bearer":[]}],"summary":"Workflows","tags":["Workflows"]},"post":{"operationId":"WorkflowsController_create","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateWorkflowDto"}}}},"responses":{"201":{"description":""}},"security":[{"bearer":[]}],"summary":"Create workflow (synced from the app)","tags":["Workflows"]}},"/api/workflows/{id}":{"get":{"operationId":"WorkflowsController_get","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"number"}}],"responses":{"200":{"description":""}},"security":[{"bearer":[]}],"summary":"Workflow detail","tags":["Workflows"]},"patch":{"operationId":"WorkflowsController_update","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"number"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateWorkflowDto"}}}},"responses":{"200":{"description":""}},"security":[{"bearer":[]}],"summary":"Update workflow","tags":["Workflows"]},"delete":{"operationId":"WorkflowsController_remove","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"number"}}],"responses":{"200":{"description":""}},"security":[{"bearer":[]}],"summary":"Delete workflow","tags":["Workflows"]}},"/api/users/me":{"get":{"operationId":"UsersController_me","parameters":[],"responses":{"200":{"description":""}},"security":[{"bearer":[]}],"summary":"Current account (balance in US cents)","tags":["users"]},"patch":{"operationId":"UsersController_update","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateProfileDto"}}}},"responses":{"200":{"description":""}},"security":[{"bearer":[]}],"summary":"Update display name","tags":["users"]}},"/api/users/me/sync-key":{"get":{"operationId":"UsersController_syncKey","parameters":[],"responses":{"200":{"description":""}},"security":[{"bearer":[]}],"summary":"AES key used by the desktop app to encrypt cloud profile blobs","tags":["users"]}},"/api/ai/v1/models":{"get":{"operationId":"AiController_models","parameters":[],"responses":{"200":{"description":""}},"security":[{"bearer":[]}],"summary":"Models the plan may call. Aliases only; the upstream key stays on the server.","tags":["AI"]}},"/api/ai/v1/usage":{"get":{"operationId":"AiController_usage","parameters":[],"responses":{"200":{"description":""}},"security":[{"bearer":[]}],"summary":"Today’s AI request and token usage for the signed-in user","tags":["AI"]}},"/api/ai/v1/chat/completions":{"post":{"operationId":"AiController_chat","parameters":[],"responses":{"201":{"description":""}},"security":[{"bearer":[]}],"summary":"OpenAI-compatible chat. stream:true is passed through as SSE.","tags":["AI"]}}},"info":{"title":"AgentLogin API","description":"AgentLogin antidetect browser platform. Humans sign in with Privy; agents use an agl_ API key. Deposit crypto to a unique address, then buy a plan from the balance. Built-in AI is proxied at /api/ai/v1.","version":"1.0.0","contact":{}},"tags":[],"servers":[],"components":{"securitySchemes":{"bearer":{"scheme":"bearer","bearerFormat":"JWT","type":"http"},"api-key":{"type":"apiKey","in":"header","name":"x-api-key"}},"schemas":{"PrivyLoginDto":{"type":"object","properties":{"accessToken":{"type":"string","description":"Privy access token from getAccessToken() (ES256 JWT, aud = Privy app ID)."},"identityToken":{"type":"string","description":"Privy identity token (useIdentityToken). Carries linked wallets, email, Google and Apple accounts."}},"required":["accessToken"]},"TotpDto":{"type":"object","properties":{"code":{"type":"string"},"ticket":{"type":"string"}},"required":["code"]},"DesktopLoginDto":{"type":"object","properties":{}},"RefreshDto":{"type":"object","properties":{}},"CreateDepositDto":{"type":"object","properties":{"chain":{"type":"string","enum":["base","arbitrum","optimism","polygon","bsc","ethereum"],"description":"Must be enabled (GET /api/v1/deposit-options)."},"asset":{"type":"string","enum":["USDC","USDT","ETH"]},"expectedCents":{"type":"number","description":"Amount the customer intends to deposit, in USD cents."},"ttlSeconds":{"type":"number","description":"Test-only invoice lifetime. Ignored unless ALLOW_TEST_TTL=1."}},"required":["chain","asset","expectedCents"]},"CreateKeyDto":{"type":"object","properties":{"name":{"type":"string"}},"required":["name"]},"CreateApgDepositDto":{"type":"object","properties":{"chain":{"type":"string","example":"base","description":"Chain name. GET /api/agl/v1/deposits/options lists what is accepted right now."},"asset":{"type":"string","example":"USDC","description":"USDC or USDT (ETH only where enabled)."},"amount_usd":{"type":"number","example":5,"description":"Optional amount in USD. Omit for an open-amount deposit: anything sent is credited."}},"required":["chain","asset"]},"AgentChallengeDto":{"type":"object","properties":{"address":{"type":"string","example":"0x8617E340B3D01FA5F11F306F4090FD50E238070D","description":"EVM address the agent controls."}},"required":["address"]},"AgentSignupDto":{"type":"object","properties":{"message":{"type":"string","description":"The exact message returned by POST /api/agl/v1/agents/challenge."},"signature":{"type":"string","description":"personal_sign (EIP-191) signature of the message."},"keyName":{"type":"string","example":"my-agent","description":"Label for the API key that is created."}},"required":["message","signature"]},"CreatePlanDto":{"type":"object","properties":{"code":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"priceCents":{"type":"number","description":"US cents per 30 days"},"yearlyPriceCents":{"type":"number","description":"US cents per 365 days (0 = 10 x monthly)"},"durationDays":{"type":"number"},"cloudProfiles":{"type":"number"},"localProfiles":{"type":"number"},"groupMembers":{"type":"number"},"loginSessions":{"type":"number"},"dailyCreateLimit":{"type":"number"},"hasAutomation":{"type":"boolean"},"hasAi":{"type":"boolean"},"aiDailyRequests":{"type":"number"},"aiDailyTokens":{"type":"number"},"isFree":{"type":"boolean"},"isActive":{"type":"boolean"},"sortOrder":{"type":"number"}},"required":["code","name","priceCents","durationDays","cloudProfiles","localProfiles","groupMembers","loginSessions","dailyCreateLimit"]},"UpdatePlanDto":{"type":"object","properties":{"code":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"priceCents":{"type":"number","description":"US cents per 30 days"},"yearlyPriceCents":{"type":"number","description":"US cents per 365 days (0 = 10 x monthly)"},"durationDays":{"type":"number"},"cloudProfiles":{"type":"number"},"localProfiles":{"type":"number"},"groupMembers":{"type":"number"},"loginSessions":{"type":"number"},"dailyCreateLimit":{"type":"number"},"hasAutomation":{"type":"boolean"},"hasAi":{"type":"boolean"},"aiDailyRequests":{"type":"number"},"aiDailyTokens":{"type":"number"},"isFree":{"type":"boolean"},"isActive":{"type":"boolean"},"sortOrder":{"type":"number"}}},"BuyPlanDto":{"type":"object","properties":{}},"ReportUsageDto":{"type":"object","properties":{}},"CreateFolderDto":{"type":"object","properties":{"name":{"type":"string"}},"required":["name"]},"AuthorizeLaunchDto":{"type":"object","properties":{"cloudProfileId":{"type":"number"},"deviceHash":{"type":"string"}},"required":["cloudProfileId"]},"CreateProfileDto":{"type":"object","properties":{"name":{"type":"string"},"folderId":{"type":"number"},"status":{"type":"string"},"note":{"type":"string"},"tags":{"type":"array","items":{"type":"string"}},"platform":{"type":"string"},"browser":{"type":"string"},"isCloud":{"type":"boolean"},"payload":{"type":"object","description":"Full fingerprint/proxy/cookies config"}},"required":["name"]},"ReconcileProfilesDto":{"type":"object","properties":{"cloudProfileIds":{"description":"Cloud profile IDs still present on this device","type":"array","items":{"type":"number"}},"localIds":{"description":"Local profile UUIDs still present on this device","type":"array","items":{"type":"string"}}}},"UpdateProfileDto":{"type":"object","properties":{}},"CreateWorkflowDto":{"type":"object","properties":{"localId":{"type":"string","description":"UUID workflow id from desktop app"},"name":{"type":"string"},"profileId":{"type":"string","description":"Local profile UUID on desktop"},"actions":{"type":"array","items":{"type":"object"}}},"required":["localId","name","actions"]},"UpdateWorkflowDto":{"type":"object","properties":{"localId":{"type":"string","description":"UUID workflow id from desktop app"},"name":{"type":"string"},"profileId":{"type":"string","description":"Local profile UUID on desktop"},"actions":{"type":"array","items":{"type":"object"}}}}}}}