{"openapi":"3.1.0","info":{"title":"Tickwire Control Plane","version":"0.1.0"},"paths":{"/accounts":{"get":{"summary":"List Accounts","operationId":"list_accounts_accounts_get","parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"auth-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auth-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Link Account","operationId":"link_account_accounts_post","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"auth-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auth-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateAccount"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/accounts/{account_id}":{"get":{"summary":"Get Account","operationId":"get_account_accounts__account_id__get","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","title":"Account Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"auth-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auth-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"summary":"Patch Account","operationId":"patch_account_accounts__account_id__patch","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","title":"Account Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"auth-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auth-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PatchAccount"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Unlink Account","operationId":"unlink_account_accounts__account_id__delete","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","title":"Account Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"auth-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auth-Token"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/private-servers/regions":{"get":{"summary":"Regions","operationId":"regions_private_servers_regions_get","parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"auth-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auth-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/private-servers":{"get":{"summary":"List Servers","operationId":"list_servers_private_servers_get","parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"auth-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auth-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Buy Server","operationId":"buy_server_private_servers_post","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"auth-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auth-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatePrivateServer"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/private-servers/{server_id}":{"get":{"summary":"Get Server","operationId":"get_server_private_servers__server_id__get","parameters":[{"name":"server_id","in":"path","required":true,"schema":{"type":"string","title":"Server Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"auth-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auth-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"summary":"Resize Server","operationId":"resize_server_private_servers__server_id__patch","parameters":[{"name":"server_id","in":"path","required":true,"schema":{"type":"string","title":"Server Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"auth-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auth-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PatchPrivateServer"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Cancel Server","operationId":"cancel_server_private_servers__server_id__delete","parameters":[{"name":"server_id","in":"path","required":true,"schema":{"type":"string","title":"Server Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"auth-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auth-Token"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/private-servers/{server_id}/accounts":{"post":{"summary":"Add Server Account","operationId":"add_server_account_private_servers__server_id__accounts_post","parameters":[{"name":"server_id","in":"path","required":true,"schema":{"type":"string","title":"Server Id"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"auth-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auth-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrivateServerAddAccount"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/private-servers/{server_id}/accounts/{account_id}":{"delete":{"summary":"Remove Server Account","operationId":"remove_server_account_private_servers__server_id__accounts__account_id__delete","parameters":[{"name":"server_id","in":"path","required":true,"schema":{"type":"string","title":"Server Id"}},{"name":"account_id","in":"path","required":true,"schema":{"type":"string","title":"Account Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"auth-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auth-Token"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/readonly-keys":{"get":{"summary":"List Ro Keys","operationId":"list_ro_keys_readonly_keys_get","parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"auth-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auth-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Create Ro Key","description":"Create a read-only key. ``key`` is shown once and can't be shown again. With\n``Idempotency-Key`` a replay creates nothing and answers ``key: null``\nwith a ``key_notice`` saying it was already shown.","operationId":"create_ro_key_readonly_keys_post","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"auth-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auth-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateReadonlyKey"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/readonly-keys/{key_id}":{"get":{"summary":"Get Ro Key","operationId":"get_ro_key_readonly_keys__key_id__get","parameters":[{"name":"key_id","in":"path","required":true,"schema":{"type":"string","title":"Key Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"auth-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auth-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"summary":"Patch Ro Key","operationId":"patch_ro_key_readonly_keys__key_id__patch","parameters":[{"name":"key_id","in":"path","required":true,"schema":{"type":"string","title":"Key Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"auth-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auth-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PatchReadonlyKey"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Delete Ro Key","operationId":"delete_ro_key_readonly_keys__key_id__delete","parameters":[{"name":"key_id","in":"path","required":true,"schema":{"type":"string","title":"Key Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"auth-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auth-Token"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/readonly-keys/{key_id}/rotate":{"post":{"summary":"Rotate Ro Key","description":"Issue a new value for a read-only key (same id, scope and accounts);\nthe old value stops working. The new ``key`` is shown once\n(``key_notice``). With ``Idempotency-Key`` a replay rotates nothing and\nanswers ``key: null`` with a ``key_notice`` saying it was already shown;\nthe same ``Idempotency-Key`` on another key's rotate answers ``409\nidempotency_conflict``.","operationId":"rotate_ro_key_readonly_keys__key_id__rotate_post","parameters":[{"name":"key_id","in":"path","required":true,"schema":{"type":"string","title":"Key Id"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"auth-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auth-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/subscription":{"get":{"summary":"Subscription","operationId":"subscription_subscription_get","parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"auth-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auth-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/wallet":{"get":{"summary":"Wallet","operationId":"wallet_wallet_get","parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"auth-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auth-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/wallet/assets":{"get":{"summary":"Wallet Assets","operationId":"wallet_assets_wallet_assets_get","parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"auth-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auth-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/wallet/topups":{"get":{"summary":"List Topups","operationId":"list_topups_wallet_topups_get","parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"auth-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auth-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/wallet/topup":{"post":{"summary":"Create Topup","operationId":"create_topup_wallet_topup_post","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"auth-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auth-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateTopup"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/wallet/topup/{topup_id}":{"get":{"summary":"Get Topup","operationId":"get_topup_wallet_topup__topup_id__get","parameters":[{"name":"topup_id","in":"path","required":true,"schema":{"type":"string","title":"Topup Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"auth-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auth-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/wallet/topup/{topup_id}/confirm":{"post":{"summary":"Confirm Topup","operationId":"confirm_topup_wallet_topup__topup_id__confirm_post","parameters":[{"name":"topup_id","in":"path","required":true,"schema":{"type":"string","title":"Topup Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"auth-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auth-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/webhooks":{"get":{"summary":"List Webhooks","operationId":"list_webhooks_webhooks_get","parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"auth-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auth-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Create Webhook","operationId":"create_webhook_webhooks_post","parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"auth-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auth-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateWebhook"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/webhooks/{webhook_id}":{"get":{"summary":"Get Webhook","operationId":"get_webhook_webhooks__webhook_id__get","parameters":[{"name":"webhook_id","in":"path","required":true,"schema":{"type":"string","title":"Webhook Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"auth-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auth-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Delete Webhook","operationId":"delete_webhook_webhooks__webhook_id__delete","parameters":[{"name":"webhook_id","in":"path","required":true,"schema":{"type":"string","title":"Webhook Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"auth-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auth-Token"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["webhooks"],"summary":"Patch Endpoint","description":"Change the event filter (``enabledEvents``), URL or description.","operationId":"patch_endpoint_webhooks__webhook_id__patch","parameters":[{"name":"webhook_id","in":"path","required":true,"schema":{"type":"string","title":"Webhook Id"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}},{"name":"X-Actor","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor"}},{"name":"X-Reason","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Reason"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"auth-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auth-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PatchEndpoint"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/meta/whoami":{"get":{"tags":["meta"],"summary":"Whoami","operationId":"whoami_meta_whoami_get","parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"auth-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auth-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Whoami Meta Whoami Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/users/current/tokens":{"post":{"tags":["tokens"],"summary":"Create Token","operationId":"create_token_users_current_tokens_post","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"auth-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auth-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewToken"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["tokens"],"summary":"List Tokens","operationId":"list_tokens_users_current_tokens_get","parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"auth-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auth-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/users/current/tokens/{token_id}":{"get":{"tags":["tokens"],"summary":"Get Token","operationId":"get_token_users_current_tokens__token_id__get","parameters":[{"name":"token_id","in":"path","required":true,"schema":{"type":"string","title":"Token Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"auth-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auth-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["tokens"],"summary":"Patch Token","operationId":"patch_token_users_current_tokens__token_id__patch","parameters":[{"name":"token_id","in":"path","required":true,"schema":{"type":"string","title":"Token Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"auth-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auth-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PatchToken"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["tokens"],"summary":"Revoke Token","operationId":"revoke_token_users_current_tokens__token_id__delete","parameters":[{"name":"token_id","in":"path","required":true,"schema":{"type":"string","title":"Token Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"auth-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auth-Token"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/users/current/narrow-down-auth-token":{"post":{"tags":["tokens"],"summary":"Narrow Down","operationId":"narrow_down_users_current_narrow_down_auth_token_post","parameters":[{"name":"validity-in-hours","in":"query","required":false,"schema":{"type":"number","exclusiveMinimum":0,"default":24,"title":"Validity-In-Hours"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"auth-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auth-Token"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Optional; replays the first answer","title":"Idempotency-Key"},"description":"Optional; replays the first answer"},{"name":"X-Actor","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Who is acting (audit log)","title":"X-Actor"},"description":"Who is acting (audit log)"},{"name":"X-Reason","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why (audit log; percent-encode non-ASCII)","title":"X-Reason"},"description":"Why (audit log; percent-encode non-ASCII)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/access-rule-manifest":{"get":{"tags":["tokens"],"summary":"Access Rule Manifest","operationId":"access_rule_manifest_access_rule_manifest_get","parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"auth-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auth-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dashboard/admin/affiliates":{"get":{"tags":["admin"],"summary":"Admin Affiliates","operationId":"admin_affiliates_dashboard_admin_affiliates_get","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Tickwire-CSRF","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Tickwire-Csrf"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dashboard/admin/affiliates/{affiliate_id}":{"get":{"tags":["admin"],"summary":"Admin Affiliate","operationId":"admin_affiliate_dashboard_admin_affiliates__affiliate_id__get","parameters":[{"name":"affiliate_id","in":"path","required":true,"schema":{"type":"string","title":"Affiliate Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Tickwire-CSRF","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Tickwire-Csrf"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dashboard/admin/affiliates/{affiliate_id}/pause":{"post":{"tags":["admin"],"summary":"Admin Affiliate Pause","operationId":"admin_affiliate_pause_dashboard_admin_affiliates__affiliate_id__pause_post","parameters":[{"name":"affiliate_id","in":"path","required":true,"schema":{"type":"string","title":"Affiliate Id"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Tickwire-CSRF","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Tickwire-Csrf"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ReasonBody"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dashboard/admin/affiliates/{affiliate_id}/resume":{"post":{"tags":["admin"],"summary":"Admin Affiliate Resume","operationId":"admin_affiliate_resume_dashboard_admin_affiliates__affiliate_id__resume_post","parameters":[{"name":"affiliate_id","in":"path","required":true,"schema":{"type":"string","title":"Affiliate Id"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Tickwire-CSRF","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Tickwire-Csrf"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ReasonBody"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dashboard/admin/affiliates/{affiliate_id}/remove":{"post":{"tags":["admin"],"summary":"Admin Affiliate Remove","operationId":"admin_affiliate_remove_dashboard_admin_affiliates__affiliate_id__remove_post","parameters":[{"name":"affiliate_id","in":"path","required":true,"schema":{"type":"string","title":"Affiliate Id"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Tickwire-CSRF","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Tickwire-Csrf"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ReasonBody"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dashboard/admin/affiliates/{affiliate_id}/payouts":{"post":{"tags":["admin"],"summary":"Admin Affiliate Payout","operationId":"admin_affiliate_payout_dashboard_admin_affiliates__affiliate_id__payouts_post","parameters":[{"name":"affiliate_id","in":"path","required":true,"schema":{"type":"string","title":"Affiliate Id"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Tickwire-CSRF","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Tickwire-Csrf"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayoutBody"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dashboard/admin/codes":{"get":{"tags":["admin"],"summary":"List Codes","operationId":"list_codes_dashboard_admin_codes_get","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Tickwire-CSRF","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Tickwire-Csrf"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["admin"],"summary":"Create Code","operationId":"create_code_dashboard_admin_codes_post","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Tickwire-CSRF","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Tickwire-Csrf"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateCode"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dashboard/admin/codes/{code}/deactivate":{"post":{"tags":["admin"],"summary":"Deactivate Code","operationId":"deactivate_code_dashboard_admin_codes__code__deactivate_post","parameters":[{"name":"code","in":"path","required":true,"schema":{"type":"string","title":"Code"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Tickwire-CSRF","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Tickwire-Csrf"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dashboard/admin/codes/{code}/activate":{"post":{"tags":["admin"],"summary":"Activate Code","operationId":"activate_code_dashboard_admin_codes__code__activate_post","parameters":[{"name":"code","in":"path","required":true,"schema":{"type":"string","title":"Code"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Tickwire-CSRF","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Tickwire-Csrf"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dashboard/admin/customers":{"get":{"tags":["admin"],"summary":"Customers","operationId":"customers_dashboard_admin_customers_get","parameters":[{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Q"}},{"name":"verified","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Verified"}},{"name":"tenant","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Tenant"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":100,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","maximum":1000000,"minimum":0,"default":0,"title":"Offset"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Tickwire-CSRF","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Tickwire-Csrf"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dashboard/admin/tenants":{"get":{"tags":["admin"],"summary":"Tenants","operationId":"tenants_dashboard_admin_tenants_get","parameters":[{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Q"}},{"name":"billing","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Billing"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":100,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","maximum":1000000,"minimum":0,"default":0,"title":"Offset"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Tickwire-CSRF","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Tickwire-Csrf"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dashboard/admin/tenants/{tenant_id}":{"get":{"tags":["admin"],"summary":"Tenant Detail","operationId":"tenant_detail_dashboard_admin_tenants__tenant_id__get","parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","title":"Tenant Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Tickwire-CSRF","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Tickwire-Csrf"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dashboard/admin/accounts/{account_id}/activity":{"get":{"tags":["admin"],"summary":"Account Activity","operationId":"account_activity_dashboard_admin_accounts__account_id__activity_get","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","title":"Account Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Tickwire-CSRF","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Tickwire-Csrf"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dashboard/admin/servers":{"get":{"tags":["admin"],"summary":"Servers","operationId":"servers_dashboard_admin_servers_get","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Tickwire-CSRF","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Tickwire-Csrf"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dashboard/admin/audit":{"get":{"tags":["admin"],"summary":"Audit","operationId":"audit_dashboard_admin_audit_get","parameters":[{"name":"action","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Action"}},{"name":"tenant","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Tenant"}},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Q"}},{"name":"before","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"title":"Before"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":100,"title":"Limit"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Tickwire-CSRF","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Tickwire-Csrf"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dashboard/admin/access":{"get":{"tags":["admin"],"summary":"Access","operationId":"access_dashboard_admin_access_get","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Tickwire-CSRF","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Tickwire-Csrf"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dashboard/admin/overview":{"get":{"tags":["admin"],"summary":"Overview","operationId":"overview_dashboard_admin_overview_get","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Tickwire-CSRF","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Tickwire-Csrf"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dashboard/admin/accounts":{"get":{"tags":["admin"],"summary":"List Accounts","operationId":"list_accounts_dashboard_admin_accounts_get","parameters":[{"name":"category","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Category"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":2000,"minimum":1,"default":500,"title":"Limit"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Tickwire-CSRF","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Tickwire-Csrf"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dashboard/admin/accounts/{account_id}":{"get":{"tags":["admin"],"summary":"Account Detail","operationId":"account_detail_dashboard_admin_accounts__account_id__get","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","title":"Account Id"}},{"name":"live","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Live"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Tickwire-CSRF","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Tickwire-Csrf"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dashboard/admin/traction":{"get":{"tags":["admin"],"summary":"Traction View","operationId":"traction_view_dashboard_admin_traction_get","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","maximum":90,"minimum":1,"default":30,"title":"Days"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Tickwire-CSRF","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Tickwire-Csrf"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dashboard/admin/traction.csv":{"get":{"tags":["admin"],"summary":"Traction Csv","operationId":"traction_csv_dashboard_admin_traction_csv_get","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","maximum":90,"minimum":1,"default":30,"title":"Days"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Tickwire-CSRF","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Tickwire-Csrf"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dashboard/affiliate":{"get":{"tags":["dashboard: affiliate"],"summary":"Affiliate Home","operationId":"affiliate_home_dashboard_affiliate_get","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Tickwire-CSRF","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Tickwire-Csrf"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["dashboard: affiliate"],"summary":"Affiliate Join","operationId":"affiliate_join_dashboard_affiliate_post","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Tickwire-CSRF","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Tickwire-Csrf"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JoinBody"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["dashboard: affiliate"],"summary":"Affiliate Update","operationId":"affiliate_update_dashboard_affiliate_patch","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Tickwire-CSRF","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Tickwire-Csrf"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dashboard/affiliate/referral":{"post":{"tags":["dashboard: affiliate"],"summary":"Affiliate Referral","operationId":"affiliate_referral_dashboard_affiliate_referral_post","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Tickwire-CSRF","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Tickwire-Csrf"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReferralBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/agent-keys":{"post":{"tags":["ai-agents-admin"],"summary":"Create Agent Key","description":"Create an agent key scoped to accounts. The ``key`` is shown once.\n\n``Idempotency-Key`` is honoured: a replay returns the same key record\nwithout minting another key, with ``key: null`` and a ``key_notice``\nsaying it was already shown.","operationId":"create_agent_key_v1_agent_keys_post","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}},{"name":"X-Actor","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor"}},{"name":"X-Reason","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Reason"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"auth-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auth-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["ai-agents-admin"],"summary":"List Agent Keys","description":"Agent keys of this tenant (never the key values), oldest first.\nCursor-paginated: ``{data, has_more, next_cursor}``.","operationId":"list_agent_keys_v1_agent_keys_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"description":"Page size, 1..500 (default 100).","default":100,"title":"Limit"},"description":"Page size, 1..500 (default 100)."},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":1024},{"type":"null"}],"description":"The next_cursor of the previous page, unchanged.","title":"Cursor"},"description":"The next_cursor of the previous page, unchanged."},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"auth-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auth-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/agent-keys/{key_id}":{"get":{"tags":["ai-agents-admin"],"summary":"Get Agent Key","description":"One agent key record.","operationId":"get_agent_key_v1_agent_keys__key_id__get","parameters":[{"name":"key_id","in":"path","required":true,"schema":{"type":"string","title":"Key Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"auth-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auth-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["ai-agents-admin"],"summary":"Patch Agent Key","description":"Rename, re-scope or flip read-only.","operationId":"patch_agent_key_v1_agent_keys__key_id__patch","parameters":[{"name":"key_id","in":"path","required":true,"schema":{"type":"string","title":"Key Id"}},{"name":"X-Actor","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor"}},{"name":"X-Reason","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Reason"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"auth-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auth-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["ai-agents-admin"],"summary":"Revoke Agent Key","description":"Revoke an agent key (irreversible).","operationId":"revoke_agent_key_v1_agent_keys__key_id__delete","parameters":[{"name":"key_id","in":"path","required":true,"schema":{"type":"string","title":"Key Id"}},{"name":"X-Actor","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor"}},{"name":"X-Reason","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Reason"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"auth-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auth-Token"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/agent-keys/{key_id}/kill-switch":{"put":{"tags":["ai-agents-admin"],"summary":"Set Key Kill Switch","description":"Engage or release the kill switch of one agent key.","operationId":"set_key_kill_switch_v1_agent_keys__key_id__kill_switch_put","parameters":[{"name":"key_id","in":"path","required":true,"schema":{"type":"string","title":"Key Id"}},{"name":"X-Actor","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor"}},{"name":"X-Reason","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Reason"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"auth-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auth-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/agent-kill-switches":{"get":{"tags":["ai-agents-admin"],"summary":"List Kill Switches","description":"Engaged account kill switches (agent-key switches are on each key), by\naccount id. Cursor-paginated: ``{accounts, has_more, next_cursor}``.","operationId":"list_kill_switches_v1_agent_kill_switches_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"description":"Page size, 1..500 (default 100).","default":100,"title":"Limit"},"description":"Page size, 1..500 (default 100)."},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":1024},{"type":"null"}],"description":"The next_cursor of the previous page, unchanged.","title":"Cursor"},"description":"The next_cursor of the previous page, unchanged."},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"auth-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auth-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/agent-kill-switches/accounts/{account_id}":{"put":{"tags":["ai-agents-admin"],"summary":"Set Account Kill Switch","description":"Engage or release the agent kill switch of one account.","operationId":"set_account_kill_switch_v1_agent_kill_switches_accounts__account_id__put","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","title":"Account Id"}},{"name":"X-Actor","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor"}},{"name":"X-Reason","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Reason"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"auth-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auth-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/pretrade-hooks":{"post":{"tags":["ai-agents-admin"],"summary":"Create Hook","description":"Register a pre-trade decision hook. The ``secret`` is shown once.\n\n``Idempotency-Key`` is honoured: a replay returns the same hook without\nregistering another, with ``secret: null`` and a ``secret_notice``.","operationId":"create_hook_v1_pretrade_hooks_post","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}},{"name":"X-Actor","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor"}},{"name":"X-Reason","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Reason"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"auth-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auth-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["ai-agents-admin"],"summary":"List Hooks","description":"This tenant's hooks (never the secrets), oldest first.\nCursor-paginated: ``{data, has_more, next_cursor}``.","operationId":"list_hooks_v1_pretrade_hooks_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"description":"Page size, 1..500 (default 100).","default":100,"title":"Limit"},"description":"Page size, 1..500 (default 100)."},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":1024},{"type":"null"}],"description":"The next_cursor of the previous page, unchanged.","title":"Cursor"},"description":"The next_cursor of the previous page, unchanged."},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"auth-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auth-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/pretrade-hooks/{hook_id}":{"get":{"tags":["ai-agents-admin"],"summary":"Get Hook","description":"One hook.","operationId":"get_hook_v1_pretrade_hooks__hook_id__get","parameters":[{"name":"hook_id","in":"path","required":true,"schema":{"type":"string","title":"Hook Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"auth-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auth-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["ai-agents-admin"],"summary":"Patch Hook","description":"Change url, applies_to, fail_mode, timeout, hold TTL or enabled.","operationId":"patch_hook_v1_pretrade_hooks__hook_id__patch","parameters":[{"name":"hook_id","in":"path","required":true,"schema":{"type":"string","title":"Hook Id"}},{"name":"X-Actor","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor"}},{"name":"X-Reason","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Reason"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"auth-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auth-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["ai-agents-admin"],"summary":"Delete Hook","description":"Remove a hook. Its pending holds stay pending until they expire.","operationId":"delete_hook_v1_pretrade_hooks__hook_id__delete","parameters":[{"name":"hook_id","in":"path","required":true,"schema":{"type":"string","title":"Hook Id"}},{"name":"X-Actor","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor"}},{"name":"X-Reason","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Reason"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"auth-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auth-Token"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/pretrade-hooks/{hook_id}/rotate-secret":{"post":{"tags":["ai-agents-admin"],"summary":"Rotate Hook Secret","description":"Issue a new signing secret (shown once); the old one stops working.\nWith ``Idempotency-Key`` a replay rotates nothing and answers ``secret:\nnull`` with a ``secret_notice``.","operationId":"rotate_hook_secret_v1_pretrade_hooks__hook_id__rotate_secret_post","parameters":[{"name":"hook_id","in":"path","required":true,"schema":{"type":"string","title":"Hook Id"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}},{"name":"X-Actor","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor"}},{"name":"X-Reason","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Reason"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"auth-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auth-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/pretrade-holds":{"get":{"tags":["ai-agents-admin"],"summary":"List Holds","description":"Holds, newest first (``created_at``, then ``id``). Cursor-paginated:\n``{data, has_more, next_cursor}``; the cursor is bound to ``status`` and\n``account_id``.","operationId":"list_holds_v1_pretrade_holds_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"account_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"description":"Page size, 1..500 (default 100).","default":100,"title":"Limit"},"description":"Page size, 1..500 (default 100)."},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":1024},{"type":"null"}],"description":"The next_cursor of the previous page, unchanged.","title":"Cursor"},"description":"The next_cursor of the previous page, unchanged."},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"auth-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auth-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/pretrade-holds/{hold_id}":{"get":{"tags":["ai-agents-admin"],"summary":"Get Hold","description":"One hold.","operationId":"get_hold_v1_pretrade_holds__hold_id__get","parameters":[{"name":"hold_id","in":"path","required":true,"schema":{"type":"string","title":"Hold Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"auth-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auth-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/pretrade-holds/{hold_id}/cancel":{"post":{"tags":["ai-agents-admin"],"summary":"Cancel Hold","description":"Owner override: reject a pending hold. Nothing is sent.","operationId":"cancel_hold_v1_pretrade_holds__hold_id__cancel_post","parameters":[{"name":"hold_id","in":"path","required":true,"schema":{"type":"string","title":"Hold Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"auth-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auth-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/agent-audit":{"get":{"tags":["ai-agents-admin"],"summary":"Agent Audit","description":"The agent audit log, newest first (by ``seq``). Cursor-paginated:\n``{entries, has_more, next_cursor}``; ``before`` (a ``seq``) still works.","operationId":"agent_audit_v1_agent_audit_get","parameters":[{"name":"agent_key_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Key Id"}},{"name":"account_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Id"}},{"name":"before","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"title":"Before"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"description":"Page size, 1..500 (default 100).","default":100,"title":"Limit"},"description":"Page size, 1..500 (default 100)."},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":1024},{"type":"null"}],"description":"The next_cursor of the previous page, unchanged.","title":"Cursor"},"description":"The next_cursor of the previous page, unchanged."},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"auth-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auth-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/accounts/{account_id}/pretrade":{"get":{"tags":["ai-agents-admin"],"summary":"Internal Pretrade","description":"Whether direct trades on this account must go through ``/v1/execution``.","operationId":"internal_pretrade_internal_accounts__account_id__pretrade_get","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","title":"Account Id"}},{"name":"X-Internal-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Internal-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/agent-hooks/reseal":{"post":{"tags":["ai-agents-admin"],"summary":"Internal Reseal","description":"Re-encrypt all hook secrets under the current key (rotation step 3).","operationId":"internal_reseal_internal_agent_hooks_reseal_post","parameters":[{"name":"X-Internal-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Internal-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/agent/me":{"get":{"tags":["ai-agents"],"summary":"Agent Me","description":"This key's permissions, kill switches and applicable hooks.","operationId":"agent_me_v1_agent_me_get","parameters":[{"name":"X-Tickwire-Agent-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Tickwire-Agent-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/agent/accounts":{"get":{"tags":["ai-agents"],"summary":"Agent Accounts","description":"Accounts this key may use, by account id. Cursor-paginated:\n``{accounts, has_more, next_cursor}``.","operationId":"agent_accounts_v1_agent_accounts_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"description":"Page size, 1..500 (default 100).","default":100,"title":"Limit"},"description":"Page size, 1..500 (default 100)."},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":1024},{"type":"null"}],"description":"The next_cursor of the previous page, unchanged.","title":"Cursor"},"description":"The next_cursor of the previous page, unchanged."},{"name":"X-Tickwire-Agent-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Tickwire-Agent-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/agent/accounts/{account_id}/health":{"get":{"tags":["ai-agents"],"summary":"Agent Health","description":"Truthful health with evidence (connected / disconnected / unknown).","operationId":"agent_health_v1_agent_accounts__account_id__health_get","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","title":"Account Id"}},{"name":"X-Tickwire-Agent-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Tickwire-Agent-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/agent/accounts/{account_id}/account-information":{"get":{"tags":["ai-agents"],"summary":"Agent Account Info","description":"Balance, equity, margin… as reported by the broker (same shape as ``/users/current/…``).","operationId":"agent_account_info_v1_agent_accounts__account_id__account_information_get","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","title":"Account Id"}},{"name":"X-Tickwire-Agent-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Tickwire-Agent-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/agent/accounts/{account_id}/positions":{"get":{"tags":["ai-agents"],"summary":"Agent Positions","description":"Open positions (same shape as ``/users/current/accounts/{id}/positions``).","operationId":"agent_positions_v1_agent_accounts__account_id__positions_get","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","title":"Account Id"}},{"name":"X-Tickwire-Agent-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Tickwire-Agent-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/agent/accounts/{account_id}/orders":{"get":{"tags":["ai-agents"],"summary":"Agent Orders","description":"Pending orders (same shape as ``/users/current/accounts/{id}/orders``).","operationId":"agent_orders_v1_agent_accounts__account_id__orders_get","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","title":"Account Id"}},{"name":"X-Tickwire-Agent-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Tickwire-Agent-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/agent/accounts/{account_id}/symbols/{symbol}/current-price":{"get":{"tags":["ai-agents"],"summary":"Agent Price","description":"Current bid/ask with broker time.","operationId":"agent_price_v1_agent_accounts__account_id__symbols__symbol__current_price_get","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","title":"Account Id"}},{"name":"symbol","in":"path","required":true,"schema":{"type":"string","title":"Symbol"}},{"name":"X-Tickwire-Agent-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Tickwire-Agent-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/agent/accounts/{account_id}/symbols/{symbol}/specification":{"get":{"tags":["ai-agents"],"summary":"Agent Spec","description":"Symbol specification: volume limits and step, digits, contract size…","operationId":"agent_spec_v1_agent_accounts__account_id__symbols__symbol__specification_get","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","title":"Account Id"}},{"name":"symbol","in":"path","required":true,"schema":{"type":"string","title":"Symbol"}},{"name":"X-Tickwire-Agent-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Tickwire-Agent-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/agent/accounts/{account_id}/symbols/{symbol}/current-candles/{timeframe}":{"get":{"tags":["ai-agents"],"summary":"Agent Current Candle","description":"Current open/forming candle for a timeframe (e.g. 1m, 5m, 15m, 1h, 4h, 1d).","operationId":"agent_current_candle_v1_agent_accounts__account_id__symbols__symbol__current_candles__timeframe__get","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","title":"Account Id"}},{"name":"symbol","in":"path","required":true,"schema":{"type":"string","title":"Symbol"}},{"name":"timeframe","in":"path","required":true,"schema":{"type":"string","title":"Timeframe"}},{"name":"X-Tickwire-Agent-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Tickwire-Agent-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/agent/accounts/{account_id}/symbols/{symbol}/candles":{"get":{"tags":["ai-agents"],"summary":"Agent Candles","description":"Historical candles for technical analysis and indicator calculations (e.g. SMA, EMA).","operationId":"agent_candles_v1_agent_accounts__account_id__symbols__symbol__candles_get","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","title":"Account Id"}},{"name":"symbol","in":"path","required":true,"schema":{"type":"string","title":"Symbol"}},{"name":"timeframe","in":"query","required":false,"schema":{"type":"string","default":"1m","title":"Timeframe"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"default":50,"title":"Limit"}},{"name":"start_time","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Start Time"}},{"name":"X-Tickwire-Agent-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Tickwire-Agent-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/agent/accounts/{account_id}/history-deals":{"get":{"tags":["ai-agents"],"summary":"Agent Deals","description":"Deals in a bounded window (default last 24 h, max 31 days).","operationId":"agent_deals_v1_agent_accounts__account_id__history_deals_get","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","title":"Account Id"}},{"name":"start_time","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Start Time"}},{"name":"end_time","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"End Time"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":100,"title":"Limit"}},{"name":"X-Tickwire-Agent-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Tickwire-Agent-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/agent/accounts/{account_id}/trade":{"post":{"tags":["ai-agents"],"summary":"Agent Trade","description":"Place, modify, close or cancel a trade. Each trade is checked against the\nkey's limits, the pre-trade hooks and the kill switches before it is sent,\nand is recorded in the audit trail.","operationId":"agent_trade_v1_agent_accounts__account_id__trade_post","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","title":"Account Id"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}},{"name":"X-Reason","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Reason"}},{"name":"X-Tickwire-Agent-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Tickwire-Agent-Key"}}],"requestBody":{"content":{"application/json":{"schema":{"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/agent/requests/{idempotency_key}":{"get":{"tags":["ai-agents"],"summary":"Agent Request Status","description":"What happened to the trade sent with this idempotency key.","operationId":"agent_request_status_v1_agent_requests__idempotency_key__get","parameters":[{"name":"idempotency_key","in":"path","required":true,"schema":{"type":"string","title":"Idempotency Key"}},{"name":"X-Tickwire-Agent-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Tickwire-Agent-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/agent/audit":{"get":{"tags":["ai-agents"],"summary":"Agent Own Audit","description":"This key's own audit entries, newest first. Cursor-paginated:\n``{entries, has_more, next_cursor}``.","operationId":"agent_own_audit_v1_agent_audit_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"description":"Page size, 1..500 (default 50).","default":50,"title":"Limit"},"description":"Page size, 1..500 (default 50)."},{"name":"before","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"title":"Before"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":1024},{"type":"null"}],"description":"The next_cursor of the previous page, unchanged.","title":"Cursor"},"description":"The next_cursor of the previous page, unchanged."},{"name":"X-Tickwire-Agent-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Tickwire-Agent-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/pretrade-holds/{hold_id}/release":{"post":{"tags":["ai-agents"],"summary":"Release Hold","description":"Approve or reject a hold; signed with the holding hook's secret.","operationId":"release_hold_v1_pretrade_holds__hold_id__release_post","parameters":[{"name":"hold_id","in":"path","required":true,"schema":{"type":"string","title":"Hold Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/execution/accounts/{account_id}/trade":{"post":{"tags":["ai-agents"],"summary":"Guarded Trade","description":"Trade with an ordinary API key under the same checks agent keys get:\npre-trade hooks with ``applies_to: all``, kill switches and the audit\ntrail. Same body and answers as the agent trade route.","operationId":"guarded_trade_v1_execution_accounts__account_id__trade_post","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","title":"Account Id"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}},{"name":"X-Reason","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Reason"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"auth-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auth-Token"}}],"requestBody":{"content":{"application/json":{"schema":{"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/agent/accounts/{account_id}/snapshot":{"get":{"tags":["ai-agents"],"summary":"Agent Snapshot","description":"Account information, positions, orders, health and server time in one\nread, with ``as_of`` and per-section freshness.","operationId":"agent_snapshot_v1_agent_accounts__account_id__snapshot_get","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","title":"Account Id"}},{"name":"X-Tickwire-Agent-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Tickwire-Agent-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing":{"get":{"tags":["billing"],"summary":"Billing","operationId":"billing_billing_get","parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"auth-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auth-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/upgrade/quote":{"get":{"tags":["billing"],"summary":"Upgrade Quote","operationId":"upgrade_quote_billing_upgrade_quote_get","parameters":[{"name":"accounts","in":"query","required":true,"schema":{"type":"integer","maximum":100000,"minimum":1,"title":"Accounts"}},{"name":"own_address","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Own Address"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"auth-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auth-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/upgrade":{"post":{"tags":["billing"],"summary":"Upgrade","operationId":"upgrade_billing_upgrade_post","parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"auth-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auth-Token"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Optional; replays the first answer","title":"Idempotency-Key"},"description":"Optional; replays the first answer"},{"name":"X-Actor","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Who is acting (audit log)","title":"X-Actor"},"description":"Who is acting (audit log)"},{"name":"X-Reason","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why (audit log; percent-encode non-ASCII)","title":"X-Reason"},"description":"Why (audit log; percent-encode non-ASCII)"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpgradeBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api-version":{"get":{"tags":["api version"],"summary":"Get Api Version","description":"The organisation's pinned API version, the latest one and every supported one.","operationId":"get_api_version_api_version_get","parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"auth-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auth-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["api version"],"summary":"Set Api Version","description":"Pin the organisation to ``apiVersion`` (owner or admin credential; audited).","operationId":"set_api_version_api_version_post","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}},{"name":"X-Actor","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor"}},{"name":"X-Reason","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Reason"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"auth-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auth-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PinBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dashboard/api-version":{"get":{"tags":["api version"],"summary":"Dashboard Get Api Version","description":"The organisation's pinned API version (any member).","operationId":"dashboard_get_api_version_dashboard_api_version_get","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Tickwire-CSRF","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Tickwire-Csrf"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["api version"],"summary":"Dashboard Set Api Version","description":"Pin the organisation to ``apiVersion`` (owners and admins; audited).","operationId":"dashboard_set_api_version_dashboard_api_version_post","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}},{"name":"X-Actor","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor"}},{"name":"X-Reason","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Reason"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Tickwire-CSRF","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Tickwire-Csrf"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PinBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dashboard/auth/email-links":{"post":{"tags":["dashboard: auth"],"summary":"Email Link","description":"Email a Firebase sign-in, verify or reset link that opens on our own domain.","operationId":"email_link_dashboard_auth_email_links_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailLinkBody"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dashboard/billing":{"get":{"tags":["dashboard: billing"],"summary":"Billing Home","operationId":"billing_home_dashboard_billing_get","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Tickwire-CSRF","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Tickwire-Csrf"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dashboard/billing/pricing":{"get":{"tags":["dashboard: billing"],"summary":"Pricing","operationId":"pricing_dashboard_billing_pricing_get","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Tickwire-CSRF","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Tickwire-Csrf"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dashboard/billing/quote":{"get":{"tags":["dashboard: billing"],"summary":"Quote","operationId":"quote_dashboard_billing_quote_get","parameters":[{"name":"accounts","in":"query","required":true,"schema":{"type":"integer","maximum":100000,"minimum":0,"title":"Accounts"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Tickwire-CSRF","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Tickwire-Csrf"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dashboard/billing/usage":{"get":{"tags":["dashboard: billing"],"summary":"Usage","operationId":"usage_dashboard_billing_usage_get","parameters":[{"name":"from","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"From"}},{"name":"to","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"To"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Tickwire-CSRF","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Tickwire-Csrf"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dashboard/billing/checkout":{"post":{"tags":["dashboard: billing"],"summary":"Checkout","operationId":"checkout_dashboard_billing_checkout_post","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Tickwire-CSRF","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Tickwire-Csrf"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckoutBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dashboard/billing/portal":{"post":{"tags":["dashboard: billing"],"summary":"Portal","operationId":"portal_dashboard_billing_portal_post","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Tickwire-CSRF","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Tickwire-Csrf"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dashboard/billing/refresh":{"post":{"tags":["dashboard: billing"],"summary":"Refresh","operationId":"refresh_dashboard_billing_refresh_post","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Tickwire-CSRF","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Tickwire-Csrf"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dashboard/billing/dedicated-ips":{"put":{"tags":["dashboard: billing"],"summary":"Dedicated Ips","operationId":"dedicated_ips_dashboard_billing_dedicated_ips_put","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Tickwire-CSRF","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Tickwire-Csrf"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DedicatedIpsBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dashboard/billing/cancel":{"post":{"tags":["dashboard: billing"],"summary":"Cancel","operationId":"cancel_dashboard_billing_cancel_post","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Tickwire-CSRF","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Tickwire-Csrf"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dashboard/billing/resume":{"post":{"tags":["dashboard: billing"],"summary":"Resume","operationId":"resume_dashboard_billing_resume_post","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Tickwire-CSRF","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Tickwire-Csrf"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/dev/billing/whop/clock":{"post":{"tags":["billing: webhooks & jobs"],"summary":"Dev Clock","description":"Dev only: move the billing clock forward (or reset it).","operationId":"dev_clock_internal_dev_billing_whop_clock_post","parameters":[{"name":"X-Internal-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Internal-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DevClock"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/dev/billing/whop/next-charge":{"post":{"tags":["billing: webhooks & jobs"],"summary":"Dev Next Charge","description":"Dev only: choose how the fake answers the next charge.","operationId":"dev_next_charge_internal_dev_billing_whop_next_charge_post","parameters":[{"name":"X-Internal-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Internal-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DevNextCharge"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/dev/billing/whop/ledger":{"get":{"tags":["billing: webhooks & jobs"],"summary":"Dev Ledger","description":"Dev only: the tenant's charge rows and the fake's payments for them.","operationId":"dev_ledger_internal_dev_billing_whop_ledger_get","parameters":[{"name":"tenant_id","in":"query","required":true,"schema":{"type":"string","title":"Tenant Id"}},{"name":"X-Internal-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Internal-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/dev/billing/whop/complete-checkout":{"post":{"tags":["billing: webhooks & jobs"],"summary":"Dev Complete Checkout","description":"Dev only: finish one of the fake's card checkouts.","operationId":"dev_complete_checkout_internal_dev_billing_whop_complete_checkout_post","parameters":[{"name":"X-Internal-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Internal-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DevCheckout"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/dev/billing/whop/payment-envelope":{"get":{"tags":["billing: webhooks & jobs"],"summary":"Dev Payment Envelope","description":"Dev only: the fake's webhook envelope for one payment.","operationId":"dev_payment_envelope_internal_dev_billing_whop_payment_envelope_get","parameters":[{"name":"payment_id","in":"query","required":true,"schema":{"type":"string","title":"Payment Id"}},{"name":"X-Internal-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Internal-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dashboard/billing/upgrade/quote":{"get":{"tags":["dashboard: billing"],"summary":"Upgrade Quote","operationId":"upgrade_quote_dashboard_billing_upgrade_quote_get","parameters":[{"name":"accounts","in":"query","required":true,"schema":{"type":"integer","maximum":100000,"minimum":1,"title":"Accounts"}},{"name":"own_address","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Own Address"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Tickwire-CSRF","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Tickwire-Csrf"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dashboard/billing/upgrade":{"post":{"tags":["dashboard: billing"],"summary":"Upgrade","operationId":"upgrade_dashboard_billing_upgrade_post","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Tickwire-CSRF","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Tickwire-Csrf"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpgradeBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/billing/meter/tick":{"post":{"tags":["billing: webhooks & jobs"],"summary":"Meter Tick","operationId":"meter_tick_internal_billing_meter_tick_post","parameters":[{"name":"X-Internal-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Internal-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/billing/run":{"post":{"tags":["billing: webhooks & jobs"],"summary":"Billing Run","operationId":"billing_run_internal_billing_run_post","parameters":[{"name":"X-Internal-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Internal-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/dev/outbox":{"get":{"tags":["billing: webhooks & jobs"],"summary":"Dev Outbox","operationId":"dev_outbox_internal_dev_outbox_get","parameters":[{"name":"to","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"To"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/dev/accounts/{account_id}/status":{"post":{"tags":["billing: webhooks & jobs"],"summary":"Dev Account Status","description":"Dev only: move an account's control-plane status (no host agents locally).","operationId":"dev_account_status_internal_dev_accounts__account_id__status_post","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","title":"Account Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DevStatus"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/webhooks/whop":{"post":{"tags":["billing: webhooks & jobs"],"summary":"Whop Webhook","operationId":"whop_webhook_billing_webhooks_whop_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/internal/dev/billing/whop/complete-setup":{"post":{"tags":["billing: webhooks & jobs"],"summary":"Dev Complete Setup","description":"Dev only (fake Whop): finish the tenant's pending card checkout and\ndeliver ``setup_intent.succeeded``.","operationId":"dev_complete_setup_internal_dev_billing_whop_complete_setup_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DevSetup"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/dev/billing/whop/payment-event":{"post":{"tags":["billing: webhooks & jobs"],"summary":"Dev Payment Event","description":"Dev only (fake Whop): settle the tenant's latest open charge as\n``paid`` or ``failed`` and deliver the payment webhook.","operationId":"dev_payment_event_internal_dev_billing_whop_payment_event_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DevPayment"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dashboard/agents":{"get":{"tags":["dashboard-ai-agents"],"summary":"Agents Overview","description":"Agent keys, hooks, and one kill-switch row per account.","operationId":"agents_overview_dashboard_agents_get","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Tickwire-CSRF","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Tickwire-Csrf"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dashboard/agent-keys":{"post":{"tags":["dashboard-ai-agents"],"summary":"Create Key","description":"New agent key; ``key`` is shown once.","operationId":"create_key_dashboard_agent_keys_post","parameters":[{"name":"X-Reason","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Reason"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Tickwire-CSRF","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Tickwire-Csrf"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dashboard/agent-keys/{key_id}":{"patch":{"tags":["dashboard-ai-agents"],"summary":"Patch Key","description":"Rename, re-scope or flip read-only.","operationId":"patch_key_dashboard_agent_keys__key_id__patch","parameters":[{"name":"key_id","in":"path","required":true,"schema":{"type":"string","title":"Key Id"}},{"name":"X-Reason","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Reason"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Tickwire-CSRF","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Tickwire-Csrf"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["dashboard-ai-agents"],"summary":"Revoke Key","description":"Revoke an agent key (irreversible).","operationId":"revoke_key_dashboard_agent_keys__key_id__delete","parameters":[{"name":"key_id","in":"path","required":true,"schema":{"type":"string","title":"Key Id"}},{"name":"X-Reason","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Reason"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Tickwire-CSRF","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Tickwire-Csrf"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dashboard/agent-keys/{key_id}/kill-switch":{"put":{"tags":["dashboard-ai-agents"],"summary":"Key Kill Switch","description":"Engage (members and up, reason required) or release (admins and owners).","operationId":"key_kill_switch_dashboard_agent_keys__key_id__kill_switch_put","parameters":[{"name":"key_id","in":"path","required":true,"schema":{"type":"string","title":"Key Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Tickwire-CSRF","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Tickwire-Csrf"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dashboard/agent-kill-switches/accounts/{account_id}":{"put":{"tags":["dashboard-ai-agents"],"summary":"Account Kill Switch","description":"Engage or release the agent kill switch of one account.","operationId":"account_kill_switch_dashboard_agent_kill_switches_accounts__account_id__put","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","title":"Account Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Tickwire-CSRF","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Tickwire-Csrf"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dashboard/pretrade-hooks":{"post":{"tags":["dashboard-ai-agents"],"summary":"Create Hook","description":"Register a hook. ``secret`` is shown once.","operationId":"create_hook_dashboard_pretrade_hooks_post","parameters":[{"name":"X-Reason","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Reason"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Tickwire-CSRF","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Tickwire-Csrf"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dashboard/pretrade-hooks/{hook_id}":{"patch":{"tags":["dashboard-ai-agents"],"summary":"Patch Hook","description":"Change url, applies_to, fail_mode, timeout, hold TTL or enabled.","operationId":"patch_hook_dashboard_pretrade_hooks__hook_id__patch","parameters":[{"name":"hook_id","in":"path","required":true,"schema":{"type":"string","title":"Hook Id"}},{"name":"X-Reason","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Reason"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Tickwire-CSRF","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Tickwire-Csrf"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["dashboard-ai-agents"],"summary":"Delete Hook","description":"Remove a hook. Its pending holds stay pending until they expire.","operationId":"delete_hook_dashboard_pretrade_hooks__hook_id__delete","parameters":[{"name":"hook_id","in":"path","required":true,"schema":{"type":"string","title":"Hook Id"}},{"name":"X-Reason","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Reason"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Tickwire-CSRF","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Tickwire-Csrf"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dashboard/pretrade-hooks/{hook_id}/rotate-secret":{"post":{"tags":["dashboard-ai-agents"],"summary":"Rotate Hook","description":"New secret, shown once; the old one stops working at once.","operationId":"rotate_hook_dashboard_pretrade_hooks__hook_id__rotate_secret_post","parameters":[{"name":"hook_id","in":"path","required":true,"schema":{"type":"string","title":"Hook Id"}},{"name":"X-Reason","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Reason"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Tickwire-CSRF","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Tickwire-Csrf"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dashboard/pretrade-holds":{"get":{"tags":["dashboard-ai-agents"],"summary":"List Holds","description":"Held orders, newest first.","operationId":"list_holds_dashboard_pretrade_holds_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"account_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":100,"title":"Limit"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Tickwire-CSRF","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Tickwire-Csrf"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dashboard/pretrade-holds/{hold_id}/reject":{"post":{"tags":["dashboard-ai-agents"],"summary":"Reject Hold","description":"Reject a pending hold (never approve). Nothing is sent.","operationId":"reject_hold_dashboard_pretrade_holds__hold_id__reject_post","parameters":[{"name":"hold_id","in":"path","required":true,"schema":{"type":"string","title":"Hold Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Tickwire-CSRF","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Tickwire-Csrf"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/RejectBody"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dashboard/agent-audit":{"get":{"tags":["dashboard-ai-agents"],"summary":"Agent Audit","description":"Agent audit log, newest first. ``tool`` filters on comma-separated\nprefixes (e.g. ``hold`` or ``trade,place_order,close_``).","operationId":"agent_audit_dashboard_agent_audit_get","parameters":[{"name":"agent_key_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Key Id"}},{"name":"account_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Id"}},{"name":"tool","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"title":"Tool"}},{"name":"before","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"title":"Before"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":100,"title":"Limit"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Tickwire-CSRF","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Tickwire-Csrf"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dashboard/dedicated-ips":{"get":{"tags":["dashboard-ai-agents"],"summary":"Dedicated Ips","description":"The organisation's dedicated IPs, open requests and uncovered accounts.\nA dropped database connection is retried once, then answered\n``503 temporarily_unavailable`` with ``Retry-After``.","operationId":"dedicated_ips_dashboard_dedicated_ips_get","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Tickwire-CSRF","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Tickwire-Csrf"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dashboard/dedicated-ips/move-accounts":{"post":{"tags":["dashboard-ai-agents"],"summary":"Move Accounts","description":"Approve moving accounts onto the dedicated IP's host (restarts each terminal).","operationId":"move_accounts_dashboard_dedicated_ips_move_accounts_post","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}},{"name":"X-Reason","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Reason"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Tickwire-CSRF","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Tickwire-Csrf"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MoveBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/dev/dedicated-ips":{"post":{"tags":["dashboard-ai-agents"],"summary":"Dev Seed Ip","description":"Dev only: record a fresh IP as ordered for a tenant.","operationId":"dev_seed_ip_internal_dev_dedicated_ips_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DevIp"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/dev/agent-holds":{"post":{"tags":["dashboard-ai-agents"],"summary":"Dev Seed Hold","description":"Dev only: a pending hold, as if a hook had answered ``hold``.","operationId":"dev_seed_hold_internal_dev_agent_holds_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DevHold"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dashboard/sandbox":{"get":{"tags":["dashboard: sandbox"],"summary":"Sandbox Overview","description":"The org's sandbox: accounts, key and token metadata, webhooks and calls (evidence only).","operationId":"sandbox_overview_dashboard_sandbox_get","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Tickwire-CSRF","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Tickwire-Csrf"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dashboard/sandbox/quickstart":{"post":{"tags":["dashboard: sandbox"],"summary":"Sandbox Quickstart","description":"A sandbox key (shown once) and a normal sandbox account, in one call.","operationId":"sandbox_quickstart_dashboard_sandbox_quickstart_post","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Tickwire-CSRF","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Tickwire-Csrf"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/SandboxQuickstart"},{"type":"null"}],"title":"Body"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dashboard/sandbox/accounts":{"post":{"tags":["dashboard: sandbox"],"summary":"Sandbox Add Account","description":"Add a sandbox account with a magic login.","operationId":"sandbox_add_account_dashboard_sandbox_accounts_post","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Tickwire-CSRF","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Tickwire-Csrf"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddSandboxAccount"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dashboard/sandbox/accounts/{account_id}":{"delete":{"tags":["dashboard: sandbox"],"summary":"Sandbox Delete Account","description":"Stop and delete one sandbox account.","operationId":"sandbox_delete_account_dashboard_sandbox_accounts__account_id__delete","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","title":"Account Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Tickwire-CSRF","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Tickwire-Csrf"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dashboard/sandbox/keys/{key_id}":{"delete":{"tags":["dashboard: sandbox"],"summary":"Sandbox Revoke Key","description":"Revoke one sandbox key (``twsk_`` or read-only) and everything minted with it.","operationId":"sandbox_revoke_key_dashboard_sandbox_keys__key_id__delete","parameters":[{"name":"key_id","in":"path","required":true,"schema":{"type":"string","title":"Key Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Tickwire-CSRF","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Tickwire-Csrf"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dashboard/sandbox/agent-keys/{key_id}":{"delete":{"tags":["dashboard: sandbox"],"summary":"Sandbox Revoke Agent Key","description":"Revoke one sandbox agent key.","operationId":"sandbox_revoke_agent_key_dashboard_sandbox_agent_keys__key_id__delete","parameters":[{"name":"key_id","in":"path","required":true,"schema":{"type":"string","title":"Key Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Tickwire-CSRF","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Tickwire-Csrf"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dashboard/sandbox/tokens/{token_id}":{"delete":{"tags":["dashboard: sandbox"],"summary":"Sandbox Revoke Token","description":"Revoke one sandbox API token and every key and token minted with it.","operationId":"sandbox_revoke_token_dashboard_sandbox_tokens__token_id__delete","parameters":[{"name":"token_id","in":"path","required":true,"schema":{"type":"string","title":"Token Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Tickwire-CSRF","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Tickwire-Csrf"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dashboard/sandbox/webhooks/{webhook_id}":{"delete":{"tags":["dashboard: sandbox"],"summary":"Sandbox Delete Webhook","description":"Delete one sandbox webhook (its pending deliveries are dropped).","operationId":"sandbox_delete_webhook_dashboard_sandbox_webhooks__webhook_id__delete","parameters":[{"name":"webhook_id","in":"path","required":true,"schema":{"type":"string","title":"Webhook Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Tickwire-CSRF","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Tickwire-Csrf"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dashboard/sandbox/keys":{"get":{"tags":["dashboard: sandbox"],"summary":"List Sandbox Keys","description":"The org's sandbox keys, masked (any member). Never returns a key value.","operationId":"list_sandbox_keys_dashboard_sandbox_keys_get","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Tickwire-CSRF","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Tickwire-Csrf"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dashboard/sandbox/keys/{key_id}/revoke":{"post":{"tags":["dashboard: sandbox"],"summary":"Revoke Sandbox Key","description":"Revoke one sandbox key and everything minted with it (owners and admins; audited).","operationId":"revoke_sandbox_key_dashboard_sandbox_keys__key_id__revoke_post","parameters":[{"name":"key_id","in":"path","required":true,"schema":{"type":"string","title":"Key Id"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}},{"name":"X-Actor","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor"}},{"name":"X-Reason","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Reason"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Tickwire-CSRF","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Tickwire-Csrf"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dashboard/sandbox/request-logs":{"get":{"tags":["dashboard: sandbox"],"summary":"Sandbox Request Logs","description":"The sandbox's request log, newest first (any member; metadata only).","operationId":"sandbox_request_logs_dashboard_sandbox_request_logs_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":16},{"type":"null"}],"title":"Status"}},{"name":"method","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":10},{"type":"null"}],"title":"Method"}},{"name":"route","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Route"}},{"name":"errorCode","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Errorcode"}},{"name":"keyId","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Keyid"}},{"name":"accountId","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Accountid"}},{"name":"requestId","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Requestid"}},{"name":"since","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Since"}},{"name":"until","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Until"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Cursor"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Tickwire-CSRF","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Tickwire-Csrf"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dashboard/sandbox/request-logs/summary":{"get":{"tags":["dashboard: sandbox"],"summary":"Sandbox Request Log Summary","description":"Totals and top errors of the sandbox's calls (any member).","operationId":"sandbox_request_log_summary_dashboard_sandbox_request_logs_summary_get","parameters":[{"name":"hours","in":"query","required":false,"schema":{"type":"integer","maximum":336,"minimum":1,"default":24,"title":"Hours"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Tickwire-CSRF","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Tickwire-Csrf"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dashboard/sandbox/request-logs/{log_id}":{"get":{"tags":["dashboard: sandbox"],"summary":"Sandbox Request Log","description":"One sandbox call; body excerpts for owners and admins only.","operationId":"sandbox_request_log_dashboard_sandbox_request_logs__log_id__get","parameters":[{"name":"log_id","in":"path","required":true,"schema":{"type":"string","title":"Log Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Tickwire-CSRF","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Tickwire-Csrf"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/hosts/register":{"post":{"tags":["internal"],"summary":"Host Heartbeat","operationId":"host_heartbeat_internal_hosts_register_post","parameters":[{"name":"X-Internal-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Internal-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HostHeartbeat"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Host Heartbeat Internal Hosts Register Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/fleet":{"get":{"tags":["internal"],"summary":"Fleet View","operationId":"fleet_view_internal_fleet_get","parameters":[{"name":"X-Internal-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Internal-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Fleet View Internal Fleet Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/orders":{"post":{"tags":["fxsocket-batch"],"summary":"Batch orders","description":"Send one order to several accounts at once (at most 20 legs).\n\nEvery leg inherits ``defaults`` and may override any of it, including with a\nfalsy value (``slippage: 0`` means zero). Fields are snake_case: ``symbol``,\n``operation`` (buy, sell, buyLimit, sellLimit, buyStop, sellStop,\nbuyStopLimit, sellStopLimit), ``volume``, ``price``, ``slippage``,\n``stop_loss``, ``take_profit``, ``stop_limit_price``, ``expiration``,\n``comment``, ``expert_id`` and, on the leg, ``account_id``. ``results``\nmirrors ``orders`` one for one.\n\nLeg ``status``: ``filled`` (the broker accepted), ``rejected`` (the broker\nrefused; ``retcode`` says why), ``invalid`` (the terminal refused the\nrequest), ``unavailable`` (terminal up but not trading), ``unreachable`` (no\nterminal), ``timeout`` (**unknown**: it may have executed, including when the\nbroker's reply was lost; reconcile or replay with the same\n``Idempotency-Key``, never blind-retry).\n\nValidation is all-or-nothing, execution is not. Errors: 400\n``invalid_batch`` / ``unknown_account`` / ``unreachable_account`` (with\n``require_reachable``), 401, 403 (read-only key), 409\n``idempotency_in_flight``, 422 ``idempotency_key_reused``, 429\n``rate_limited`` (60 batches a minute per organisation, with\n``Retry-After``), 503 ``idempotency_unavailable``. ``Idempotency-Key`` (at\nmost 128 characters) replays the stored response for 15 minutes with\n``idempotent_replay: true``; each leg also carries its own derived key, so a\nretry never double-fills a leg that already executed. Every leg is in its\naccount's audit trail.","operationId":"fxsocket_batch_orders_orders_post","parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"auth-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auth-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/orders/close":{"post":{"tags":["fxsocket-batch"],"summary":"Batch close","description":"Close by selector (or explicit tickets) across several accounts at once\n(at most 20 accounts, 20 orders each; more come back ``skipped``).\n\nEach account entry is a selector (``symbol`` required, ``*`` for all, typed\nliterally; ``symbol_match`` ``exact`` or ``base`` to accept broker suffixes\nlike ``.sd`` / ``m``; ``side`` long, short or any; ``kind`` position\n(default), pending or any; ``magic``) or an explicit ``tickets`` list, never\nboth. ``volume`` closes part of each matched position. Accounts run\nconcurrently; the tickets of one account run in sequence.\n\nAccount ``status``: closed, partial, failed, nothing_matched (not an error),\nunavailable / unreachable / invalid (the lookup failed, so nothing is\nknown), timeout (orders may have closed). Ticket ``status``: closed,\nrejected, invalid, unavailable, unreachable, timeout (may have closed),\nskipped (never sent). A ticket that was already gone counts as ``closed``\nwith a message saying so. Errors and ``Idempotency-Key`` work as on\n``POST /v1/orders``.","operationId":"fxsocket_batch_close_orders_close_post","parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"auth-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auth-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/incidents":{"get":{"tags":["incidents"],"summary":"List Incidents","description":"Recent incidents, newest first (see module docstring).","operationId":"list_incidents_internal_incidents_get","parameters":[{"name":"open","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Open"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":100,"title":"Limit"}},{"name":"X-Internal-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Internal-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/incidents/check":{"post":{"tags":["incidents"],"summary":"Check Now","description":"Run one watchdog pass now (see module docstring).","operationId":"check_now_internal_incidents_check_post","parameters":[{"name":"X-Actor","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor"}},{"name":"X-Reason","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Reason"}},{"name":"X-Internal-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Internal-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/incidents/test-alert":{"post":{"tags":["incidents"],"summary":"Test Alert","description":"Send one test notice on every configured channel (see module docstring).","operationId":"test_alert_internal_incidents_test_alert_post","parameters":[{"name":"X-Actor","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor"}},{"name":"X-Reason","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Reason"}},{"name":"X-Internal-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Internal-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/tokens/introspect":{"post":{"tags":["internal"],"summary":"Introspect","operationId":"introspect_internal_tokens_introspect_post","parameters":[{"name":"X-Internal-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Internal-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Introspect"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/accounts/{account_id}/route":{"get":{"tags":["internal"],"summary":"Route","operationId":"route_internal_accounts__account_id__route_get","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","title":"Account Id"}},{"name":"X-Internal-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Internal-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/events":{"post":{"tags":["internal"],"summary":"Post Event","operationId":"post_event_internal_events_post","parameters":[{"name":"X-Internal-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Internal-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalEvent"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["internal"],"summary":"Get Events","operationId":"get_events_internal_events_get","parameters":[{"name":"after","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"After"}},{"name":"tenant_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tenant Id"}},{"name":"account_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Id"}},{"name":"type","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"title":"Type"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":5000,"minimum":1,"default":500,"title":"Limit"}},{"name":"X-Internal-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Internal-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/reconcile":{"post":{"tags":["internal"],"summary":"Reconcile","operationId":"reconcile_internal_reconcile_post","parameters":[{"name":"X-Internal-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Internal-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/hosts":{"post":{"tags":["internal"],"summary":"Register Host","operationId":"register_host_internal_hosts_post","parameters":[{"name":"X-Internal-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Internal-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegisterHost"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["internal"],"summary":"List Hosts","operationId":"list_hosts_internal_hosts_get","parameters":[{"name":"X-Internal-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Internal-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/ip-allocation/ips":{"get":{"tags":["dedicated IPs"],"summary":"List Ips","operationId":"list_ips_internal_ip_allocation_ips_get","parameters":[{"name":"tenant_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tenant Id"}},{"name":"include_released","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Include Released"}},{"name":"X-Internal-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Internal-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["dedicated IPs"],"summary":"Add Ip","operationId":"add_ip_internal_ip_allocation_ips_post","parameters":[{"name":"X-Internal-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Internal-Token"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}},{"name":"X-Actor","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor"}},{"name":"X-Reason","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Reason"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddIp"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/ip-allocation/ips/{ip}":{"get":{"tags":["dedicated IPs"],"summary":"Ip History","operationId":"ip_history_internal_ip_allocation_ips__ip__get","parameters":[{"name":"ip","in":"path","required":true,"schema":{"type":"string","title":"Ip"}},{"name":"X-Internal-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Internal-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/ip-allocation/ips/{ip}/release":{"post":{"tags":["dedicated IPs"],"summary":"Release Ip","operationId":"release_ip_internal_ip_allocation_ips__ip__release_post","parameters":[{"name":"ip","in":"path","required":true,"schema":{"type":"string","title":"Ip"}},{"name":"X-Internal-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Internal-Token"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}},{"name":"X-Actor","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor"}},{"name":"X-Reason","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Reason"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Release"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/ip-allocation/ips/{ip}/confirm-cancelled":{"post":{"tags":["dedicated IPs"],"summary":"Confirm Cancelled","operationId":"confirm_cancelled_internal_ip_allocation_ips__ip__confirm_cancelled_post","parameters":[{"name":"ip","in":"path","required":true,"schema":{"type":"string","title":"Ip"}},{"name":"X-Internal-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Internal-Token"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}},{"name":"X-Actor","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor"}},{"name":"X-Reason","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Reason"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfirmCancelled"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/ip-allocation/requests":{"get":{"tags":["dedicated IPs"],"summary":"Open Requests","operationId":"open_requests_internal_ip_allocation_requests_get","parameters":[{"name":"tenant_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tenant Id"}},{"name":"X-Internal-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Internal-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/ip-allocation/tenants/{tenant_id}/reconcile":{"post":{"tags":["dedicated IPs"],"summary":"Reconcile Tenant","operationId":"reconcile_tenant_internal_ip_allocation_tenants__tenant_id__reconcile_post","parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","title":"Tenant Id"}},{"name":"X-Internal-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Internal-Token"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}},{"name":"X-Actor","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor"}},{"name":"X-Reason","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Reason"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/ip-allocation/tenants/{tenant_id}/move-accounts":{"post":{"tags":["dedicated IPs"],"summary":"Move Accounts","operationId":"move_accounts_internal_ip_allocation_tenants__tenant_id__move_accounts_post","parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","title":"Tenant Id"}},{"name":"X-Internal-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Internal-Token"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}},{"name":"X-Actor","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor"}},{"name":"X-Reason","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Reason"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MoveAccounts"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/ip-allocation/reconcile":{"post":{"tags":["dedicated IPs"],"summary":"Reconcile All","operationId":"reconcile_all_internal_ip_allocation_reconcile_post","parameters":[{"name":"X-Internal-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Internal-Token"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}},{"name":"X-Actor","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor"}},{"name":"X-Reason","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Reason"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/ip-allocation/hosts":{"get":{"tags":["dedicated IPs"],"summary":"List Hosts","operationId":"list_hosts_internal_ip_allocation_hosts_get","parameters":[{"name":"X-Internal-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Internal-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/ip-allocation/hosts/{host_id}":{"put":{"tags":["dedicated IPs"],"summary":"Set Host","operationId":"set_host_internal_ip_allocation_hosts__host_id__put","parameters":[{"name":"host_id","in":"path","required":true,"schema":{"type":"string","title":"Host Id"}},{"name":"X-Internal-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Internal-Token"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}},{"name":"X-Actor","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor"}},{"name":"X-Reason","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Reason"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HostMainIp"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/ip-allocation/hosts/{host_id}/failover":{"post":{"tags":["dedicated IPs"],"summary":"Failover","operationId":"failover_internal_ip_allocation_hosts__host_id__failover_post","parameters":[{"name":"host_id","in":"path","required":true,"schema":{"type":"string","title":"Host Id"}},{"name":"X-Internal-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Internal-Token"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}},{"name":"X-Actor","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor"}},{"name":"X-Reason","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Reason"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Failover"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/ip-allocation/hosts/{host_id}/up":{"post":{"tags":["dedicated IPs"],"summary":"Host Up","operationId":"host_up_internal_ip_allocation_hosts__host_id__up_post","parameters":[{"name":"host_id","in":"path","required":true,"schema":{"type":"string","title":"Host Id"}},{"name":"X-Internal-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Internal-Token"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}},{"name":"X-Actor","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor"}},{"name":"X-Reason","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Reason"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dedicated-ips/move-accounts":{"post":{"tags":["dedicated IPs"],"summary":"My Move Accounts","description":"Approve moving these accounts onto your dedicated IP. Each move\n**restarts the account's terminal**, so do it when no trade is in flight.\nEach result says whether the account moved and, if not, why.","operationId":"my_move_accounts_dedicated_ips_move_accounts_post","parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"auth-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auth-Token"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}},{"name":"X-Actor","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor"}},{"name":"X-Reason","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Reason"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MoveAccounts"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dedicated-ips":{"get":{"tags":["dedicated IPs"],"summary":"My Dedicated Ips","description":"Your dedicated IPs and open requests: ``{ips, open_requests}``. Each IP\ngives its ``region`` code and a readable ``region_name``. If the list can't\nbe read right now the answer is ``503 temporarily_unavailable`` with\n``Retry-After``.","operationId":"my_dedicated_ips_dedicated_ips_get","parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"auth-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auth-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/users/current/accounts":{"get":{"tags":["metaapi-provisioning"],"summary":"List Accounts","operationId":"list_accounts_users_current_accounts_get","parameters":[{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"default":1000,"title":"Limit"}},{"name":"version","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"integer"}},{"type":"null"}],"title":"Version"}},{"name":"type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type"}},{"name":"state","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"title":"State"}},{"name":"connectionStatus","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"title":"Connectionstatus"}},{"name":"deploymentStatus","in":"query","required":false,"schema":{"anyOf":[{"enum":["deployed","undeployed","failed"],"type":"string"},{"type":"null"}],"title":"Deploymentstatus"}},{"name":"query","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Query"}},{"name":"provisioningProfileId","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provisioningprofileid"}},{"name":"region","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"title":"Region"}},{"name":"tags","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"title":"Tags"}},{"name":"sortOrder","in":"query","required":false,"schema":{"anyOf":[{"enum":["asc","desc"],"type":"string"},{"type":"null"}],"title":"Sortorder"}},{"name":"api-version","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Api-Version"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"auth-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auth-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["metaapi-provisioning"],"summary":"Create Account","operationId":"create_account_users_current_accounts_post","parameters":[{"name":"transaction-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Transaction-Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"auth-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auth-Token"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Optional; replays the first answer","title":"Idempotency-Key"},"description":"Optional; replays the first answer"},{"name":"X-Actor","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Who is acting (audit log)","title":"X-Actor"},"description":"Who is acting (audit log)"},{"name":"X-Reason","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why (audit log; percent-encode non-ASCII)","title":"X-Reason"},"description":"Why (audit log; percent-encode non-ASCII)"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewTradingAccount"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/users/current/accounts/{account_id}":{"get":{"tags":["metaapi-provisioning"],"summary":"Get Account","operationId":"get_account_users_current_accounts__account_id__get","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","title":"Account Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"auth-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auth-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["metaapi-provisioning"],"summary":"Update Account","operationId":"update_account_users_current_accounts__account_id__put","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","title":"Account Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"auth-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auth-Token"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Optional; replays the first answer","title":"Idempotency-Key"},"description":"Optional; replays the first answer"},{"name":"X-Actor","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Who is acting (audit log)","title":"X-Actor"},"description":"Who is acting (audit log)"},{"name":"X-Reason","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why (audit log; percent-encode non-ASCII)","title":"X-Reason"},"description":"Why (audit log; percent-encode non-ASCII)"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateTradingAccount"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["metaapi-provisioning"],"summary":"Delete Account","operationId":"delete_account_users_current_accounts__account_id__delete","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","title":"Account Id"}},{"name":"executeForAllReplicas","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Executeforallreplicas"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"auth-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auth-Token"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Optional; replays the first answer","title":"Idempotency-Key"},"description":"Optional; replays the first answer"},{"name":"X-Actor","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Who is acting (audit log)","title":"X-Actor"},"description":"Who is acting (audit log)"},{"name":"X-Reason","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why (audit log; percent-encode non-ASCII)","title":"X-Reason"},"description":"Why (audit log; percent-encode non-ASCII)"}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/users/current/accounts/{account_id}/deploy":{"post":{"tags":["metaapi-provisioning"],"summary":"Deploy","operationId":"deploy_users_current_accounts__account_id__deploy_post","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","title":"Account Id"}},{"name":"executeForAllReplicas","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Executeforallreplicas"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"auth-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auth-Token"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Optional; replays the first answer","title":"Idempotency-Key"},"description":"Optional; replays the first answer"},{"name":"X-Actor","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Who is acting (audit log)","title":"X-Actor"},"description":"Who is acting (audit log)"},{"name":"X-Reason","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why (audit log; percent-encode non-ASCII)","title":"X-Reason"},"description":"Why (audit log; percent-encode non-ASCII)"}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/users/current/accounts/{account_id}/undeploy":{"post":{"tags":["metaapi-provisioning"],"summary":"Undeploy","operationId":"undeploy_users_current_accounts__account_id__undeploy_post","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","title":"Account Id"}},{"name":"executeForAllReplicas","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Executeforallreplicas"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"auth-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auth-Token"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Optional; replays the first answer","title":"Idempotency-Key"},"description":"Optional; replays the first answer"},{"name":"X-Actor","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Who is acting (audit log)","title":"X-Actor"},"description":"Who is acting (audit log)"},{"name":"X-Reason","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why (audit log; percent-encode non-ASCII)","title":"X-Reason"},"description":"Why (audit log; percent-encode non-ASCII)"}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/users/current/accounts/{account_id}/redeploy":{"post":{"tags":["metaapi-provisioning"],"summary":"Redeploy","operationId":"redeploy_users_current_accounts__account_id__redeploy_post","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","title":"Account Id"}},{"name":"executeForAllReplicas","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Executeforallreplicas"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"auth-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auth-Token"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Optional; replays the first answer","title":"Idempotency-Key"},"description":"Optional; replays the first answer"},{"name":"X-Actor","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Who is acting (audit log)","title":"X-Actor"},"description":"Who is acting (audit log)"},{"name":"X-Reason","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why (audit log; percent-encode non-ASCII)","title":"X-Reason"},"description":"Why (audit log; percent-encode non-ASCII)"}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/users/current/accounts/{account_id}/credentials":{"put":{"tags":["metaapi-provisioning"],"summary":"Set Credentials","operationId":"set_credentials_users_current_accounts__account_id__credentials_put","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","title":"Account Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"auth-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auth-Token"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Optional; replays the first answer","title":"Idempotency-Key"},"description":"Optional; replays the first answer"},{"name":"X-Actor","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Who is acting (audit log)","title":"X-Actor"},"description":"Who is acting (audit log)"},{"name":"X-Reason","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why (audit log; percent-encode non-ASCII)","title":"X-Reason"},"description":"Why (audit log; percent-encode non-ASCII)"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Credentials"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/users/current/accounts/{account_id}/increase-reliability":{"post":{"tags":["metaapi-provisioning"],"summary":"Increase Reliability","operationId":"increase_reliability_users_current_accounts__account_id__increase_reliability_post","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","title":"Account Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"auth-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auth-Token"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Optional; replays the first answer","title":"Idempotency-Key"},"description":"Optional; replays the first answer"},{"name":"X-Actor","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Who is acting (audit log)","title":"X-Actor"},"description":"Who is acting (audit log)"},{"name":"X-Reason","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why (audit log; percent-encode non-ASCII)","title":"X-Reason"},"description":"Why (audit log; percent-encode non-ASCII)"}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/users/current/accounts/{account_id}/enable-risk-management-api":{"post":{"tags":["metaapi-provisioning"],"summary":"Enable Risk Management","operationId":"enable_risk_management_users_current_accounts__account_id__enable_risk_management_api_post","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","title":"Account Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"auth-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auth-Token"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Optional; replays the first answer","title":"Idempotency-Key"},"description":"Optional; replays the first answer"},{"name":"X-Actor","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Who is acting (audit log)","title":"X-Actor"},"description":"Who is acting (audit log)"},{"name":"X-Reason","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why (audit log; percent-encode non-ASCII)","title":"X-Reason"},"description":"Why (audit log; percent-encode non-ASCII)"}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/users/current/accounts/{account_id}/enable-metastats-api":{"post":{"tags":["metaapi-provisioning"],"summary":"Enable the trading statistics API","operationId":"enable_trading_stats_users_current_accounts__account_id__enable_metastats_api_post","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","title":"Account Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"auth-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auth-Token"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Optional; replays the first answer","title":"Idempotency-Key"},"description":"Optional; replays the first answer"},{"name":"X-Actor","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Who is acting (audit log)","title":"X-Actor"},"description":"Who is acting (audit log)"},{"name":"X-Reason","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why (audit log; percent-encode non-ASCII)","title":"X-Reason"},"description":"Why (audit log; percent-encode non-ASCII)"}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/users/current/accounts/{account_id}/enable-copy-factory-api":{"post":{"tags":["metaapi-provisioning"],"summary":"Enable the copy trading API","operationId":"enable_copy_trading_users_current_accounts__account_id__enable_copy_factory_api_post","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","title":"Account Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"auth-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auth-Token"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Optional; replays the first answer","title":"Idempotency-Key"},"description":"Optional; replays the first answer"},{"name":"X-Actor","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Who is acting (audit log)","title":"X-Actor"},"description":"Who is acting (audit log)"},{"name":"X-Reason","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why (audit log; percent-encode non-ASCII)","title":"X-Reason"},"description":"Why (audit log; percent-encode non-ASCII)"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CopyTradingEnable"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/users/current/accounts/{account_id}/enable-account-features":{"post":{"tags":["metaapi-provisioning"],"summary":"Enable Account Features","operationId":"enable_account_features_users_current_accounts__account_id__enable_account_features_post","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","title":"Account Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"auth-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auth-Token"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Optional; replays the first answer","title":"Idempotency-Key"},"description":"Optional; replays the first answer"},{"name":"X-Actor","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Who is acting (audit log)","title":"X-Actor"},"description":"Who is acting (audit log)"},{"name":"X-Reason","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why (audit log; percent-encode non-ASCII)","title":"X-Reason"},"description":"Why (audit log; percent-encode non-ASCII)"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountFeatures"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/users/current/regions":{"get":{"tags":["metaapi-discovery"],"summary":"Regions","operationId":"regions_users_current_regions_get","parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"auth-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auth-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"string"},"title":"Response Regions Users Current Regions Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/users/current/servers/mt-client-api":{"get":{"tags":["metaapi-discovery"],"summary":"Client Api Domain","operationId":"client_api_domain_users_current_servers_mt_client_api_get","parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"auth-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auth-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Client Api Domain Users Current Servers Mt Client Api Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/known-mt-servers/{version}/search":{"get":{"tags":["metaapi-discovery"],"summary":"Search Servers","operationId":"search_servers_known_mt_servers__version__search_get","parameters":[{"name":"version","in":"path","required":true,"schema":{"type":"integer","title":"Version"}},{"name":"query","in":"query","required":false,"schema":{"type":"string","default":"","title":"Query"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"auth-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auth-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Search Servers Known Mt Servers  Version  Search Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/users/current/provisioning-profiles":{"get":{"tags":["metaapi-provisioning"],"summary":"List Profiles","operationId":"list_profiles_users_current_provisioning_profiles_get","parameters":[{"name":"version","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Version"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"enum":["new","active"],"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"type","in":"query","required":false,"schema":{"anyOf":[{"enum":["mtTerminal","managerApi"],"type":"string"},{"type":"null"}],"title":"Type"}},{"name":"query","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Query"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"default":1000,"title":"Limit"}},{"name":"api-version","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Api-Version"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"auth-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auth-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["metaapi-provisioning"],"summary":"Create Profile","operationId":"create_profile_users_current_provisioning_profiles_post","parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"auth-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auth-Token"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Optional; replays the first answer","title":"Idempotency-Key"},"description":"Optional; replays the first answer"},{"name":"X-Actor","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Who is acting (audit log)","title":"X-Actor"},"description":"Who is acting (audit log)"},{"name":"X-Reason","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why (audit log; percent-encode non-ASCII)","title":"X-Reason"},"description":"Why (audit log; percent-encode non-ASCII)"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewProfile"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/users/current/provisioning-profiles/{profile_id}":{"get":{"tags":["metaapi-provisioning"],"summary":"Get Profile","operationId":"get_profile_users_current_provisioning_profiles__profile_id__get","parameters":[{"name":"profile_id","in":"path","required":true,"schema":{"type":"string","title":"Profile Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"auth-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auth-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["metaapi-provisioning"],"summary":"Update Profile","operationId":"update_profile_users_current_provisioning_profiles__profile_id__put","parameters":[{"name":"profile_id","in":"path","required":true,"schema":{"type":"string","title":"Profile Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"auth-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auth-Token"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Optional; replays the first answer","title":"Idempotency-Key"},"description":"Optional; replays the first answer"},{"name":"X-Actor","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Who is acting (audit log)","title":"X-Actor"},"description":"Who is acting (audit log)"},{"name":"X-Reason","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why (audit log; percent-encode non-ASCII)","title":"X-Reason"},"description":"Why (audit log; percent-encode non-ASCII)"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateProfile"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["metaapi-provisioning"],"summary":"Delete Profile","operationId":"delete_profile_users_current_provisioning_profiles__profile_id__delete","parameters":[{"name":"profile_id","in":"path","required":true,"schema":{"type":"string","title":"Profile Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"auth-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auth-Token"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Optional; replays the first answer","title":"Idempotency-Key"},"description":"Optional; replays the first answer"},{"name":"X-Actor","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Who is acting (audit log)","title":"X-Actor"},"description":"Who is acting (audit log)"},{"name":"X-Reason","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why (audit log; percent-encode non-ASCII)","title":"X-Reason"},"description":"Why (audit log; percent-encode non-ASCII)"}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/users/current/provisioning-profiles/{profile_id}/{file_name}":{"put":{"tags":["metaapi-provisioning"],"summary":"Upload File","operationId":"upload_file_users_current_provisioning_profiles__profile_id___file_name__put","parameters":[{"name":"profile_id","in":"path","required":true,"schema":{"type":"string","title":"Profile Id"}},{"name":"file_name","in":"path","required":true,"schema":{"type":"string","title":"File Name"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"auth-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auth-Token"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Optional; replays the first answer","title":"Idempotency-Key"},"description":"Optional; replays the first answer"},{"name":"X-Actor","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Who is acting (audit log)","title":"X-Actor"},"description":"Who is acting (audit log)"},{"name":"X-Reason","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why (audit log; percent-encode non-ASCII)","title":"X-Reason"},"description":"Why (audit log; percent-encode non-ASCII)"}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dashboard/notifications/preferences":{"get":{"tags":["notifications"],"summary":"Get Preferences","description":"The signed-in user's notification choices (see module docstring).","operationId":"get_preferences_dashboard_notifications_preferences_get","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Tickwire-CSRF","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Tickwire-Csrf"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["notifications"],"summary":"Put Preferences","description":"Turn topics on or off for the signed-in user (see module docstring).","operationId":"put_preferences_dashboard_notifications_preferences_put","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Tickwire-CSRF","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Tickwire-Csrf"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dashboard/notifications/unsubscribe":{"get":{"tags":["notifications"],"summary":"Unsubscribe Page","description":"Confirm page for an unsubscribe link (see module docstring).","operationId":"unsubscribe_page_dashboard_notifications_unsubscribe_get","parameters":[{"name":"token","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["notifications"],"summary":"Unsubscribe","description":"Turn one topic off from an email link or one-click (see module docstring).","operationId":"unsubscribe_dashboard_notifications_unsubscribe_post","parameters":[{"name":"token","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/connected-apps":{"get":{"tags":["ai-apps-connected"],"summary":"List Apps","description":"Apps connected to this tenant through Sign in with Tickwire, oldest\nfirst. Cursor-paginated: ``{apps, has_more, next_cursor}``.","operationId":"list_apps_v1_connected_apps_get","parameters":[{"name":"include_ended","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Ended"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"description":"Page size, 1..500 (default 100).","default":100,"title":"Limit"},"description":"Page size, 1..500 (default 100)."},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":1024},{"type":"null"}],"description":"The next_cursor of the previous page, unchanged.","title":"Cursor"},"description":"The next_cursor of the previous page, unchanged."},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"auth-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auth-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/connected-apps/{grant_id}":{"delete":{"tags":["ai-apps-connected"],"summary":"Disconnect App","description":"Disconnect: revoke the app's agent key and all of its tokens.","operationId":"disconnect_app_v1_connected_apps__grant_id__delete","parameters":[{"name":"grant_id","in":"path","required":true,"schema":{"type":"string","title":"Grant Id"}},{"name":"X-Actor","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor"}},{"name":"X-Reason","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Reason"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"auth-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auth-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dashboard/connected-apps":{"get":{"tags":["ai-apps-connected"],"summary":"Dashboard List Apps","description":"Connected apps of the current organisation, plus the MCP address users\npaste into an AI app (``mcp_url``, the resource tokens are bound to, from\n``TICKWIRE_MCP_PUBLIC_URL``; \"\" if none is set) and whether Sign in with\nTickwire is switched on here (``sign_in``).","operationId":"dashboard_list_apps_dashboard_connected_apps_get","parameters":[{"name":"include_ended","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Ended"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Tickwire-CSRF","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Tickwire-Csrf"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dashboard/connected-apps/{grant_id}":{"delete":{"tags":["ai-apps-connected"],"summary":"Dashboard Disconnect App","description":"Disconnect from the dashboard (admin or owner).","operationId":"dashboard_disconnect_app_dashboard_connected_apps__grant_id__delete","parameters":[{"name":"grant_id","in":"path","required":true,"schema":{"type":"string","title":"Grant Id"}},{"name":"X-Reason","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Reason"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Tickwire-CSRF","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Tickwire-Csrf"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/.well-known/oauth-authorization-server":{"get":{"tags":["ai-apps-oauth"],"summary":"As Metadata","description":"RFC 8414 Authorization Server Metadata.","operationId":"as_metadata__well_known_oauth_authorization_server_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/oauth/authorize":{"get":{"tags":["ai-apps-oauth"],"summary":"Authorize","description":"Validate the request, then send the browser to the consent page.","operationId":"authorize_oauth_authorize_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/oauth/consent/view":{"post":{"tags":["ai-apps-oauth"],"summary":"Consent View","description":"What the consent page shows, plus a consent token bound to this session.","operationId":"consent_view_oauth_consent_view_post","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Tickwire-CSRF","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Tickwire-Csrf"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/oauth/consent/decide":{"post":{"tags":["ai-apps-oauth"],"summary":"Consent Decide","description":"Approve or deny; answers where to send the browser next.","operationId":"consent_decide_oauth_consent_decide_post","parameters":[{"name":"X-Reason","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Reason"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Tickwire-CSRF","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Tickwire-Csrf"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/oauth/token":{"post":{"tags":["ai-apps-oauth"],"summary":"Token","description":"Exchange an authorization code or a refresh token for tokens. Never\nretry a refresh token that was refused: start a new sign-in instead.","operationId":"token_oauth_token_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/oauth/register":{"post":{"tags":["ai-apps-oauth"],"summary":"Register","description":"RFC 7591 Dynamic Client Registration.","operationId":"register_oauth_register_post","responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/oauth/revoke":{"post":{"tags":["ai-apps-oauth"],"summary":"Revoke","description":"RFC 7009 token revocation.","operationId":"revoke_oauth_revoke_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/internal/power/busy":{"get":{"tags":["internal"],"summary":"Power Busy","operationId":"power_busy_internal_power_busy_get","parameters":[{"name":"X-Internal-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Internal-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Power Busy Internal Power Busy Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/request-logs":{"get":{"tags":["request logs"],"summary":"List Request Logs","description":"The organisation's request log, newest first (metadata only).","operationId":"list_request_logs_request_logs_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":16},{"type":"null"}],"title":"Status"}},{"name":"method","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":10},{"type":"null"}],"title":"Method"}},{"name":"route","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Route"}},{"name":"errorCode","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Errorcode"}},{"name":"keyId","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Keyid"}},{"name":"accountId","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Accountid"}},{"name":"requestId","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Requestid"}},{"name":"since","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Since"}},{"name":"until","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Until"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Cursor"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"auth-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auth-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/request-logs/summary":{"get":{"tags":["request logs"],"summary":"Request Log Summary","description":"Totals, error rate and the top error codes and routes over the last ``hours``.","operationId":"request_log_summary_request_logs_summary_get","parameters":[{"name":"hours","in":"query","required":false,"schema":{"type":"integer","maximum":336,"minimum":1,"default":24,"title":"Hours"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"auth-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auth-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/request-logs/{log_id}":{"get":{"tags":["request logs"],"summary":"Get Request Log","description":"One call; body excerpts only for a full-access key with the writer role.","operationId":"get_request_log_request_logs__log_id__get","parameters":[{"name":"log_id","in":"path","required":true,"schema":{"type":"string","title":"Log Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"auth-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auth-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dashboard/request-logs":{"get":{"tags":["request logs"],"summary":"Dash List Request Logs","description":"The organisation's request log (any member; metadata only).","operationId":"dash_list_request_logs_dashboard_request_logs_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":16},{"type":"null"}],"title":"Status"}},{"name":"method","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":10},{"type":"null"}],"title":"Method"}},{"name":"route","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Route"}},{"name":"errorCode","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Errorcode"}},{"name":"keyId","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Keyid"}},{"name":"accountId","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Accountid"}},{"name":"requestId","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Requestid"}},{"name":"since","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Since"}},{"name":"until","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Until"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Cursor"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Tickwire-CSRF","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Tickwire-Csrf"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dashboard/request-logs/summary":{"get":{"tags":["request logs"],"summary":"Dash Request Log Summary","description":"The errors overview (any member).","operationId":"dash_request_log_summary_dashboard_request_logs_summary_get","parameters":[{"name":"hours","in":"query","required":false,"schema":{"type":"integer","maximum":336,"minimum":1,"default":24,"title":"Hours"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Tickwire-CSRF","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Tickwire-Csrf"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dashboard/request-logs/{log_id}":{"get":{"tags":["request logs"],"summary":"Dash Get Request Log","description":"One call; body excerpts for owners and admins only.","operationId":"dash_get_request_log_dashboard_request_logs__log_id__get","parameters":[{"name":"log_id","in":"path","required":true,"schema":{"type":"string","title":"Log Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Tickwire-CSRF","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Tickwire-Csrf"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/request-logs":{"post":{"tags":["request logs"],"summary":"Ingest Request Logs","description":"Store a batch of gateway records (internal).","operationId":"ingest_request_logs_internal_request_logs_post","parameters":[{"name":"X-Internal-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Internal-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LogBatch"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/dev/request-logs":{"post":{"tags":["request logs"],"summary":"Dev Seed Request Logs","description":"Dev only: store sample calls (successes and errors) for a tenant.","operationId":"dev_seed_request_logs_internal_dev_request_logs_post","parameters":[{"name":"X-Internal-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Internal-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DevSeed"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/sandbox":{"get":{"tags":["sandbox"],"summary":"Sandbox Info","description":"Public description of the sandbox; no key needed. ``{sandbox: true,\nserver, keyPrefix, maxAccounts, signup, magicLogins: [{login, scenario}]}``.\n``signup`` says whether anonymous sign-up is open; each magic login, used as\nthe account login on the sandbox server, plays its scenario (see the\nSandbox guide).","operationId":"sandbox_info_v1_sandbox_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/sandbox/signup":{"post":{"tags":["sandbox"],"summary":"Signup","description":"Anonymous sandbox sign-up: a sandbox, a **restricted** ``twsk_`` key and\none deployed account (login ``1000``, server ``Tickwire-Sandbox``).\n\nBody (optional): ``{\"platform\": \"mt5\"|\"mt4\"}``. 201 ``{sandbox: true,\nrestricted: true, tenantId, apiKey, account: {id, platform, server, login,\nstate, connectionStatus}}``. The key is shown once. A restricted key may\nmanage its accounts, trade, stream and read; anything else that changes\nstate (webhooks, pre-trade hooks, agent keys, more keys or tokens) answers\n403 ``sandbox_key_restricted``. Sign-ups are limited per client address (5 an\nhour, 10 a day) and in total; over a limit, 429 ``rate_limited`` with\n``Retry-After``. 403 ``forbidden`` when sign-up is turned off. Anonymous\nsandboxes unused for 7 days are deleted.","operationId":"signup_v1_sandbox_signup_post","requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/tickwire_controlplane__routers__sandbox__SignupBody"},{"type":"null"}],"title":"Body"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/sandbox/keys":{"post":{"tags":["sandbox"],"summary":"Create Key","description":"A ``twsk_`` key for the caller's sandbox (linked to a live tenant).\n``Idempotency-Key`` is honoured: a replay mints nothing and answers\n``apiKey: null`` with an ``apiKeyNotice``.","operationId":"create_key_v1_sandbox_keys_post","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"auth-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auth-Token"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/KeyBody"},{"type":"null"}],"title":"Body"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/sandbox/expire":{"post":{"tags":["sandbox"],"summary":"Expire","description":"Delete idle anonymous sandboxes now (see module docstring).","operationId":"expire_internal_sandbox_expire_post","parameters":[{"name":"dryRun","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Dryrun"}},{"name":"idleDays","in":"query","required":false,"schema":{"anyOf":[{"type":"number","minimum":1},{"type":"null"}],"title":"Idledays"}},{"name":"X-Actor","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor"}},{"name":"X-Reason","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Reason"}},{"name":"X-Internal-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Internal-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/terminal-events":{"post":{"tags":["internal"],"summary":"Post Terminal Event","operationId":"post_terminal_event_internal_terminal_events_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/accounts/{account_id}/events-token":{"post":{"tags":["internal"],"summary":"Mint Events Token","operationId":"mint_events_token_internal_accounts__account_id__events_token_post","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","title":"Account Id"}},{"name":"X-Internal-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Internal-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/accounts/{account_id}/events-token/revoke":{"post":{"tags":["internal"],"summary":"Revoke Events Token","operationId":"revoke_events_token_internal_accounts__account_id__events_token_revoke_post","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","title":"Account Id"}},{"name":"X-Internal-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Internal-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dashboard/auth/signup":{"post":{"tags":["dashboard: users"],"summary":"Signup","operationId":"signup_dashboard_auth_signup_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/tickwire_controlplane__routers__users__SignupBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dashboard/auth/login":{"post":{"tags":["dashboard: users"],"summary":"Login","operationId":"login_dashboard_auth_login_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dashboard/auth/magic-link":{"post":{"tags":["dashboard: users"],"summary":"Magic Link","operationId":"magic_link_dashboard_auth_magic_link_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MagicBody"}}},"required":true},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dashboard/auth/magic-link/verify":{"post":{"tags":["dashboard: users"],"summary":"Magic Verify","operationId":"magic_verify_dashboard_auth_magic_link_verify_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dashboard/auth/logout":{"post":{"tags":["dashboard: users"],"summary":"Logout","operationId":"logout_dashboard_auth_logout_post","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Tickwire-CSRF","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Tickwire-Csrf"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dashboard/auth/logout-all":{"post":{"tags":["dashboard: users"],"summary":"Logout All","operationId":"logout_all_dashboard_auth_logout_all_post","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Tickwire-CSRF","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Tickwire-Csrf"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dashboard/me":{"get":{"tags":["dashboard: users"],"summary":"Me","operationId":"me_dashboard_me_get","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Tickwire-CSRF","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Tickwire-Csrf"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["dashboard: users"],"summary":"Patch Me","operationId":"patch_me_dashboard_me_patch","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Tickwire-CSRF","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Tickwire-Csrf"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PatchMe"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dashboard/orgs":{"post":{"tags":["dashboard: users"],"summary":"Create Org","operationId":"create_org_dashboard_orgs_post","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Tickwire-CSRF","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Tickwire-Csrf"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrgBody"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dashboard/orgs/switch":{"post":{"tags":["dashboard: users"],"summary":"Switch Org","operationId":"switch_org_dashboard_orgs_switch_post","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Tickwire-CSRF","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Tickwire-Csrf"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SwitchBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dashboard/org":{"patch":{"tags":["dashboard: users"],"summary":"Rename Org","operationId":"rename_org_dashboard_org_patch","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Tickwire-CSRF","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Tickwire-Csrf"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrgBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dashboard/org/members":{"get":{"tags":["dashboard: users"],"summary":"Members","operationId":"members_dashboard_org_members_get","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Tickwire-CSRF","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Tickwire-Csrf"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dashboard/org/members/{user_id}":{"patch":{"tags":["dashboard: users"],"summary":"Change Role","operationId":"change_role_dashboard_org_members__user_id__patch","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Tickwire-CSRF","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Tickwire-Csrf"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoleBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["dashboard: users"],"summary":"Remove Member","operationId":"remove_member_dashboard_org_members__user_id__delete","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Tickwire-CSRF","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Tickwire-Csrf"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dashboard/org/invites":{"get":{"tags":["dashboard: users"],"summary":"List Invites","operationId":"list_invites_dashboard_org_invites_get","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Tickwire-CSRF","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Tickwire-Csrf"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["dashboard: users"],"summary":"Invite","operationId":"invite_dashboard_org_invites_post","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Tickwire-CSRF","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Tickwire-Csrf"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InviteBody"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dashboard/org/invites/{invite_id}":{"delete":{"tags":["dashboard: users"],"summary":"Revoke Invite","operationId":"revoke_invite_dashboard_org_invites__invite_id__delete","parameters":[{"name":"invite_id","in":"path","required":true,"schema":{"type":"string","title":"Invite Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Tickwire-CSRF","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Tickwire-Csrf"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dashboard/invites/accept":{"post":{"tags":["dashboard: users"],"summary":"Accept Invite","operationId":"accept_invite_dashboard_invites_accept_post","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AcceptBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dashboard/audit":{"get":{"tags":["dashboard: users"],"summary":"Org Audit","operationId":"org_audit_dashboard_audit_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":100,"title":"Limit"}},{"name":"target","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Tickwire-CSRF","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Tickwire-Csrf"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dashboard/overview":{"get":{"tags":["dashboard: accounts"],"summary":"Overview","operationId":"overview_dashboard_overview_get","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Tickwire-CSRF","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Tickwire-Csrf"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dashboard/accounts":{"get":{"tags":["dashboard: accounts"],"summary":"List Accounts","operationId":"list_accounts_dashboard_accounts_get","parameters":[{"name":"live","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Live"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Tickwire-CSRF","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Tickwire-Csrf"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["dashboard: accounts"],"summary":"Add Account","operationId":"add_account_dashboard_accounts_post","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Tickwire-CSRF","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Tickwire-Csrf"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddAccount"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dashboard/accounts/{account_id}":{"get":{"tags":["dashboard: accounts"],"summary":"Get Account","operationId":"get_account_dashboard_accounts__account_id__get","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","title":"Account Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Tickwire-CSRF","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Tickwire-Csrf"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["dashboard: accounts"],"summary":"Remove Account","operationId":"remove_account_dashboard_accounts__account_id__delete","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","title":"Account Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Tickwire-CSRF","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Tickwire-Csrf"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dashboard/accounts/{account_id}/health-history":{"get":{"tags":["dashboard: accounts"],"summary":"Health History","operationId":"health_history_dashboard_accounts__account_id__health_history_get","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","title":"Account Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"default":100,"title":"Limit"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Tickwire-CSRF","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Tickwire-Csrf"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dashboard/accounts/{account_id}/audit":{"get":{"tags":["dashboard: accounts"],"summary":"Account Audit","operationId":"account_audit_dashboard_accounts__account_id__audit_get","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","title":"Account Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"default":100,"title":"Limit"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Tickwire-CSRF","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Tickwire-Csrf"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dashboard/private-servers":{"get":{"tags":["dashboard: accounts"],"summary":"Private Servers","operationId":"private_servers_dashboard_private_servers_get","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Tickwire-CSRF","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Tickwire-Csrf"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dashboard/servers/suggest":{"get":{"tags":["dashboard: accounts"],"summary":"Server Suggest","operationId":"server_suggest_dashboard_servers_suggest_get","parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","maxLength":80,"default":"","title":"Q"}},{"name":"platform","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Platform"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Tickwire-CSRF","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Tickwire-Csrf"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dashboard/api-keys":{"get":{"tags":["dashboard: api keys"],"summary":"List Keys","operationId":"list_keys_dashboard_api_keys_get","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Tickwire-CSRF","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Tickwire-Csrf"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["dashboard: api keys"],"summary":"Create Key","description":"Create a key; ``key`` is shown once (``key_notice``). With\n``Idempotency-Key`` a replay creates nothing and answers ``key: null``.","operationId":"create_key_dashboard_api_keys_post","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Tickwire-CSRF","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Tickwire-Csrf"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateKey"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dashboard/api-keys/{key_id}":{"delete":{"tags":["dashboard: api keys"],"summary":"Revoke Key","operationId":"revoke_key_dashboard_api_keys__key_id__delete","parameters":[{"name":"key_id","in":"path","required":true,"schema":{"type":"string","title":"Key Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Tickwire-CSRF","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Tickwire-Csrf"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dashboard/api-keys/{key_id}/rotate":{"post":{"tags":["dashboard: api keys"],"summary":"Rotate Key","description":"Rotate a read-only key; the new ``key`` is shown once (``key_notice``).\nWith ``Idempotency-Key`` a replay rotates nothing and answers ``key: null``.","operationId":"rotate_key_dashboard_api_keys__key_id__rotate_post","parameters":[{"name":"key_id","in":"path","required":true,"schema":{"type":"string","title":"Key Id"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Tickwire-CSRF","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Tickwire-Csrf"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dashboard/api-keys/{key_id}/reveal":{"post":{"tags":["dashboard: api keys"],"summary":"Reveal Key","operationId":"reveal_key_dashboard_api_keys__key_id__reveal_post","parameters":[{"name":"key_id","in":"path","required":true,"schema":{"type":"string","title":"Key Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Tickwire-CSRF","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Tickwire-Csrf"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dashboard/webhooks/event-types":{"get":{"tags":["dashboard: webhooks"],"summary":"Event Types","operationId":"event_types_dashboard_webhooks_event_types_get","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Tickwire-CSRF","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Tickwire-Csrf"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dashboard/webhooks":{"get":{"tags":["dashboard: webhooks"],"summary":"List Hooks","operationId":"list_hooks_dashboard_webhooks_get","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Tickwire-CSRF","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Tickwire-Csrf"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["dashboard: webhooks"],"summary":"Create Hook","operationId":"create_hook_dashboard_webhooks_post","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Tickwire-CSRF","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Tickwire-Csrf"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateHook"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dashboard/webhooks/{webhook_id}/reveal":{"post":{"tags":["dashboard: webhooks"],"summary":"Reveal Hook","operationId":"reveal_hook_dashboard_webhooks__webhook_id__reveal_post","parameters":[{"name":"webhook_id","in":"path","required":true,"schema":{"type":"string","title":"Webhook Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Tickwire-CSRF","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Tickwire-Csrf"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dashboard/webhooks/{webhook_id}":{"delete":{"tags":["dashboard: webhooks"],"summary":"Delete Hook","operationId":"delete_hook_dashboard_webhooks__webhook_id__delete","parameters":[{"name":"webhook_id","in":"path","required":true,"schema":{"type":"string","title":"Webhook Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Tickwire-CSRF","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Tickwire-Csrf"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["dashboard: webhooks"],"summary":"Dash Patch","operationId":"dash_patch_dashboard_webhooks__webhook_id__patch","parameters":[{"name":"webhook_id","in":"path","required":true,"schema":{"type":"string","title":"Webhook Id"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}},{"name":"X-Actor","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor"}},{"name":"X-Reason","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Reason"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Tickwire-CSRF","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Tickwire-Csrf"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PatchEndpoint"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dashboard/webhooks/{webhook_id}/test":{"post":{"tags":["dashboard: webhooks"],"summary":"Test Hook","operationId":"test_hook_dashboard_webhooks__webhook_id__test_post","parameters":[{"name":"webhook_id","in":"path","required":true,"schema":{"type":"string","title":"Webhook Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Tickwire-CSRF","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Tickwire-Csrf"}}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dashboard/webhooks/catalog":{"get":{"tags":["dashboard: webhooks"],"summary":"Dash Catalog","operationId":"dash_catalog_dashboard_webhooks_catalog_get","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Tickwire-CSRF","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Tickwire-Csrf"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dashboard/webhooks/{webhook_id}/settings":{"get":{"tags":["dashboard: webhooks"],"summary":"Dash Settings","operationId":"dash_settings_dashboard_webhooks__webhook_id__settings_get","parameters":[{"name":"webhook_id","in":"path","required":true,"schema":{"type":"string","title":"Webhook Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Tickwire-CSRF","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Tickwire-Csrf"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dashboard/webhooks/{webhook_id}/enable":{"post":{"tags":["dashboard: webhooks"],"summary":"Dash Enable","operationId":"dash_enable_dashboard_webhooks__webhook_id__enable_post","parameters":[{"name":"webhook_id","in":"path","required":true,"schema":{"type":"string","title":"Webhook Id"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}},{"name":"X-Actor","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor"}},{"name":"X-Reason","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Reason"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Tickwire-CSRF","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Tickwire-Csrf"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dashboard/webhooks/{webhook_id}/disable":{"post":{"tags":["dashboard: webhooks"],"summary":"Dash Disable","operationId":"dash_disable_dashboard_webhooks__webhook_id__disable_post","parameters":[{"name":"webhook_id","in":"path","required":true,"schema":{"type":"string","title":"Webhook Id"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}},{"name":"X-Actor","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor"}},{"name":"X-Reason","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Reason"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Tickwire-CSRF","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Tickwire-Csrf"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dashboard/webhooks/{webhook_id}/rotate-secret":{"post":{"tags":["dashboard: webhooks"],"summary":"Dash Rotate","operationId":"dash_rotate_dashboard_webhooks__webhook_id__rotate_secret_post","parameters":[{"name":"webhook_id","in":"path","required":true,"schema":{"type":"string","title":"Webhook Id"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}},{"name":"X-Actor","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor"}},{"name":"X-Reason","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Reason"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Tickwire-CSRF","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Tickwire-Csrf"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/RotateSecret"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dashboard/webhooks/{webhook_id}/deliveries":{"get":{"tags":["dashboard: webhooks"],"summary":"Dash Deliveries","operationId":"dash_deliveries_dashboard_webhooks__webhook_id__deliveries_get","parameters":[{"name":"webhook_id","in":"path","required":true,"schema":{"type":"string","title":"Webhook Id"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"eventType","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Eventtype"}},{"name":"eventId","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Eventid"}},{"name":"since","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Since"}},{"name":"until","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Until"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Tickwire-CSRF","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Tickwire-Csrf"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dashboard/webhooks/{webhook_id}/deliveries/{delivery_id}":{"get":{"tags":["dashboard: webhooks"],"summary":"Dash Delivery","operationId":"dash_delivery_dashboard_webhooks__webhook_id__deliveries__delivery_id__get","parameters":[{"name":"webhook_id","in":"path","required":true,"schema":{"type":"string","title":"Webhook Id"}},{"name":"delivery_id","in":"path","required":true,"schema":{"type":"string","title":"Delivery Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Tickwire-CSRF","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Tickwire-Csrf"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dashboard/webhooks/{webhook_id}/deliveries/{delivery_id}/resend":{"post":{"tags":["dashboard: webhooks"],"summary":"Dash Resend","operationId":"dash_resend_dashboard_webhooks__webhook_id__deliveries__delivery_id__resend_post","parameters":[{"name":"webhook_id","in":"path","required":true,"schema":{"type":"string","title":"Webhook Id"}},{"name":"delivery_id","in":"path","required":true,"schema":{"type":"string","title":"Delivery Id"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}},{"name":"X-Actor","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor"}},{"name":"X-Reason","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Reason"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Tickwire-CSRF","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Tickwire-Csrf"}}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/webhook-listeners":{"post":{"tags":["webhooks"],"summary":"Create Listener","description":"Start a local-forwarding listener: its signing secret and the current cursor.","operationId":"create_listener_webhook_listeners_post","parameters":[{"name":"X-Actor","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor"}},{"name":"X-Reason","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Reason"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"auth-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auth-Token"}}],"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/webhook-listeners/{listener_id}/events":{"get":{"tags":["webhooks"],"summary":"Listener Events","description":"The tenant's events after the ``after`` cursor, each signed with the listener secret.","operationId":"listener_events_webhook_listeners__listener_id__events_get","parameters":[{"name":"listener_id","in":"path","required":true,"schema":{"type":"string","title":"Listener Id"}},{"name":"after","in":"query","required":false,"schema":{"type":"string","maxLength":64,"default":"","title":"After"}},{"name":"types","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"title":"Types"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":100,"title":"Limit"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"auth-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auth-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/webhook-events/trigger":{"post":{"tags":["webhooks"],"summary":"Trigger","description":"Publish one test event of a catalog type (any type in the sandbox; live: ``webhook.test``).","operationId":"trigger_webhook_events_trigger_post","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}},{"name":"X-Actor","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor"}},{"name":"X-Reason","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Reason"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"auth-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auth-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TriggerBody"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/webhook-event-types":{"get":{"tags":["webhooks"],"summary":"Event Types","description":"Every webhook event type, with a description, its source and an example envelope.","operationId":"event_types_webhook_event_types_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/webhooks/{webhook_id}/settings":{"get":{"tags":["webhooks"],"summary":"Endpoint Settings","description":"Endpoint status, failure streak, event filter and secret-rotation state.","operationId":"endpoint_settings_webhooks__webhook_id__settings_get","parameters":[{"name":"webhook_id","in":"path","required":true,"schema":{"type":"string","title":"Webhook Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"auth-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auth-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/webhooks/{webhook_id}/enable":{"post":{"tags":["webhooks"],"summary":"Enable Endpoint","description":"Re-enable an endpoint (after an automatic disable, or your own).","operationId":"enable_endpoint_webhooks__webhook_id__enable_post","parameters":[{"name":"webhook_id","in":"path","required":true,"schema":{"type":"string","title":"Webhook Id"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}},{"name":"X-Actor","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor"}},{"name":"X-Reason","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Reason"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"auth-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auth-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/webhooks/{webhook_id}/disable":{"post":{"tags":["webhooks"],"summary":"Disable Endpoint","description":"Stop deliveries to an endpoint; unfinished deliveries are closed as failed.","operationId":"disable_endpoint_webhooks__webhook_id__disable_post","parameters":[{"name":"webhook_id","in":"path","required":true,"schema":{"type":"string","title":"Webhook Id"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}},{"name":"X-Actor","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor"}},{"name":"X-Reason","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Reason"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"auth-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auth-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/webhooks/{webhook_id}/rotate-secret":{"post":{"tags":["webhooks"],"summary":"Rotate Secret","description":"New signing secret; the old one stays valid for ``overlapHours`` (default 24).","operationId":"rotate_secret_webhooks__webhook_id__rotate_secret_post","parameters":[{"name":"webhook_id","in":"path","required":true,"schema":{"type":"string","title":"Webhook Id"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}},{"name":"X-Actor","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor"}},{"name":"X-Reason","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Reason"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"auth-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auth-Token"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/RotateSecret"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/webhooks/{webhook_id}/reveal-secret":{"post":{"tags":["webhooks"],"summary":"Reveal Secret","description":"The current signing secret (and the previous one during a rotation overlap).","operationId":"reveal_secret_webhooks__webhook_id__reveal_secret_post","parameters":[{"name":"webhook_id","in":"path","required":true,"schema":{"type":"string","title":"Webhook Id"}},{"name":"X-Actor","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor"}},{"name":"X-Reason","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Reason"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"auth-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auth-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/webhooks/{webhook_id}/deliveries":{"get":{"tags":["webhooks"],"summary":"List Deliveries","description":"The endpoint's deliveries, newest first (``{data, hasMore, nextCursor}``).","operationId":"list_deliveries_webhooks__webhook_id__deliveries_get","parameters":[{"name":"webhook_id","in":"path","required":true,"schema":{"type":"string","title":"Webhook Id"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"eventType","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Eventtype"}},{"name":"eventId","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Eventid"}},{"name":"since","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Since"}},{"name":"until","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Until"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"auth-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auth-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/webhooks/{webhook_id}/deliveries/{delivery_id}":{"get":{"tags":["webhooks"],"summary":"Get Delivery","description":"One delivery with every attempt, the signed payload and the last response body.","operationId":"get_delivery_webhooks__webhook_id__deliveries__delivery_id__get","parameters":[{"name":"webhook_id","in":"path","required":true,"schema":{"type":"string","title":"Webhook Id"}},{"name":"delivery_id","in":"path","required":true,"schema":{"type":"string","title":"Delivery Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"auth-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auth-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/webhooks/{webhook_id}/deliveries/{delivery_id}/resend":{"post":{"tags":["webhooks"],"summary":"Resend Delivery","description":"Queue this delivery's event again to the endpoint. Returns the new delivery (202).","operationId":"resend_delivery_webhooks__webhook_id__deliveries__delivery_id__resend_post","parameters":[{"name":"webhook_id","in":"path","required":true,"schema":{"type":"string","title":"Webhook Id"}},{"name":"delivery_id","in":"path","required":true,"schema":{"type":"string","title":"Delivery Id"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}},{"name":"X-Actor","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor"}},{"name":"X-Reason","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Reason"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"auth-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auth-Token"}}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/events/{event_id}/resend":{"post":{"tags":["webhooks"],"summary":"Resend Event","description":"Queue an event again to every endpoint that received it (or ``webhookId``).","operationId":"resend_event_events__event_id__resend_post","parameters":[{"name":"event_id","in":"path","required":true,"schema":{"type":"string","title":"Event Id"}},{"name":"webhookId","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Webhookid"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}},{"name":"X-Actor","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor"}},{"name":"X-Reason","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Reason"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"auth-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auth-Token"}}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"AcceptBody":{"properties":{"token":{"type":"string","maxLength":200,"title":"Token"},"name":{"type":"string","maxLength":120,"title":"Name","default":""},"password":{"anyOf":[{"type":"string","maxLength":256},{"type":"null"}],"title":"Password"}},"type":"object","required":["token"],"title":"AcceptBody"},"AccountFeatures":{"properties":{"copyFactoryApi":{"anyOf":[{"$ref":"#/components/schemas/CopyTradingEnable"},{"type":"null"}]},"riskManagementApiEnabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Riskmanagementapienabled"},"metastatsApiEnabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Metastatsapienabled"},"reliabilityIncreased":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Reliabilityincreased"},"allocateDedicatedIp":{"anyOf":[{"type":"string","enum":["ipv4","none"]},{"type":"null"}],"title":"Allocatededicatedip"}},"type":"object","title":"AccountFeatures"},"AddAccount":{"properties":{"platform":{"type":"string","enum":["mt4","mt5"],"title":"Platform","default":"mt5"},"server":{"type":"string","maxLength":120,"minLength":1,"title":"Server"},"login":{"type":"integer","exclusiveMinimum":0.0,"title":"Login"},"password":{"type":"string","maxLength":256,"minLength":1,"title":"Password"},"nickname":{"type":"string","maxLength":80,"title":"Nickname","default":""},"private_server_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Private Server Id"}},"type":"object","required":["server","login","password"],"title":"AddAccount"},"AddIp":{"properties":{"tenant_id":{"type":"string","maxLength":128,"minLength":1,"title":"Tenant Id"},"ip":{"type":"string","maxLength":15,"minLength":7,"title":"Ip"},"region":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Region"},"request_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Request Id"}},"type":"object","required":["tenant_id","ip"],"title":"AddIp"},"AddSandboxAccount":{"properties":{"platform":{"type":"string","enum":["mt4","mt5"],"title":"Platform","default":"mt5"},"login":{"type":"integer","exclusiveMinimum":0.0,"title":"Login"}},"additionalProperties":false,"type":"object","required":["login"],"title":"AddSandboxAccount"},"CheckoutBody":{"properties":{"discount_code":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Discount Code"}},"type":"object","title":"CheckoutBody"},"ConfirmCancelled":{"properties":{"evidence":{"type":"string","maxLength":200,"minLength":1,"title":"Evidence"}},"type":"object","required":["evidence"],"title":"ConfirmCancelled"},"CopyTradingEnable":{"properties":{"copyFactoryRoles":{"items":{"type":"string","enum":["PROVIDER","SUBSCRIBER"]},"type":"array","title":"Copyfactoryroles"},"copyFactoryResourceSlots":{"anyOf":[{"type":"integer","maximum":64.0,"minimum":1.0},{"type":"null"}],"title":"Copyfactoryresourceslots"}},"type":"object","required":["copyFactoryRoles"],"title":"CopyTradingEnable"},"CreateAccount":{"properties":{"platform":{"type":"string","enum":["mt4","mt5"],"title":"Platform","default":"mt5"},"server":{"type":"string","title":"Server"},"login":{"type":"integer","title":"Login"},"password":{"type":"string","title":"Password"},"nickname":{"type":"string","title":"Nickname","default":""},"trade_ea_symbol":{"type":"string","title":"Trade Ea Symbol","default":""},"proxy_address":{"type":"string","title":"Proxy Address","default":""},"proxy_type":{"type":"string","title":"Proxy Type","default":""},"proxy_auth":{"type":"string","title":"Proxy Auth","default":""},"proxy_local_port":{"type":"integer","title":"Proxy Local Port","default":0}},"type":"object","required":["server","login","password"],"title":"CreateAccount"},"CreateCode":{"properties":{"code":{"type":"string","maxLength":200,"title":"Code"},"percent":{"type":"number","title":"Percent"},"note":{"type":"string","maxLength":500,"title":"Note","default":""},"starts_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Starts At"},"ends_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Ends At"}},"additionalProperties":false,"type":"object","required":["code","percent"],"title":"CreateCode"},"CreateHook":{"properties":{"url":{"type":"string","maxLength":2000,"minLength":8,"title":"Url"}},"type":"object","required":["url"],"title":"CreateHook"},"CreateKey":{"properties":{"name":{"type":"string","maxLength":80,"minLength":1,"title":"Name"},"kind":{"type":"string","enum":["full","readonly"],"title":"Kind","default":"full"},"scope":{"type":"string","enum":["all","selected"],"title":"Scope","default":"all"},"account_ids":{"items":{"type":"string"},"type":"array","title":"Account Ids"}},"type":"object","required":["name"],"title":"CreateKey"},"CreatePrivateServer":{"properties":{"slots":{"type":"integer","minimum":1.0,"title":"Slots"},"region":{"type":"string","title":"Region"},"name":{"type":"string","title":"Name"}},"type":"object","required":["slots","region","name"],"title":"CreatePrivateServer"},"CreateReadonlyKey":{"properties":{"name":{"type":"string","title":"Name"},"scope":{"type":"string","enum":["all","selected"],"title":"Scope","default":"all"},"account_ids":{"items":{"type":"string"},"type":"array","title":"Account Ids"}},"type":"object","required":["name"],"title":"CreateReadonlyKey"},"CreateTopup":{"properties":{"amount_eur_cents":{"type":"integer","exclusiveMinimum":0.0,"title":"Amount Eur Cents"},"method":{"type":"string","enum":["crypto","manual"],"title":"Method","default":"crypto"}},"type":"object","required":["amount_eur_cents"],"title":"CreateTopup"},"CreateWebhook":{"properties":{"url":{"type":"string","title":"Url"},"secret":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Secret"}},"type":"object","required":["url"],"title":"CreateWebhook"},"Credentials":{"properties":{"login":{"anyOf":[{"type":"string"},{"type":"integer"},{"type":"null"}],"title":"Login"},"password":{"type":"string","minLength":1,"title":"Password"}},"type":"object","required":["password"],"title":"Credentials"},"DedicatedIpsBody":{"properties":{"count":{"type":"integer","maximum":1000.0,"minimum":0.0,"title":"Count"}},"type":"object","required":["count"],"title":"DedicatedIpsBody"},"DevCheckout":{"properties":{"checkout_id":{"type":"string","title":"Checkout Id"}},"type":"object","required":["checkout_id"],"title":"DevCheckout"},"DevClock":{"properties":{"advance_days":{"type":"number","maximum":400.0,"minimum":0.0,"title":"Advance Days","default":0.0},"reset":{"type":"boolean","title":"Reset","default":false}},"type":"object","title":"DevClock"},"DevHold":{"properties":{"tenant_id":{"type":"string","title":"Tenant Id"},"account_id":{"type":"string","title":"Account Id"},"ttl_s":{"type":"integer","maximum":86400.0,"minimum":10.0,"title":"Ttl S","default":300}},"type":"object","required":["tenant_id","account_id"],"title":"DevHold"},"DevIp":{"properties":{"tenant_id":{"type":"string","title":"Tenant Id"},"ip":{"type":"string","title":"Ip"},"region":{"type":"string","title":"Region","default":"fsn1"}},"type":"object","required":["tenant_id","ip"],"title":"DevIp"},"DevNextCharge":{"properties":{"outcome":{"type":"string","title":"Outcome"},"tenant_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tenant Id"}},"type":"object","required":["outcome"],"title":"DevNextCharge"},"DevPayment":{"properties":{"tenant_id":{"type":"string","title":"Tenant Id"},"outcome":{"type":"string","title":"Outcome","default":"paid"}},"type":"object","required":["tenant_id"],"title":"DevPayment"},"DevSeed":{"properties":{"tenant_id":{"type":"string","maxLength":128,"minLength":1,"title":"Tenant Id"},"count":{"type":"integer","maximum":200.0,"minimum":1.0,"title":"Count","default":8}},"type":"object","required":["tenant_id"],"title":"DevSeed"},"DevSetup":{"properties":{"tenant_id":{"type":"string","title":"Tenant Id"}},"type":"object","required":["tenant_id"],"title":"DevSetup"},"DevStatus":{"properties":{"status":{"type":"string","title":"Status"},"error":{"type":"string","title":"Error","default":""}},"type":"object","required":["status"],"title":"DevStatus"},"EmailBody":{"properties":{"payout_email":{"type":"string","maxLength":254,"title":"Payout Email"}},"type":"object","required":["payout_email"],"title":"EmailBody"},"EmailLinkBody":{"properties":{"kind":{"type":"string","enum":["signin","verify","reset"],"title":"Kind"},"email":{"type":"string","title":"Email","default":""},"ref":{"type":"string","maxLength":64,"title":"Ref","default":""}},"type":"object","required":["kind"],"title":"EmailLinkBody"},"Failover":{"properties":{"target_host_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target Host Id"}},"type":"object","title":"Failover"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"HostHeartbeat":{"properties":{"host_id":{"type":"string","maxLength":128,"minLength":1,"pattern":"^[A-Za-z0-9][A-Za-z0-9._-]*$","title":"Host Id"},"region":{"type":"string","maxLength":64,"title":"Region","default":""},"hostagent_url":{"type":"string","maxLength":512,"minLength":1,"pattern":"^https?://","title":"Hostagent Url"},"hostagent_token":{"type":"string","maxLength":512,"title":"Hostagent Token","default":""},"version":{"type":"string","maxLength":64,"title":"Version","default":""},"capacity":{"additionalProperties":true,"type":"object","title":"Capacity"},"host":{"anyOf":[{"$ref":"#/components/schemas/HostMetrics"},{"type":"null"}]},"provider":{"type":"string","maxLength":32,"pattern":"^[a-z0-9-]*$","title":"Provider","default":""},"size":{"type":"string","maxLength":64,"pattern":"^[A-Za-z0-9._-]*$","title":"Size","default":""}},"type":"object","required":["host_id","hostagent_url"],"title":"HostHeartbeat"},"HostMainIp":{"properties":{"main_ip":{"type":"string","maxLength":15,"minLength":7,"title":"Main Ip"}},"type":"object","required":["main_ip"],"title":"HostMainIp"},"HostMetrics":{"properties":{"mem_total_mb":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Mem Total Mb"},"mem_available_mb":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Mem Available Mb"},"cpu_count":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Cpu Count"},"load1":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Load1"},"load5":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Load5"},"load15":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Load15"}},"type":"object","title":"HostMetrics"},"InternalEvent":{"properties":{"tenant_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tenant Id"},"account_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Id"},"type":{"type":"string","maxLength":128,"minLength":1,"title":"Type"},"data":{"additionalProperties":true,"type":"object","title":"Data"},"event_id":{"anyOf":[{"type":"string","maxLength":128,"minLength":1},{"type":"null"}],"title":"Event Id"}},"type":"object","required":["type"],"title":"InternalEvent"},"Introspect":{"properties":{"token":{"type":"string","title":"Token"},"ip":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ip"}},"type":"object","required":["token"],"title":"Introspect"},"InviteBody":{"properties":{"email":{"type":"string","maxLength":254,"title":"Email"},"role":{"type":"string","title":"Role","default":"member"}},"type":"object","required":["email"],"title":"InviteBody"},"JoinBody":{"properties":{"code":{"type":"string","maxLength":64,"title":"Code"},"payout_email":{"type":"string","maxLength":254,"title":"Payout Email"},"accept_terms":{"type":"boolean","title":"Accept Terms","default":false},"terms_version":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Terms Version"}},"type":"object","required":["code","payout_email"],"title":"JoinBody"},"KeyBody":{"properties":{"name":{"type":"string","title":"Name","default":"sandbox"}},"additionalProperties":false,"type":"object","title":"KeyBody"},"LogBatch":{"properties":{"records":{"items":{"$ref":"#/components/schemas/LogRecord"},"type":"array","maxItems":1000,"title":"Records"}},"type":"object","required":["records"],"title":"LogBatch"},"LogRecord":{"properties":{"id":{"type":"string","pattern":"^req_[A-Za-z0-9]{8,32}$","title":"Id"},"tenant_id":{"type":"string","maxLength":128,"minLength":1,"title":"Tenant Id"},"request_id":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Request Id"},"key_id":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Key Id"},"kind":{"type":"string","pattern":"^(http|websocket)$","title":"Kind","default":"http"},"method":{"type":"string","maxLength":10,"minLength":1,"title":"Method"},"path":{"type":"string","maxLength":512,"minLength":1,"title":"Path"},"route":{"type":"string","maxLength":300,"minLength":1,"title":"Route"},"account_id":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Account Id"},"status":{"type":"integer","maximum":599.0,"minimum":100.0,"title":"Status"},"error_code":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Error Code"},"latency_ms":{"anyOf":[{"type":"integer","maximum":86400000.0,"minimum":0.0},{"type":"null"}],"title":"Latency Ms"},"api_version":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Api Version"},"rate_bucket":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Rate Bucket"},"outcome":{"anyOf":[{"type":"string","pattern":"^(completed|aborted)$"},{"type":"null"}],"title":"Outcome"},"client_ip":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Client Ip"},"user_agent":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"User Agent"},"request_excerpt":{"anyOf":[{"type":"string","maxLength":4096},{"type":"null"}],"title":"Request Excerpt"},"response_excerpt":{"anyOf":[{"type":"string","maxLength":4096},{"type":"null"}],"title":"Response Excerpt"},"created_at":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Created At"}},"type":"object","required":["id","tenant_id","method","path","route","status"],"title":"LogRecord"},"LoginBody":{"properties":{"email":{"type":"string","maxLength":254,"title":"Email"},"password":{"type":"string","maxLength":256,"title":"Password"}},"type":"object","required":["email","password"],"title":"LoginBody"},"MagicBody":{"properties":{"email":{"type":"string","maxLength":254,"title":"Email"},"ref":{"type":"string","maxLength":64,"title":"Ref","default":""}},"type":"object","required":["email"],"title":"MagicBody"},"MoveAccounts":{"properties":{"account_ids":{"items":{"type":"string"},"type":"array","maxItems":200,"minItems":1,"title":"Account Ids"}},"type":"object","required":["account_ids"],"title":"MoveAccounts"},"MoveBody":{"properties":{"account_ids":{"items":{"type":"string"},"type":"array","maxItems":200,"minItems":1,"title":"Account Ids"}},"type":"object","required":["account_ids"],"title":"MoveBody"},"NewProfile":{"properties":{"name":{"type":"string","maxLength":256,"minLength":1,"title":"Name"},"version":{"type":"integer","enum":[4,5],"title":"Version"},"brokerTimezone":{"type":"string","title":"Brokertimezone"},"brokerDSTSwitchTimezone":{"type":"string","title":"Brokerdstswitchtimezone"},"type":{"type":"string","enum":["mtTerminal","managerApi"],"title":"Type","default":"mtTerminal"},"managerLogin":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Managerlogin"},"managerPassword":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Managerpassword"},"managerServer":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Managerserver"}},"type":"object","required":["name","version","brokerTimezone","brokerDSTSwitchTimezone"],"title":"NewProfile"},"NewToken":{"properties":{"name":{"type":"string","maxLength":256,"title":"Name","default":""},"kind":{"type":"string","enum":["api","account"],"title":"Kind","default":"api"},"applications":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Applications"},"roles":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Roles"},"accountIds":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Accountids"},"readOnly":{"type":"boolean","title":"Readonly","default":false},"ttlInHours":{"anyOf":[{"type":"number","maximum":43800.0,"exclusiveMinimum":0.0},{"type":"null"}],"title":"Ttlinhours"},"ipAllowlist":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Ipallowlist"}},"type":"object","title":"NewToken"},"NewTradingAccount":{"properties":{"name":{"type":"string","maxLength":256,"minLength":1,"title":"Name"},"server":{"type":"string","maxLength":128,"minLength":1,"title":"Server"},"login":{"anyOf":[{"type":"string"},{"type":"integer"},{"type":"null"}],"title":"Login"},"password":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Password"},"platform":{"anyOf":[{"type":"string","enum":["mt4","mt5"]},{"type":"null"}],"title":"Platform"},"provisioningProfileId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provisioningprofileid"},"magic":{"type":"integer","minimum":0.0,"title":"Magic","default":0},"manualTrades":{"type":"boolean","title":"Manualtrades","default":false},"slippage":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Slippage"},"quoteStreamingIntervalInSeconds":{"type":"number","minimum":0.0,"title":"Quotestreamingintervalinseconds","default":2.5},"tags":{"items":{"type":"string"},"type":"array","title":"Tags"},"metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata"},"reliability":{"type":"string","enum":["regular","high"],"title":"Reliability","default":"regular"},"resourceSlots":{"type":"integer","maximum":64.0,"minimum":1.0,"title":"Resourceslots","default":1},"copyFactoryResourceSlots":{"type":"integer","maximum":64.0,"minimum":1.0,"title":"Copyfactoryresourceslots","default":1},"region":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Region"},"type":{"type":"string","enum":["cloud","cloud-g1","cloud-g2"],"title":"Type","default":"cloud-g2"},"symbol":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Symbol"},"baseCurrency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Basecurrency"},"copyFactoryRoles":{"items":{"type":"string","enum":["PROVIDER","SUBSCRIBER"]},"type":"array","title":"Copyfactoryroles"},"riskManagementApiEnabled":{"type":"boolean","title":"Riskmanagementapienabled","default":false},"metastatsApiEnabled":{"type":"boolean","title":"Metastatsapienabled","default":false},"allocateDedicatedIp":{"anyOf":[{"type":"string","enum":["ipv4","none"]},{"type":"null"}],"title":"Allocatededicatedip"},"keywords":{"items":{"type":"string"},"type":"array","title":"Keywords"},"serverAddress":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Serveraddress"}},"type":"object","required":["name","server"],"title":"NewTradingAccount"},"OrgBody":{"properties":{"name":{"type":"string","maxLength":120,"minLength":1,"title":"Name"}},"type":"object","required":["name"],"title":"OrgBody"},"PatchAccount":{"properties":{"trade_ea_symbol":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Trade Ea Symbol"}},"type":"object","title":"PatchAccount"},"PatchEndpoint":{"properties":{"enabledEvents":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":100},{"type":"null"}],"title":"Enabledevents"},"url":{"anyOf":[{"type":"string","maxLength":2000,"minLength":8},{"type":"null"}],"title":"Url"},"description":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Description"}},"type":"object","title":"PatchEndpoint"},"PatchMe":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Name"},"current_password":{"anyOf":[{"type":"string","maxLength":256},{"type":"null"}],"title":"Current Password"},"new_password":{"anyOf":[{"type":"string","maxLength":256},{"type":"null"}],"title":"New Password"}},"type":"object","title":"PatchMe"},"PatchPrivateServer":{"properties":{"slots":{"type":"integer","minimum":1.0,"title":"Slots"}},"type":"object","required":["slots"],"title":"PatchPrivateServer"},"PatchReadonlyKey":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"scope":{"anyOf":[{"type":"string","enum":["all","selected"]},{"type":"null"}],"title":"Scope"},"account_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Account Ids"}},"type":"object","title":"PatchReadonlyKey"},"PatchToken":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":256},{"type":"null"}],"title":"Name"},"ipAllowlist":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Ipallowlist"}},"type":"object","title":"PatchToken"},"PayoutBody":{"properties":{"amountCents":{"type":"integer","maximum":100000000.0,"minimum":1.0,"title":"Amountcents"},"reference":{"type":"string","maxLength":200,"title":"Reference"},"note":{"type":"string","maxLength":1000,"title":"Note","default":""}},"type":"object","required":["amountCents","reference"],"title":"PayoutBody"},"PinBody":{"properties":{"apiVersion":{"type":"string","maxLength":32,"minLength":1,"title":"Apiversion"}},"type":"object","required":["apiVersion"],"title":"PinBody"},"PrivateServerAddAccount":{"properties":{"platform":{"type":"string","enum":["mt4","mt5"],"title":"Platform","default":"mt5"},"server":{"type":"string","title":"Server"},"login":{"type":"integer","title":"Login"},"password":{"type":"string","title":"Password"},"nickname":{"type":"string","title":"Nickname","default":""},"trade_ea_symbol":{"type":"string","title":"Trade Ea Symbol","default":""}},"type":"object","required":["server","login","password"],"title":"PrivateServerAddAccount"},"ReasonBody":{"properties":{"reason":{"type":"string","maxLength":500,"title":"Reason","default":""}},"type":"object","title":"ReasonBody"},"ReferralBody":{"properties":{"code":{"type":"string","maxLength":64,"title":"Code"}},"type":"object","required":["code"],"title":"ReferralBody"},"RegisterHost":{"properties":{"id":{"type":"string","maxLength":128,"minLength":1,"title":"Id"},"url":{"type":"string","maxLength":512,"minLength":1,"title":"Url"},"token":{"type":"string","title":"Token","default":""},"region":{"type":"string","title":"Region","default":""},"capacity":{"type":"integer","maximum":10000.0,"minimum":0.0,"title":"Capacity","default":50}},"type":"object","required":["id","url"],"title":"RegisterHost"},"RejectBody":{"properties":{"message":{"type":"string","maxLength":500,"title":"Message","default":""}},"type":"object","title":"RejectBody"},"Release":{"properties":{"why":{"type":"string","maxLength":300,"minLength":1,"title":"Why"}},"type":"object","required":["why"],"title":"Release"},"RoleBody":{"properties":{"role":{"type":"string","title":"Role"}},"type":"object","required":["role"],"title":"RoleBody"},"RotateSecret":{"properties":{"secret":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Secret"},"overlapHours":{"type":"number","title":"Overlaphours","default":24.0}},"type":"object","title":"RotateSecret"},"SandboxQuickstart":{"properties":{"platform":{"type":"string","enum":["mt4","mt5"],"title":"Platform","default":"mt5"}},"additionalProperties":false,"type":"object","title":"SandboxQuickstart"},"SwitchBody":{"properties":{"org_id":{"type":"string","title":"Org Id"}},"type":"object","required":["org_id"],"title":"SwitchBody"},"TokenBody":{"properties":{"token":{"type":"string","maxLength":200,"title":"Token"}},"type":"object","required":["token"],"title":"TokenBody"},"TriggerBody":{"properties":{"type":{"type":"string","maxLength":100,"minLength":1,"title":"Type"},"accountId":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Accountid"}},"additionalProperties":false,"type":"object","required":["type"],"title":"TriggerBody"},"UpdateProfile":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":256,"minLength":1},{"type":"null"}],"title":"Name"},"brokerTimezone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brokertimezone"},"brokerDSTSwitchTimezone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brokerdstswitchtimezone"},"managerLogin":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Managerlogin"},"managerPassword":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Managerpassword"},"managerServer":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Managerserver"}},"type":"object","title":"UpdateProfile"},"UpdateTradingAccount":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":256,"minLength":1},{"type":"null"}],"title":"Name"},"password":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Password"},"server":{"anyOf":[{"type":"string","maxLength":128,"minLength":1},{"type":"null"}],"title":"Server"},"magic":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Magic"},"manualTrades":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Manualtrades"},"slippage":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Slippage"},"quoteStreamingIntervalInSeconds":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Quotestreamingintervalinseconds"},"tags":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Tags"},"metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata"},"copyFactoryRoles":{"anyOf":[{"items":{"type":"string","enum":["PROVIDER","SUBSCRIBER"]},"type":"array"},{"type":"null"}],"title":"Copyfactoryroles"},"resourceSlots":{"anyOf":[{"type":"integer","maximum":64.0,"minimum":1.0},{"type":"null"}],"title":"Resourceslots"},"copyFactoryResourceSlots":{"anyOf":[{"type":"integer","maximum":64.0,"minimum":1.0},{"type":"null"}],"title":"Copyfactoryresourceslots"},"metastatsApiEnabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Metastatsapienabled"},"allocateDedicatedIp":{"anyOf":[{"type":"string","enum":["ipv4","none"]},{"type":"null"}],"title":"Allocatededicatedip"},"serverAddress":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Serveraddress"}},"type":"object","title":"UpdateTradingAccount"},"UpgradeBody":{"properties":{"accounts":{"type":"integer","maximum":100000.0,"minimum":1.0,"title":"Accounts"},"own_address":{"type":"boolean","title":"Own Address","default":false}},"type":"object","required":["accounts"],"title":"UpgradeBody"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"tickwire_controlplane__routers__sandbox__SignupBody":{"properties":{"platform":{"type":"string","enum":["mt4","mt5"],"title":"Platform","default":"mt5"}},"additionalProperties":false,"type":"object","title":"SignupBody"},"tickwire_controlplane__routers__users__SignupBody":{"properties":{"email":{"type":"string","maxLength":254,"title":"Email"},"password":{"anyOf":[{"type":"string","maxLength":256},{"type":"null"}],"title":"Password"},"name":{"type":"string","maxLength":120,"title":"Name","default":""},"org_name":{"type":"string","maxLength":120,"title":"Org Name","default":""},"ref":{"type":"string","maxLength":64,"title":"Ref","default":""}},"type":"object","required":["email"],"title":"SignupBody"}}}}