Public API Metadata

The /.well-known endpoint is a public metadata endpoint designed to help clients, SDKs, and integrations automatically discover important configuration information about your API.

By accessing this endpoint, developers and tools can programmatically retrieve:

  • The base URL for API requests (api_base_url)

  • The supported API versions (supported_api_versions) and default version (default_api_version)

  • The current API release version (version)

  • The environment (e.g., dev, staging, prod)

  • A public key or certificate for secure communications (pub_key)

  • A list of available API endpoints and their HTTP methods (endpoints)

This eliminates the need for manual configuration or hardcoding these values into client applications. This endpoint is publicly accessible and requires no authentication.

circle-info

Use Case Example: When a new SDK initializes, it can first call /.well-known to learn the API base URL, supported versions, and endpoints, ensuring that all requests are correctly configured without requiring manual updates in the code.

Endpoint

  • Method: GET

  • URL: /api/v4/.well-known

  • Description: Returns static or generated JSON with environment, version, and endpoint details.

Example responses

Response fields

  • api_base_url (string, optional) — Base URL for the API.

  • supported_api_versions (array, optional) — List of API versions supported.

  • default_api_version (string, optional) — Default API version to use.

  • version (string, optional) — Current API release version.

  • environment (string, optional) — Current environment (e.g., dev, staging, prod).

  • timestamp (string, optional) — UTC timestamp when the response was generated (ISO-8601 UTC).

  • pub_key (string, optional) — Public certificate/key for API communication.

  • endpoints (array, optional) — List of all available API endpoints with method and path.

circle-check

Last updated

Was this helpful?