{"openapi":"3.1.0","info":{"title":"Jobbit Platform API","version":"1"},"paths":{"/health":{"get":{"tags":["health"],"summary":"Live","operationId":"live_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"type":"string"},"type":"object","title":"Response Live Health Get"}}}}}}},"/health/ready":{"get":{"tags":["health"],"summary":"Ready","operationId":"ready_health_ready_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/key":{"get":{"tags":["key"],"summary":"Current Key","operationId":"current_key_v1_key_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Current Key V1 Key Get"}}}}}}},"/v1/me":{"get":{"tags":["account"],"summary":"Me","operationId":"me_v1_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Me V1 Me Get"}}}}}}},"/v1/balance":{"get":{"tags":["account"],"summary":"Balance","operationId":"balance_v1_balance_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Balance V1 Balance Get"}}}}}}},"/v1/plan":{"get":{"tags":["account"],"summary":"Plan","operationId":"plan_v1_plan_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Plan V1 Plan Get"}}}}}}},"/v1/transactions":{"get":{"tags":["account"],"summary":"Transactions","operationId":"transactions_v1_transactions_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Limit"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1,"maxLength":200},{"type":"null"}],"title":"Cursor"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Transactions V1 Transactions Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/usage":{"get":{"tags":["account"],"summary":"Usage","operationId":"usage_v1_usage_get","parameters":[{"name":"from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"From"}},{"name":"to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"To"}},{"name":"group_by","in":"query","required":false,"schema":{"enum":["day","service","day,service"],"type":"string","default":"day","title":"Group By"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Usage V1 Usage Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/billing/products":{"get":{"tags":["billing"],"summary":"Products","operationId":"products_v1_billing_products_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Products V1 Billing Products Get"}}}}}}},"/v1/billing/checkout":{"post":{"tags":["billing"],"summary":"Checkout","operationId":"checkout_v1_billing_checkout_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckoutCreate"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Checkout V1 Billing Checkout Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/models":{"get":{"tags":["inference"],"summary":"Models","operationId":"models_v1_models_get","parameters":[{"name":"output","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Output"}},{"name":"input","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Input"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Models V1 Models Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/images/models":{"get":{"tags":["inference"],"summary":"Image Models","operationId":"image_models_v1_images_models_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Image Models V1 Images Models Get"}}}}}}},"/v1/audio/models":{"get":{"tags":["inference"],"summary":"Audio Models","operationId":"audio_models_v1_audio_models_get","parameters":[{"name":"kind","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^(tts|stt|music)$"},{"type":"null"}],"title":"Kind"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Audio Models V1 Audio Models Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/audio/voices":{"get":{"tags":["inference"],"summary":"Audio Voices","operationId":"audio_voices_v1_audio_voices_get","parameters":[{"name":"model","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":200,"title":"Model"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Audio Voices V1 Audio Voices Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/embeddings/models":{"get":{"tags":["inference"],"summary":"Embedding Models","operationId":"embedding_models_v1_embeddings_models_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Embedding Models V1 Embeddings Models Get"}}}}}}},"/v1/videos/models":{"get":{"tags":["inference"],"summary":"Video Models","operationId":"video_models_v1_videos_models_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Video Models V1 Videos Models Get"}}}}}}},"/v1/decisions/models":{"get":{"tags":["inference"],"summary":"Decision Models","operationId":"decision_models_v1_decisions_models_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Decision Models V1 Decisions Models Get"}}}}}}},"/v1/chat/completions":{"post":{"tags":["inference"],"summary":"Chat Completions","operationId":"chat_completions_v1_chat_completions_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/images/generations":{"post":{"tags":["inference"],"summary":"Images","operationId":"images_v1_images_generations_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/audio/speech":{"post":{"tags":["inference"],"summary":"Speech","operationId":"speech_v1_audio_speech_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/audio/transcriptions":{"post":{"tags":["inference"],"summary":"Transcriptions","operationId":"transcriptions_v1_audio_transcriptions_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/decisions":{"post":{"tags":["inference"],"summary":"Decisions","operationId":"decisions_v1_decisions_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/embeddings":{"post":{"tags":["inference"],"summary":"Embeddings","operationId":"embeddings_v1_embeddings_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/audio/music":{"post":{"tags":["inference"],"summary":"Music","operationId":"music_v1_audio_music_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/videos":{"post":{"tags":["inference"],"summary":"Create Video","operationId":"create_video_v1_videos_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/videos/{job_id}":{"get":{"tags":["inference"],"summary":"Get Video","operationId":"get_video_v1_videos__job_id__get","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":200,"pattern":"^[A-Za-z0-9_.:-]+$","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/videos/{job_id}/content":{"get":{"tags":["inference"],"summary":"Video Content","operationId":"video_content_v1_videos__job_id__content_get","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":200,"pattern":"^[A-Za-z0-9_.:-]+$","title":"Job Id"}},{"name":"index","in":"query","required":false,"schema":{"type":"integer","maximum":8,"minimum":0,"default":0,"title":"Index"}},{"name":"store","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Store"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/agent-tasks":{"post":{"tags":["agent tasks"],"summary":"Create Task","operationId":"create_task_v1_agent_tasks_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"get":{"tags":["agent tasks"],"summary":"List Tasks","operationId":"list_tasks_v1_agent_tasks_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}],"title":"Status"}},{"name":"workspace","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Workspace"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Cursor"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Tasks V1 Agent Tasks Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/agent-tasks/{task_id}":{"get":{"tags":["agent tasks"],"summary":"Get Task","operationId":"get_task_v1_agent_tasks__task_id__get","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9-]+$","title":"Task Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Task V1 Agent Tasks  Task Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/agent-tasks/{task_id}/events":{"get":{"tags":["agent tasks"],"summary":"Task Events","operationId":"task_events_v1_agent_tasks__task_id__events_get","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9-]+$","title":"Task Id"}},{"name":"last-event-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Last-Event-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/agent-tasks/{task_id}/input":{"post":{"tags":["agent tasks"],"summary":"Answer Task","operationId":"answer_task_v1_agent_tasks__task_id__input_post","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9-]+$","title":"Task Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Answer Task V1 Agent Tasks  Task Id  Input Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/agent-tasks/{task_id}/cancel":{"post":{"tags":["agent tasks"],"summary":"Cancel Task","operationId":"cancel_task_v1_agent_tasks__task_id__cancel_post","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9-]+$","title":"Task Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Cancel Task V1 Agent Tasks  Task Id  Cancel Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/files":{"post":{"tags":["files"],"summary":"Upload File","operationId":"upload_file_v1_files_post","responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response Upload File V1 Files Post"}}}}}},"get":{"tags":["files"],"summary":"List Files","operationId":"list_files_v1_files_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Cursor"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response List Files V1 Files Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/files/{file_id}":{"get":{"tags":["files"],"summary":"Get File","operationId":"get_file_v1_files__file_id__get","parameters":[{"name":"file_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9-]+$","title":"File Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response Get File V1 Files  File Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["files"],"summary":"Delete File","operationId":"delete_file_v1_files__file_id__delete","parameters":[{"name":"file_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9-]+$","title":"File Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/files/{file_id}/content":{"get":{"tags":["files"],"summary":"File Content","operationId":"file_content_v1_files__file_id__content_get","parameters":[{"name":"file_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9-]+$","title":"File Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/library":{"get":{"tags":["library"],"summary":"List Library","operationId":"list_library_v1_library_get","parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Page Size"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Search"}},{"name":"type","in":"query","required":false,"schema":{"anyOf":[{"enum":["image","video","audio","document"],"type":"string"},{"type":"null"}],"title":"Type"}},{"name":"favourite","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Favourite"}},{"name":"from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"From"}},{"name":"to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"To"}},{"name":"sort","in":"query","required":false,"schema":{"enum":["created","name","size"],"type":"string","default":"created","title":"Sort"}},{"name":"reverse","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Reverse"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Library V1 Library Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/library/{file_id}":{"delete":{"tags":["library"],"summary":"Delete Library File","operationId":"delete_library_file_v1_library__file_id__delete","parameters":[{"name":"file_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9_-]+$","title":"File Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/uploads":{"post":{"tags":["deploys"],"summary":"Upload","operationId":"upload_v1_uploads_post","responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Upload V1 Uploads Post"}}}}}}},"/v1/apps":{"get":{"tags":["deploys"],"summary":"List Apps","operationId":"list_apps_v1_apps_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Status"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Search"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Page Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Apps V1 Apps Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["deploys"],"summary":"Create App","operationId":"create_app_v1_apps_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppCreate"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create App V1 Apps Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/apps/{name}":{"get":{"tags":["deploys"],"summary":"Get App","operationId":"get_app_v1_apps__name__get","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9][A-Za-z0-9-]*$","title":"Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get App V1 Apps  Name  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["deploys"],"summary":"Delete App","operationId":"delete_app_v1_apps__name__delete","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9][A-Za-z0-9-]*$","title":"Name"}},{"name":"drop_database","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Drop Database"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Delete App V1 Apps  Name  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/apps/{name}/deployments":{"post":{"tags":["deploys"],"summary":"Redeploy","operationId":"redeploy_v1_apps__name__deployments_post","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9][A-Za-z0-9-]*$","title":"Name"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeploymentCreate"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Redeploy V1 Apps  Name  Deployments Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/deployments/{deployment_id}":{"get":{"tags":["deploys"],"summary":"Get Deployment","operationId":"get_deployment_v1_deployments__deployment_id__get","parameters":[{"name":"deployment_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9_-]+$","title":"Deployment Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Deployment V1 Deployments  Deployment Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/deployments/{deployment_id}/logs":{"get":{"tags":["deploys"],"summary":"Deployment Logs","operationId":"deployment_logs_v1_deployments__deployment_id__logs_get","parameters":[{"name":"deployment_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9_-]+$","title":"Deployment Id"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Deployment Logs V1 Deployments  Deployment Id  Logs Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/apps/{name}/logs":{"get":{"tags":["deploys"],"summary":"App Logs","operationId":"app_logs_v1_apps__name__logs_get","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9][A-Za-z0-9-]*$","title":"Name"}},{"name":"tail","in":"query","required":false,"schema":{"type":"integer","maximum":2000,"minimum":1,"default":100,"title":"Tail"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response App Logs V1 Apps  Name  Logs Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/apps/{name}/restart":{"post":{"tags":["deploys"],"summary":"Restart App","operationId":"restart_app_v1_apps__name__restart_post","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9][A-Za-z0-9-]*$","title":"Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Restart App V1 Apps  Name  Restart Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/apps/{name}/env":{"get":{"tags":["deploys"],"summary":"Get Env","operationId":"get_env_v1_apps__name__env_get","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9][A-Za-z0-9-]*$","title":"Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Env V1 Apps  Name  Env Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["deploys"],"summary":"Set Env","operationId":"set_env_v1_apps__name__env_put","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9][A-Za-z0-9-]*$","title":"Name"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnvVars"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/apps/{name}/usage":{"get":{"tags":["deploys"],"summary":"App Usage","operationId":"app_usage_v1_apps__name__usage_get","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9][A-Za-z0-9-]*$","title":"Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response App Usage V1 Apps  Name  Usage Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/apps/{name}/domain":{"put":{"tags":["deploys"],"summary":"Set Domain","operationId":"set_domain_v1_apps__name__domain_put","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9][A-Za-z0-9-]*$","title":"Name"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainSet"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Set Domain V1 Apps  Name  Domain Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["deploys"],"summary":"Remove Domain","operationId":"remove_domain_v1_apps__name__domain_delete","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9][A-Za-z0-9-]*$","title":"Name"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/apps/{name}/domain/check":{"get":{"tags":["deploys"],"summary":"Check Domain","operationId":"check_domain_v1_apps__name__domain_check_get","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9][A-Za-z0-9-]*$","title":"Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Check Domain V1 Apps  Name  Domain Check Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/apps/{name}/usage/history":{"get":{"tags":["deploys"],"summary":"App Usage History","operationId":"app_usage_history_v1_apps__name__usage_history_get","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9][A-Za-z0-9-]*$","title":"Name"}},{"name":"hours","in":"query","required":false,"schema":{"type":"integer","maximum":720,"minimum":1,"default":24,"title":"Hours"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response App Usage History V1 Apps  Name  Usage History Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/apps/{name}/analytics/{report}":{"get":{"tags":["deploys"],"summary":"App Analytics","operationId":"app_analytics_v1_apps__name__analytics__report__get","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9][A-Za-z0-9-]*$","title":"Name"}},{"name":"report","in":"path","required":true,"schema":{"type":"string","title":"Report"}},{"name":"period","in":"query","required":false,"schema":{"enum":["1h","24h","7d","30d","90d"],"type":"string","default":"7d","title":"Period"}},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":500,"minimum":1},{"type":"null"}],"title":"Limit"}},{"name":"steps","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"},"maxItems":10},{"type":"null"}],"title":"Steps"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/apps/{name}/analytics":{"get":{"tags":["deploys"],"summary":"App Analytics","operationId":"app_analytics_v1_apps__name__analytics_get","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9][A-Za-z0-9-]*$","title":"Name"}},{"name":"report","in":"query","required":false,"schema":{"type":"string","default":"stats","title":"Report"}},{"name":"period","in":"query","required":false,"schema":{"enum":["1h","24h","7d","30d","90d"],"type":"string","default":"7d","title":"Period"}},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":500,"minimum":1},{"type":"null"}],"title":"Limit"}},{"name":"steps","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"},"maxItems":10},{"type":"null"}],"title":"Steps"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/databases":{"get":{"tags":["databases"],"summary":"List Databases","operationId":"list_databases_v1_databases_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Status"}},{"name":"kind","in":"query","required":false,"schema":{"type":"string","pattern":"^(production|preview|all)$","default":"production","title":"Kind"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Databases V1 Databases Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/databases/{database_id}":{"get":{"tags":["databases"],"summary":"Get Database","operationId":"get_database_v1_databases__database_id__get","parameters":[{"name":"database_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9_-]+$","title":"Database Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Database V1 Databases  Database Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["databases"],"summary":"Delete Database","operationId":"delete_database_v1_databases__database_id__delete","parameters":[{"name":"database_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9_-]+$","title":"Database Id"}},{"name":"permanent","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Permanent"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Delete Database V1 Databases  Database Id  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/databases/{database_id}/usage":{"get":{"tags":["databases"],"summary":"Database Usage","operationId":"database_usage_v1_databases__database_id__usage_get","parameters":[{"name":"database_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9_-]+$","title":"Database Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Database Usage V1 Databases  Database Id  Usage Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/databases/{database_id}/credentials":{"get":{"tags":["databases"],"summary":"Database Credentials","operationId":"database_credentials_v1_databases__database_id__credentials_get","parameters":[{"name":"database_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9_-]+$","title":"Database Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Database Credentials V1 Databases  Database Id  Credentials Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/databases/{database_id}/reset-password":{"post":{"tags":["databases"],"summary":"Reset Password","operationId":"reset_password_v1_databases__database_id__reset_password_post","parameters":[{"name":"database_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9_-]+$","title":"Database Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Reset Password V1 Databases  Database Id  Reset Password Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/domains":{"get":{"tags":["domains"],"summary":"List Domains","operationId":"list_domains_v1_domains_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response List Domains V1 Domains Get"}}}}}}},"/v1/domains/check":{"get":{"tags":["domains"],"summary":"Check Domain","operationId":"check_domain_v1_domains_check_get","parameters":[{"name":"domain","in":"query","required":true,"schema":{"type":"string","minLength":3,"maxLength":253,"title":"Domain"}},{"name":"currency","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":3,"maxLength":3},{"type":"null"}],"title":"Currency"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response Check Domain V1 Domains Check Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/domains/checkout":{"post":{"tags":["domains"],"summary":"Buy Domain","operationId":"buy_domain_v1_domains_checkout_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Purchase"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response Buy Domain V1 Domains Checkout Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/domains/{domain_id}":{"get":{"tags":["domains"],"summary":"Get Domain","operationId":"get_domain_v1_domains__domain_id__get","parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9_-]+$","title":"Domain Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response Get Domain V1 Domains  Domain Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/domains/{domain_id}/renew":{"post":{"tags":["domains"],"summary":"Renew Domain","operationId":"renew_domain_v1_domains__domain_id__renew_post","parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9_-]+$","title":"Domain Id"}}],"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response Renew Domain V1 Domains  Domain Id  Renew Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/domains/{domain_id}/app":{"put":{"tags":["domains"],"summary":"Bind App","operationId":"bind_app_v1_domains__domain_id__app_put","parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9_-]+$","title":"Domain Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppBinding"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response Bind App V1 Domains  Domain Id  App Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["domains"],"summary":"Unbind App","operationId":"unbind_app_v1_domains__domain_id__app_delete","parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9_-]+$","title":"Domain Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response Unbind App V1 Domains  Domain Id  App Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/domains/{domain_id}/mail":{"put":{"tags":["domains"],"summary":"Bind Mail","operationId":"bind_mail_v1_domains__domain_id__mail_put","parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9_-]+$","title":"Domain Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response Bind Mail V1 Domains  Domain Id  Mail Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["domains"],"summary":"Unbind Mail","operationId":"unbind_mail_v1_domains__domain_id__mail_delete","parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9_-]+$","title":"Domain Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response Unbind Mail V1 Domains  Domain Id  Mail Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/domains/{domain_id}/dns-records":{"get":{"tags":["domains"],"summary":"List Dns Records","operationId":"list_dns_records_v1_domains__domain_id__dns_records_get","parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9_-]+$","title":"Domain Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response List Dns Records V1 Domains  Domain Id  Dns Records Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["domains"],"summary":"Create Dns Record","operationId":"create_dns_record_v1_domains__domain_id__dns_records_post","parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9_-]+$","title":"Domain Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DnsRecord"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response Create Dns Record V1 Domains  Domain Id  Dns Records Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/domains/{domain_id}/dns-records/{record_id}":{"patch":{"tags":["domains"],"summary":"Update Dns Record","operationId":"update_dns_record_v1_domains__domain_id__dns_records__record_id__patch","parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9_-]+$","title":"Domain Id"}},{"name":"record_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9_-]+$","title":"Record Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DnsRecord"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response Update Dns Record V1 Domains  Domain Id  Dns Records  Record Id  Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["domains"],"summary":"Delete Dns Record","operationId":"delete_dns_record_v1_domains__domain_id__dns_records__record_id__delete","parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9_-]+$","title":"Domain Id"}},{"name":"record_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9_-]+$","title":"Record Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/webhooks":{"get":{"tags":["webhooks"],"summary":"List Webhooks","operationId":"list_webhooks_v1_webhooks_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response List Webhooks V1 Webhooks Get"}}}}}},"post":{"tags":["webhooks"],"summary":"Create Webhook","operationId":"create_webhook_v1_webhooks_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookCreate"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Create Webhook V1 Webhooks Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/webhooks/{webhook_id}":{"get":{"tags":["webhooks"],"summary":"Get Webhook","operationId":"get_webhook_v1_webhooks__webhook_id__get","parameters":[{"name":"webhook_id","in":"path","required":true,"schema":{"type":"string","minLength":23,"maxLength":23,"pattern":"^wh_[a-z0-9]{20}$","title":"Webhook Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Webhook V1 Webhooks  Webhook Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["webhooks"],"summary":"Delete Webhook","operationId":"delete_webhook_v1_webhooks__webhook_id__delete","parameters":[{"name":"webhook_id","in":"path","required":true,"schema":{"type":"string","minLength":23,"maxLength":23,"pattern":"^wh_[a-z0-9]{20}$","title":"Webhook Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/webhooks/{webhook_id}/deliveries":{"get":{"tags":["webhooks"],"summary":"List Deliveries","operationId":"list_deliveries_v1_webhooks__webhook_id__deliveries_get","parameters":[{"name":"webhook_id","in":"path","required":true,"schema":{"type":"string","minLength":23,"maxLength":23,"pattern":"^wh_[a-z0-9]{20}$","title":"Webhook Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Deliveries V1 Webhooks  Webhook Id  Deliveries Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ui/v1/scopes":{"get":{"tags":["ui"],"summary":"Scopes","operationId":"scopes_ui_v1_scopes_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Scopes Ui V1 Scopes Get"}}}}}}},"/ui/v1/keys":{"get":{"tags":["ui"],"summary":"List Keys","operationId":"list_keys_ui_v1_keys_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response List Keys Ui V1 Keys Get"}}}}}},"post":{"tags":["ui"],"summary":"Create","operationId":"create_ui_v1_keys_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeyCreate"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Create Ui V1 Keys Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ui/v1/keys/{key_id}":{"patch":{"tags":["ui"],"summary":"Update","operationId":"update_ui_v1_keys__key_id__patch","parameters":[{"name":"key_id","in":"path","required":true,"schema":{"type":"string","title":"Key Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeyUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Update Ui V1 Keys  Key Id  Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["ui"],"summary":"Revoke","operationId":"revoke_ui_v1_keys__key_id__delete","parameters":[{"name":"key_id","in":"path","required":true,"schema":{"type":"string","title":"Key Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ui/v1/integrations":{"get":{"tags":["ui"],"summary":"List Integrations","operationId":"list_integrations_ui_v1_integrations_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response List Integrations Ui V1 Integrations Get"}}}}}}},"/ui/v1/integrations/connections/{connection_id}":{"delete":{"tags":["ui"],"summary":"Disconnect","operationId":"disconnect_ui_v1_integrations_connections__connection_id__delete","parameters":[{"name":"connection_id","in":"path","required":true,"schema":{"type":"string","title":"Connection Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ui/v1/integrations/products/{product}":{"delete":{"tags":["ui"],"summary":"Disconnect Product","operationId":"disconnect_product_ui_v1_integrations_products__product__delete","parameters":[{"name":"product","in":"path","required":true,"schema":{"type":"string","title":"Product"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Disconnect Product Ui V1 Integrations Products  Product  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ui/v1/oauth/requests/{request_id}":{"get":{"tags":["oauth"],"summary":"Consent Request","operationId":"consent_request_ui_v1_oauth_requests__request_id__get","parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"string","title":"Request Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Consent Request Ui V1 Oauth Requests  Request Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ui/v1/oauth/requests/{request_id}/approve":{"post":{"tags":["oauth"],"summary":"Approve","operationId":"approve_ui_v1_oauth_requests__request_id__approve_post","parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"string","title":"Request Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/Approval"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Approve Ui V1 Oauth Requests  Request Id  Approve Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ui/v1/oauth/requests/{request_id}/deny":{"post":{"tags":["oauth"],"summary":"Deny","operationId":"deny_ui_v1_oauth_requests__request_id__deny_post","parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"string","title":"Request Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Deny Ui V1 Oauth Requests  Request Id  Deny Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"AppBinding":{"properties":{"app":{"type":"string","maxLength":100,"minLength":1,"pattern":"^[A-Za-z0-9][A-Za-z0-9-]*$","title":"App"}},"additionalProperties":false,"type":"object","required":["app"],"title":"AppBinding"},"AppCreate":{"properties":{"upload_id":{"type":"string","maxLength":128,"minLength":1,"title":"Upload Id"},"name":{"anyOf":[{"type":"string","maxLength":60,"minLength":1,"pattern":"^[a-z0-9][a-z0-9-]*$"},{"type":"null"}],"title":"Name"},"env":{"additionalProperties":{"type":"string"},"type":"object","maxProperties":200,"title":"Env"},"database":{"type":"string","enum":["none","managed"],"title":"Database","default":"none"},"description":{"type":"string","maxLength":500,"title":"Description","default":""}},"additionalProperties":false,"type":"object","required":["upload_id"],"title":"AppCreate"},"Approval":{"properties":{"scopes":{"anyOf":[{"items":{"$ref":"#/components/schemas/Scope"},"type":"array","maxItems":50,"minItems":1},{"type":"null"}],"title":"Scopes"}},"additionalProperties":false,"type":"object","title":"Approval"},"CheckoutCreate":{"properties":{"price_id":{"type":"string","maxLength":200,"minLength":1,"title":"Price Id"}},"additionalProperties":false,"type":"object","required":["price_id"],"title":"CheckoutCreate"},"DeploymentCreate":{"properties":{"upload_id":{"type":"string","maxLength":128,"minLength":1,"title":"Upload Id"},"env":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object","maxProperties":200},{"type":"null"}],"title":"Env"},"database":{"anyOf":[{"type":"string","enum":["none","managed"]},{"type":"null"}],"title":"Database"}},"additionalProperties":false,"type":"object","required":["upload_id"],"title":"DeploymentCreate"},"DnsRecord":{"properties":{"type":{"anyOf":[{"type":"string","maxLength":10},{"type":"null"}],"title":"Type"},"name":{"anyOf":[{"type":"string","maxLength":253},{"type":"null"}],"title":"Name"},"content":{"anyOf":[{"type":"string","maxLength":4096},{"type":"null"}],"title":"Content"},"ttl":{"anyOf":[{"type":"integer","maximum":86400.0,"minimum":1.0},{"type":"null"}],"title":"Ttl"},"proxied":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Proxied"},"priority":{"anyOf":[{"type":"integer","maximum":65535.0,"minimum":0.0},{"type":"null"}],"title":"Priority"},"comment":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Comment"}},"additionalProperties":false,"type":"object","title":"DnsRecord"},"DomainSet":{"properties":{"domain":{"type":"string","maxLength":254,"minLength":4,"title":"Domain"}},"additionalProperties":false,"type":"object","required":["domain"],"title":"DomainSet"},"EnvVars":{"properties":{"env":{"additionalProperties":{"type":"string"},"type":"object","maxProperties":200,"title":"Env"}},"additionalProperties":false,"type":"object","required":["env"],"title":"EnvVars"},"Event":{"type":"string","enum":["agent_task.finished","deployment.succeeded","deployment.failed","balance.low","automation_run.finished"],"title":"Event"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"KeyCreate":{"properties":{"name":{"type":"string","maxLength":100,"minLength":1,"title":"Name"},"preset":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Preset"},"scopes":{"anyOf":[{"items":{"$ref":"#/components/schemas/Scope"},"type":"array","maxItems":50,"minItems":1},{"type":"null"}],"title":"Scopes"},"restrictions":{"$ref":"#/components/schemas/Restrictions"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"}},"additionalProperties":false,"type":"object","required":["name"],"title":"KeyCreate"},"KeyUpdate":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":100,"minLength":1},{"type":"null"}],"title":"Name"},"scopes":{"anyOf":[{"items":{"$ref":"#/components/schemas/Scope"},"type":"array","maxItems":50,"minItems":1},{"type":"null"}],"title":"Scopes"},"restrictions":{"anyOf":[{"$ref":"#/components/schemas/Restrictions"},{"type":"null"}]},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"}},"additionalProperties":false,"type":"object","title":"KeyUpdate"},"Purchase":{"properties":{"domain":{"type":"string","maxLength":253,"minLength":3,"title":"Domain"},"registrant":{"additionalProperties":true,"type":"object","title":"Registrant"},"auto_renew":{"type":"boolean","title":"Auto Renew","default":true},"currency":{"anyOf":[{"type":"string","maxLength":3,"minLength":3},{"type":"null"}],"title":"Currency"}},"additionalProperties":false,"type":"object","required":["domain","registrant"],"title":"Purchase"},"Restrictions":{"properties":{"apps":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":100},{"type":"null"}],"title":"Apps"},"models":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":100},{"type":"null"}],"title":"Models"},"workspaces":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":100},{"type":"null"}],"title":"Workspaces"},"ips":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":50},{"type":"null"}],"title":"Ips"},"max_credits_per_day":{"anyOf":[{"type":"number","exclusiveMinimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*(?:\\d{0,10}|(?=[\\d.]{1,15}0*$)\\d{0,10}\\.\\d{0,4}0*$)"},{"type":"null"}],"title":"Max Credits Per Day"},"max_credits_per_month":{"anyOf":[{"type":"number","exclusiveMinimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*(?:\\d{0,10}|(?=[\\d.]{1,15}0*$)\\d{0,10}\\.\\d{0,4}0*$)"},{"type":"null"}],"title":"Max Credits Per Month"}},"additionalProperties":false,"type":"object","title":"Restrictions"},"Scope":{"type":"string","enum":["account:read","billing:write","ai","agent:read","agent:write","deploy:read","deploy:write","deploy:admin","files:read","files:write","connectors:read","connectors:write","connectors:actions","automations:read","automations:write","automations:run","webhooks:write","projects:read","projects:write","domains:read","domains:write"],"title":"Scope"},"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"},"WebhookCreate":{"properties":{"url":{"type":"string","maxLength":2000,"minLength":9,"title":"Url"},"events":{"items":{"$ref":"#/components/schemas/Event"},"type":"array","maxItems":5,"minItems":1,"title":"Events"},"description":{"type":"string","maxLength":200,"title":"Description","default":""},"balance_below":{"anyOf":[{"type":"number","exclusiveMinimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*(?:\\d{0,10}|(?=[\\d.]{1,15}0*$)\\d{0,10}\\.\\d{0,4}0*$)"},{"type":"null"}],"title":"Balance Below"}},"additionalProperties":false,"type":"object","required":["url","events"],"title":"WebhookCreate"}}}}