{"openapi":"3.1.0","info":{"title":"AutoAgent customer API","description":"Prepaid static HTML extraction. Read /agents for billing, retries and crawl restrictions.","version":"0.5.0"},"paths":{"/v1/pricing":{"get":{"summary":"Pricing","operationId":"pricing_v1_pricing_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/extract":{"post":{"summary":"Extract","operationId":"extract_v1_extract_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExtractRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"CustomerKey":[]}]}},"/v1/account":{"get":{"summary":"Account","operationId":"account_v1_account_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"CustomerKey":[]}]}},"/v1/topups":{"get":{"summary":"Topups","operationId":"topups_v1_topups_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"CustomerKey":[]}]},"post":{"summary":"Topup","operationId":"topup_v1_topups_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TopupInput"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"CustomerKey":[]}]}},"/v1/topups/{order_id}":{"get":{"summary":"Get Topup","operationId":"get_topup_v1_topups__order_id__get","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","title":"Order Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"CustomerKey":[]}]}},"/v1/topups/{order_id}/refresh":{"post":{"summary":"Refresh Topup","operationId":"refresh_topup_v1_topups__order_id__refresh_post","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","title":"Order Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"CustomerKey":[]}]}},"/v1/signup/challenge":{"get":{"summary":"Challenge","operationId":"challenge_v1_signup_challenge_get","parameters":[{"name":"purpose","in":"query","required":false,"schema":{"enum":["signup","recover"],"type":"string","default":"signup","title":"Purpose"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/signup":{"post":{"summary":"Signup","operationId":"signup_v1_signup_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignupInput"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/account/recover":{"post":{"summary":"Recover","operationId":"recover_v1_account_recover_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecoveryInput"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/feedback":{"get":{"summary":"Listing","operationId":"listing_v1_feedback_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"CustomerKey":[]}]},"post":{"summary":"Submit","operationId":"submit_v1_feedback_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeedbackInput"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"CustomerKey":[]}]}},"/v1/feedback/{feedback_id}":{"get":{"summary":"Detail","operationId":"detail_v1_feedback__feedback_id__get","parameters":[{"name":"feedback_id","in":"path","required":true,"schema":{"type":"string","title":"Feedback Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"CustomerKey":[]}]}}},"components":{"schemas":{"ExtractRequest":{"properties":{"url":{"type":"string","maxLength":2048,"minLength":1,"title":"Url"},"mode":{"type":"string","enum":["pricing","selectors"],"title":"Mode","default":"pricing"},"fields":{"additionalProperties":{"$ref":"#/components/schemas/FieldSpec"},"type":"object","maxProperties":10,"title":"Fields"},"idempotency_key":{"type":"string","minLength":1,"maxLength":128,"description":"Persist and reuse on uncertain outcomes. Different keys create independently charged jobs."}},"additionalProperties":false,"type":"object","required":["url","idempotency_key"],"title":"ExtractRequest"},"FeedbackInput":{"properties":{"subject":{"type":"string","maxLength":120,"minLength":1,"title":"Subject"},"category":{"type":"string","enum":["bug","accuracy","feature","billing","other"],"title":"Category","default":"other"},"message":{"type":"string","maxLength":4000,"minLength":1,"title":"Message"},"idempotency_key":{"type":"string","maxLength":128,"minLength":1,"title":"Idempotency Key"}},"additionalProperties":false,"type":"object","required":["subject","message","idempotency_key"],"title":"FeedbackInput"},"FieldSpec":{"properties":{"selector":{"type":"string","maxLength":200,"minLength":1,"title":"Selector"},"attribute":{"anyOf":[{"type":"string","maxLength":40,"pattern":"^[a-zA-Z][a-zA-Z0-9_-]*$"},{"type":"null"}],"title":"Attribute"}},"additionalProperties":false,"type":"object","required":["selector"],"title":"FieldSpec"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"RecoveryInput":{"properties":{"challenge":{"type":"string","maxLength":128,"pattern":"^(signup|recover)\\.[0-9]{1,12}\\.[0-9a-f]{32}\\.[0-9a-f]{64}$","title":"Challenge"},"nonce":{"type":"string","pattern":"^[0-9]{1,16}$","title":"Nonce"},"customer_id":{"type":"string","pattern":"^[0-9a-f]{32}$","title":"Customer Id"},"recovery_code":{"type":"string","maxLength":46,"minLength":46,"format":"password","title":"Recovery Code","writeOnly":true}},"additionalProperties":false,"type":"object","required":["challenge","nonce","customer_id","recovery_code"],"title":"RecoveryInput"},"SignupInput":{"properties":{"challenge":{"type":"string","maxLength":128,"pattern":"^(signup|recover)\\.[0-9]{1,12}\\.[0-9a-f]{32}\\.[0-9a-f]{64}$","title":"Challenge"},"nonce":{"type":"string","pattern":"^[0-9]{1,16}$","title":"Nonce"},"label":{"type":"string","maxLength":80,"minLength":1,"title":"Label","default":"My agent"}},"additionalProperties":false,"type":"object","required":["challenge","nonce"],"title":"SignupInput"},"TopupInput":{"properties":{"amount_usdc":{"type":"integer","maximum":100000.0,"minimum":1.0,"title":"Amount Usdc"}},"additionalProperties":false,"type":"object","required":["amount_usdc"],"title":"TopupInput"},"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"}},"securitySchemes":{"CustomerKey":{"type":"http","scheme":"bearer","bearerFormat":"Customer API key"}}},"servers":[{"url":"https://rico.tail855fbd.ts.net"}]}