Common conventions for the OpenAPI: endpoints, naming, time, pagination, errors, and authentication.These conventions apply to all OpenAPI endpoints. Endpoint-specific rules take precedence where documented.
Enterprise VPC customers must use the Base URL of their dedicated instance:
Copy
https://{instance-id}-api.vpc.qoder.com.cn
{instance-id} is the unique identifier of the dedicated enterprise instance. For example, an instance identified as acme uses https://acme-api.vpc.qoder.com.cn.
Find this domain on the domain configuration page in the Enterprise VPC instance console. Only the Base URL differs from the public edition; paths, request parameters, and authentication remain the same.
Unless an endpoint is explicitly documented as public and unauthenticated, include this HTTP header:
Copy
Authorization: Bearer <api_key>
Replace api_key with a key created in the console. Never embed a real key in a publicly decompilable client package or public repository. For instructions, see Obtain API Key.The Domains and Egress IPs endpoint (GET /v1/public/meta) requires no API key or organization ID and accepts no query parameters (including pagination parameters) or request body.
organization_id is the path parameter identifying the target organization. See the member, group, billing group, model, usage, and AI code metrics documentation for endpoint-specific subpaths.