{"openapi":"3.1.0","info":{"title":"ZZHTTP Rotating Residential API","version":"1.0.0","description":"Documents existing public dynamic API behavior using synthetic examples. Proxy extraction and account allowlist endpoints use different response envelopes."},"servers":[{"url":"https://api.zzhttp.com/openapi/v1/proxy"}],"security":[{"AccountAPIKey":[]}],"components":{"securitySchemes":{"AccountAPIKey":{"type":"apiKey","in":"query","name":"api_key"},"HeaderAPIKey":{"type":"apiKey","in":"header","name":"X-API-Key"},"BearerAPIKey":{"type":"http","scheme":"bearer"}}},"paths":{"/whitelist/list":{"get":{"operationId":"get__whitelist_list","summary":"List dynamic proxy allowlist entries","description":"List entries in the current account's allowlist, with an optional exact IP filter.","parameters":[{"name":"page","in":"query","description":"Page number. Defaults to 1.","schema":{"type":"integer","description":"Page number. Defaults to 1.","minimum":1,"default":1},"required":false},{"name":"page_size","in":"query","description":"Records per page. Defaults to 20 and has a maximum of 100.","schema":{"type":"integer","description":"Records per page. Defaults to 20 and has a maximum of 100.","minimum":1,"maximum":100,"default":20},"required":false},{"name":"status","in":"query","description":"Filter by status.","schema":{"type":"string","description":"Filter by status.","enum":["all","active","disabled"],"default":"all"},"required":false},{"name":"ip","in":"query","description":"Filter for an exact source IP.","schema":{"type":"string","description":"Filter for an exact source IP."},"required":false}],"x-doc-path":"/developers/api/ip-whitelist-list","x-auth-notes":"Use HTTPS and provide one nonempty api_key query parameter containing an account API token.","x-response-notes":"Responses omit internal fields and proxy passwords. Extraction succeeds with HTTP 200 and code 0. Allowlist and country catalog requests use code 200 for success. Extraction POST errors use code and message. Successful country catalog responses omit requestId.","x-retry-notes":"Each token can make 60 list requests per minute and 10 add or delete requests per minute for each operation. On HTTP 429, wait as directed by Retry-After. If a write has an unknown outcome, check the allowlist first and retry only failed items.","x-errors":[{"http":"200","code":"10000","description":"Invalid business parameters. Check the business code even if HTTP status is 200."},{"http":"401","code":"10001","description":"Invalid authentication token"},{"http":"429","code":"10000","description":"Rate limit exceeded. Wait as directed by Retry-After."}],"responses":{"200":{"description":"Success or a per-item batch result. Check the business code as well as the HTTP status.","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"integer","description":"Success uses 200. Any item failure in an allowlist batch produces 10431."},"message":{"type":"string","description":"Response message."},"requestId":{"type":"string","description":"Request ID for troubleshooting."},"data":{"type":"object","properties":{"items":{"type":"array","description":"Current page of allowlist entries for the account.","items":{"type":"object","properties":{"whitelist_id":{"type":"integer","description":"Allowlist entry ID.","minimum":1},"ip":{"type":"string","description":"Exact source IPv4 address."},"remark":{"type":"string","description":"Customer note, up to 255 characters."},"status":{"type":"integer","description":"1 means enabled and 3 means disabled. Deleted entries are excluded.","enum":[1,3]},"created_at":{"type":"string","description":"Creation time in RFC3339 format.","format":"date-time"}},"required":["whitelist_id","ip","remark","status","created_at"],"additionalProperties":false}},"page":{"type":"integer","description":"Page number, starting at 1."},"page_size":{"type":"integer","description":"Records per page."},"total":{"type":"integer","description":"Total records matching the filters."}},"required":["items","page","page_size","total"],"additionalProperties":false,"description":"Response data for this endpoint."}},"required":["code","message","requestId","data"],"additionalProperties":false},"examples":{"success":{"value":{"code":200,"message":"Query succeeded","requestId":"demo-request-001","data":{"items":[{"whitelist_id":101,"ip":"203.0.113.10","remark":"office","status":1,"created_at":"2026-10-06T08:00:00Z"}],"page":1,"page_size":20,"total":1}}}}}}},"default":{"description":"Authentication error example. Check both HTTP status and the business code.","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"integer","description":"Numeric business error code."},"message":{"type":"string","description":"Error description."},"requestId":{"type":"string","description":"Request ID for troubleshooting, separate from the business idempotency key."}},"required":["code","message","requestId"],"additionalProperties":false},"examples":{"error":{"value":{"code":10001,"message":"Invalid API token","requestId":"demo-request-001"}}}}}}},"x-codeSamples":[{"lang":"Shell","label":"cURL","source":"curl --request GET \\\n  \"https://api.zzhttp.com/openapi/v1/proxy/whitelist/list?api_key=${API_KEY}\""}]}},"/whitelist/add":{"post":{"operationId":"post__whitelist_add","summary":"Add dynamic proxy allowlist entries in bulk","description":"Entries are written individually and successful entries are not rolled back. Batches over 100 entries or with an invalid outer structure are rejected in full. Reserved IPs are used to illustrate the format and are rejected by the live endpoint.","parameters":[],"x-doc-path":"/developers/api/ip-whitelist-add","x-auth-notes":"Use HTTPS and provide one nonempty api_key query parameter containing an account API token.","x-response-notes":"Responses omit internal fields and proxy passwords. Extraction succeeds with HTTP 200 and code 0. Allowlist and country catalog requests use code 200 for success. Extraction POST errors use code and message. Successful country catalog responses omit requestId.","x-retry-notes":"Each token can make 60 list requests per minute and 10 add or delete requests per minute for each operation. On HTTP 429, wait as directed by Retry-After. If a write has an unknown outcome, check the allowlist first and retry only failed items.","x-errors":[{"http":"200","code":"10431","description":"Some items failed. Check failed_items."},{"http":"401","code":"10001","description":"Invalid authentication token"},{"http":"429","code":"10000","description":"Rate limit exceeded. Wait as directed by Retry-After."}],"responses":{"200":{"description":"Success or a per-item batch result. Check the business code as well as the HTTP status.","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"integer","description":"Success uses 200. Any item failure in an allowlist batch produces 10431."},"message":{"type":"string","description":"Response message."},"requestId":{"type":"string","description":"Request ID for troubleshooting."},"data":{"type":"object","properties":{"success_count":{"type":"integer","description":"Number of successful entries."},"failed_count":{"type":"integer","description":"Number of failed entries."},"failed_items":{"type":"array","description":"Failure details. Successful addresses are omitted.","items":{"type":"object","properties":{"ip":{"type":"string","description":"Address that failed."},"code":{"type":"integer","description":"Numeric error code for this entry."},"reason":{"type":"string","description":"Reason for failure."}},"required":["ip","code","reason"],"additionalProperties":false}}},"required":["success_count","failed_count","failed_items"],"additionalProperties":false,"description":"Response data for this endpoint."}},"required":["code","message","requestId","data"],"additionalProperties":false},"examples":{"success":{"value":{"code":200,"message":"Processing complete","requestId":"demo-request-001","data":{"success_count":1,"failed_count":0,"failed_items":[]}}},"partial":{"summary":"Partial failure","value":{"code":10431,"message":"Partial failure","requestId":"demo-request-001","data":{"success_count":0,"failed_count":1,"failed_items":[{"ip":"203.0.113.10","code":10403,"reason":"Invalid parameters or allowlist entry not found"}]}}}}}}},"default":{"description":"Authentication error example. Check both HTTP status and the business code.","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"integer","description":"Numeric business error code."},"message":{"type":"string","description":"Error description."},"requestId":{"type":"string","description":"Request ID for troubleshooting, separate from the business idempotency key."}},"required":["code","message","requestId"],"additionalProperties":false},"examples":{"error":{"value":{"code":10001,"message":"Invalid API token","requestId":"demo-request-001"}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","description":"Entries are processed independently. Provide 1–100 overseas public IPv4 addresses.","minItems":1,"maxItems":100,"items":{"type":"object","properties":{"ip":{"type":"string","description":"Authorized overseas public IPv4 address. IPv6, private, and reserved addresses are rejected."},"remark":{"type":"string","description":"Optional note.","maxLength":255}},"required":["ip"],"additionalProperties":false}}},"required":["items"],"additionalProperties":false},"examples":{"request":{"summary":"Request example","value":{"items":[{"ip":"203.0.113.10","remark":"office"}]}}}}}},"x-codeSamples":[{"lang":"Shell","label":"cURL","source":"curl --request POST \\\n  \"https://api.zzhttp.com/openapi/v1/proxy/whitelist/add?api_key=${API_KEY}\" \\\n  --header 'Content-Type: application/json' \\\n  --data '{\"items\":[{\"ip\":\"203.0.113.10\",\"remark\":\"office\"}]}'"}]}},"/whitelist/delete":{"post":{"operationId":"post__whitelist_delete","summary":"Delete dynamic proxy allowlist entries in bulk","description":"Entries are written individually and successful entries are not rolled back. Batches over 100 entries or with an invalid outer structure are rejected in full. Reserved IPs are used to illustrate the format and are rejected by the live endpoint.","parameters":[],"x-doc-path":"/developers/api/ip-whitelist-delete","x-auth-notes":"Use HTTPS and provide one nonempty api_key query parameter containing an account API token.","x-response-notes":"Responses omit internal fields and proxy passwords. Extraction succeeds with HTTP 200 and code 0. Allowlist and country catalog requests use code 200 for success. Extraction POST errors use code and message. Successful country catalog responses omit requestId.","x-retry-notes":"Each token can make 60 list requests per minute and 10 add or delete requests per minute for each operation. On HTTP 429, wait as directed by Retry-After. If a write has an unknown outcome, check the allowlist first and retry only failed items.","x-errors":[{"http":"200","code":"10431","description":"Some items failed. Check failed_items."},{"http":"401","code":"10001","description":"Invalid authentication token"},{"http":"429","code":"10000","description":"Rate limit exceeded. Wait as directed by Retry-After."}],"responses":{"200":{"description":"Success or a per-item batch result. Check the business code as well as the HTTP status.","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"integer","description":"Success uses 200. Any item failure in an allowlist batch produces 10431."},"message":{"type":"string","description":"Response message."},"requestId":{"type":"string","description":"Request ID for troubleshooting."},"data":{"type":"object","properties":{"success_count":{"type":"integer","description":"Number of successful entries."},"failed_count":{"type":"integer","description":"Number of failed entries."},"failed_items":{"type":"array","description":"Failure details. Successful addresses are omitted.","items":{"type":"object","properties":{"ip":{"type":"string","description":"Address that failed."},"code":{"type":"integer","description":"Numeric error code for this entry."},"reason":{"type":"string","description":"Reason for failure."}},"required":["ip","code","reason"],"additionalProperties":false}}},"required":["success_count","failed_count","failed_items"],"additionalProperties":false,"description":"Response data for this endpoint."}},"required":["code","message","requestId","data"],"additionalProperties":false},"examples":{"success":{"value":{"code":200,"message":"Processing complete","requestId":"demo-request-001","data":{"success_count":1,"failed_count":0,"failed_items":[]}}},"partial":{"summary":"Partial failure","value":{"code":10431,"message":"Partial failure","requestId":"demo-request-001","data":{"success_count":0,"failed_count":1,"failed_items":[{"ip":"203.0.113.10","code":10403,"reason":"Invalid parameters or allowlist entry not found"}]}}}}}}},"default":{"description":"Authentication error example. Check both HTTP status and the business code.","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"integer","description":"Numeric business error code."},"message":{"type":"string","description":"Error description."},"requestId":{"type":"string","description":"Request ID for troubleshooting, separate from the business idempotency key."}},"required":["code","message","requestId"],"additionalProperties":false},"examples":{"error":{"value":{"code":10001,"message":"Invalid API token","requestId":"demo-request-001"}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"ips":{"type":"array","description":"Provide 1–100 IPs from your own allowlist. Missing entries and entries in another account both return a failure.","items":{"type":"string","description":"Source IPv4 address to delete."},"minItems":1,"maxItems":100}},"required":["ips"],"additionalProperties":false},"examples":{"request":{"summary":"Request example","value":{"ips":["203.0.113.10"]}}}}}},"x-codeSamples":[{"lang":"Shell","label":"cURL","source":"curl --request POST \\\n  \"https://api.zzhttp.com/openapi/v1/proxy/whitelist/delete?api_key=${API_KEY}\" \\\n  --header 'Content-Type: application/json' \\\n  --data '{\"ips\":[\"203.0.113.10\"]}'"}]}},"/extract":{"get":{"operationId":"get__extract","summary":"Extract proxies with GET and an account token","description":"Authenticate with an account API token or a legacy API Link. The actual source IPv4 address must be enabled in your allowlist. Extraction checks identity verification and an entitlement matching the protocol. These GET and POST endpoints use a compatibility format and do not support session, state, province, or city parameters.","parameters":[{"name":"num","in":"query","description":"Number of proxies to extract.","schema":{"type":"integer","description":"Number of proxies to extract.","minimum":1,"maximum":100},"required":true},{"name":"regions","in":"query","description":"Country code from the country catalog. The country alias is also supported. If both are set, they must match.","schema":{"type":"string","description":"Country code from the country catalog. The country alias is also supported. If both are set, they must match.","default":"GLOBAL"},"required":false},{"name":"protocol","in":"query","description":"Use http for an HTTP proxy. It can reach HTTPS destinations with CONNECT. The value https is not accepted.","schema":{"type":"string","description":"Use http for an HTTP proxy. It can reach HTTPS destinations with CONNECT. The value https is not accepted.","enum":["http","socks5"],"default":"http"},"required":false},{"name":"return_type","in":"query","description":"Response format.","schema":{"type":"string","description":"Response format.","enum":["json","txt"],"default":"json"},"required":false},{"name":"lb","in":"query","description":"TXT separator. 1 is CRLF, 2 is /br, 3 is CR, 4 is LF, 5 is TAB, and 6 uses the custom sb value.","schema":{"type":"string","description":"TXT separator. 1 is CRLF, 2 is /br, 3 is CR, 4 is LF, 5 is TAB, and 6 uses the custom sb value.","enum":["1","2","3","4","5","6"],"default":"1"},"required":false},{"name":"sb","in":"query","description":"Required when lb=6. Must be nonempty and at most 32 UTF-8 bytes.","schema":{"type":"string","description":"Required when lb=6. Must be nonempty and at most 32 UTF-8 bytes."},"required":false},{"name":"request_id","in":"query","description":"Optional idempotent request ID. If omitted, X-Request-Id is used when supplied, or the server generates an ID.","schema":{"type":"string","description":"Optional idempotent request ID. If omitted, X-Request-Id is used when supplied, or the server generates an ID."},"required":false}],"x-doc-path":"/developers/api/api-key-extract-get","x-auth-notes":"Use HTTPS. You can authenticate with the same token in the api_key query parameter, X-API-Key, or Authorization: Bearer. Conflicting values are rejected. The actual source address must still be allowlisted.","x-response-notes":"Responses omit internal fields and proxy passwords. Extraction succeeds with HTTP 200 and code 0. Allowlist and country catalog requests use code 200 for success. Extraction POST errors use code and message. Successful country catalog responses omit requestId.","x-retry-notes":"Reuse the original requestId or request_id if a request is interrupted. Use X-Proxy-Requested-Count, X-Proxy-Returned-Count, and X-Proxy-Partial to detect partial results. Wait as directed by Retry-After if resources are unavailable. Country catalog reads can be retried a limited number of times.","x-errors":[{"http":"200","code":"10000","description":"Invalid business parameters. Check the business code even if HTTP status is 200."},{"http":"401","code":"10009","description":"Invalid authentication token"},{"http":"429","code":"10000","description":"Rate limit exceeded. Wait as directed by Retry-After."}],"responses":{"200":{"description":"Success or a per-item batch result. Check the business code as well as the HTTP status.","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"integer","description":"The compatibility success code is 0. The Static Residential API uses 200.","const":0},"success":{"type":"boolean","description":"Success flag.","const":true},"msg":{"type":"string","description":"Response message."},"data":{"type":"array","description":"Response data for this endpoint.","items":{"type":"object","properties":{"ip":{"type":"string","description":"Proxy gateway IP address or hostname."},"port":{"type":"integer","description":"Proxy gateway port."}},"required":["ip","port"],"additionalProperties":false}},"request_ip":{"type":"string","description":"Actual source IPv4 address identified by the server."}},"required":["code","success","msg","data","request_ip"],"additionalProperties":false},"examples":{"success":{"value":{"code":0,"success":true,"msg":"Successfully obtained","data":[{"ip":"203.0.113.20","port":7878}],"request_ip":"198.51.100.10"}}}},"text/plain":{"schema":{"type":"string"},"example":"203.0.113.20:7878"}}},"default":{"description":"Authentication error example. Check both HTTP status and the business code.","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"integer","description":"Numeric business error code."},"success":{"type":"boolean","description":"Failure flag.","const":false},"msg":{"type":"string","description":"Error description."}},"required":["code","success","msg"],"additionalProperties":false},"examples":{"error":{"value":{"code":10009,"success":false,"msg":"Invalid API token"}}}}}}},"x-codeSamples":[{"lang":"Shell","label":"cURL","source":"curl --request GET \\\n  \"https://api.zzhttp.com/openapi/v1/proxy/extract?api_key=${API_KEY}&num=1&regions=GLOBAL&protocol=http\""}],"security":[{"AccountAPIKey":[]},{"HeaderAPIKey":[]},{"BearerAPIKey":[]}],"x-auth-query-required":false},"post":{"operationId":"post__extract","summary":"Extract proxies with POST and an account token","description":"Authenticate with an account API token or a legacy API Link. The actual source IPv4 address must be enabled in your allowlist. Extraction checks identity verification and an entitlement matching the protocol. These GET and POST endpoints use a compatibility format and do not support session, state, province, or city parameters.","parameters":[],"x-doc-path":"/developers/api/api-key-extract-post","x-auth-notes":"Use HTTPS. You can authenticate with the same token in the api_key query parameter, X-API-Key, or Authorization: Bearer. Conflicting values are rejected. The actual source address must still be allowlisted.","x-response-notes":"Responses omit internal fields and proxy passwords. Extraction succeeds with HTTP 200 and code 0. Allowlist and country catalog requests use code 200 for success. Extraction POST errors use code and message. Successful country catalog responses omit requestId.","x-retry-notes":"Reuse the original requestId or request_id if a request is interrupted. Use X-Proxy-Requested-Count, X-Proxy-Returned-Count, and X-Proxy-Partial to detect partial results. Wait as directed by Retry-After if resources are unavailable. Country catalog reads can be retried a limited number of times.","x-errors":[{"http":"200","code":"10000","description":"Invalid business parameters. Check the business code even if HTTP status is 200."},{"http":"401","code":"10009","description":"Invalid authentication token"},{"http":"429","code":"10000","description":"Rate limit exceeded. Wait as directed by Retry-After."}],"responses":{"200":{"description":"Success or a per-item batch result. Check the business code as well as the HTTP status.","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"integer","description":"The compatibility success code is 0. The Static Residential API uses 200.","const":0},"success":{"type":"boolean","description":"Success flag.","const":true},"msg":{"type":"string","description":"Response message."},"data":{"type":"array","description":"Response data for this endpoint.","items":{"type":"object","properties":{"ip":{"type":"string","description":"Proxy gateway IP address or hostname."},"port":{"type":"integer","description":"Proxy gateway port."}},"required":["ip","port"],"additionalProperties":false}},"request_ip":{"type":"string","description":"Actual source IPv4 address identified by the server."}},"required":["code","success","msg","data","request_ip"],"additionalProperties":false},"examples":{"success":{"value":{"code":0,"success":true,"msg":"Successfully obtained","data":[{"ip":"203.0.113.20","port":7878}],"request_ip":"198.51.100.10"}}}}}},"default":{"description":"Authentication error example. Check both HTTP status and the business code.","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"integer","description":"Numeric business error code."},"message":{"type":"string","description":"Error description."}},"required":["code","message"],"additionalProperties":false},"examples":{"error":{"value":{"code":10009,"message":"Invalid API token"}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string","description":"Optional client request ID. Reuse the same ID after a network interruption."},"entitlementId":{"type":"integer","description":"Optional entitlement ID in the current account. The server selects an entitlement if omitted."},"whitelistId":{"type":"integer","description":"Optional allowlist entry ID in the current account. The actual source address must still match."},"quantity":{"type":"integer","description":"Number of proxies to request, from 1 to 100.","minimum":1,"maximum":100},"protocol":{"type":"string","description":"Proxy protocol.","enum":["HTTP","HTTPS","SOCKS5"]},"country":{"type":"string","description":"Country code. Omit to use global coverage.","default":"GLOBAL"},"agreementConfirmed":{"type":"boolean","description":"Confirm which protocol to use.","const":true}},"required":["quantity","protocol","agreementConfirmed"],"additionalProperties":false},"examples":{"request":{"summary":"Request example","value":{"requestId":"extract-demo-001","quantity":1,"protocol":"HTTP","country":"GLOBAL","agreementConfirmed":true}}}}}},"x-codeSamples":[{"lang":"Shell","label":"cURL","source":"curl --request POST \\\n  \"https://api.zzhttp.com/openapi/v1/proxy/extract?api_key=${API_KEY}\" \\\n  --header 'Content-Type: application/json' \\\n  --data '{\"requestId\":\"extract-demo-001\",\"quantity\":1,\"protocol\":\"HTTP\",\"country\":\"GLOBAL\",\"agreementConfirmed\":true}'"}],"security":[{"AccountAPIKey":[]},{"HeaderAPIKey":[]},{"BearerAPIKey":[]}],"x-auth-query-required":false}},"/countries":{"get":{"operationId":"get__countries","summary":"List countries for the dynamic proxy API","description":"List countries and currently available stable ports for the dynamic proxy API. Token authentication alone does not satisfy the source allowlist and entitlement requirements for extraction.","parameters":[],"x-doc-path":"/developers/api/api-countries","x-auth-notes":"Use HTTPS. You can authenticate with the same token in the api_key query parameter, X-API-Key, or Authorization: Bearer. Conflicting values are rejected. The actual source address must still be allowlisted.","x-response-notes":"Responses omit internal fields and proxy passwords. Extraction succeeds with HTTP 200 and code 0. Allowlist and country catalog requests use code 200 for success. Extraction POST errors use code and message. Successful country catalog responses omit requestId.","x-retry-notes":"Retry transient catalog read errors a limited number of times. On HTTP 429, wait as directed by Retry-After.","x-errors":[{"http":"200","code":"10000","description":"Invalid business parameters. Check the business code even if HTTP status is 200."},{"http":"401","code":"10009","description":"Invalid authentication token"},{"http":"429","code":"10000","description":"Rate limit exceeded. Wait as directed by Retry-After."}],"responses":{"200":{"description":"Success or a per-item batch result. Check the business code as well as the HTTP status.","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"integer","description":"Success uses 200. Any item failure in an allowlist batch produces 10431."},"message":{"type":"string","description":"Response message."},"data":{"type":"array","description":"Response data for this endpoint.","items":{"type":"object","properties":{"countryRouteId":{"type":"integer","description":"Public country route ID."},"countryCode":{"type":"string","description":"Use this country code for regional extraction. GLOBAL means worldwide."},"countryName":{"type":"string","description":"Country display name."},"availableCount":{"type":"integer","description":"Number of stable ports currently available. This does not count proxy exits in stock."}},"required":["countryRouteId","countryCode","countryName","availableCount"],"additionalProperties":false}}},"required":["code","message","data"],"additionalProperties":false},"examples":{"success":{"value":{"code":200,"message":"Query succeeded","data":[{"countryRouteId":1,"countryCode":"USA","countryName":"United States","availableCount":20}]}}}}}},"default":{"description":"Authentication error example. Check both HTTP status and the business code.","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"integer","description":"Numeric business error code."},"success":{"type":"boolean","description":"Failure flag.","const":false},"msg":{"type":"string","description":"Error description."}},"required":["code","success","msg"],"additionalProperties":false},"examples":{"error":{"value":{"code":10009,"success":false,"msg":"Invalid API token"}}}}}}},"x-codeSamples":[{"lang":"Shell","label":"cURL","source":"curl --request GET \\\n  \"https://api.zzhttp.com/openapi/v1/proxy/countries?api_key=${API_KEY}\""}],"security":[{"AccountAPIKey":[]},{"HeaderAPIKey":[]},{"BearerAPIKey":[]}],"x-auth-query-required":false}}}}