Skip to Content
SDKsOther language SDKs

Other language SDKs

Clients for PHP, Ruby, Java, C#, Go, and Rust are built from the same public OpenAPI schema as the Python and TypeScript SDKs, at version 0.6.0. Each has a generated client covering every public operation, plus a small helper that adds the API key, retries and typed errors.

Warning

None of these are published

No PHP, Ruby, Java, C#, Go, or Rust Indox package is available from a registry yet, so composer require, gem install, a Maven/NuGet dependency, go get, and cargo add will not resolve. See the SDK status table.

Packages and clients

All helpers read INDOX_API_KEY and INDOX_BASE_URL (default https://indox.org), or take the token and base URL as arguments. For the six account operations, build a second client with the sign-in access token in place of the key.

LanguagePackageClient from the environmentClient from a token
PHPindox/indoxIndox\IndoxClient::fromEnv()new Indox\IndoxClient($token, $baseUrl)
RubyindoxIndoxClient::Client.newIndoxClient::Client.new(api_key: token, base_url: url)
Javaorg.indox:indox-sdkIndoxClient.fromEnv()new IndoxClient(token, baseUrl)
C# / .NETIndox.Sdknew IndoxClient()new IndoxClient(token, baseUrl)
Gogithub.com/nematiai/indox-goindox.NewFromEnv()indox.New(token, baseURL)
Rustindox-sdkindox_sdk::Indox::from_env()?Indox::new(token, base_url)?

Retries

Retrying follows the shared policy, and the typed errors are listed in Errors.

LanguageWhere retries happenTune or turn off
PHPIndoxClient::request only; the generated classes use their own Guzzle clientnew IndoxClient($key, $baseUrl, maxRetries: 5, maxRetryWait: 30.0)
RubyClient#request only; the generated client uses TyphoeusClient.new(max_retries: 5, max_retry_wait: 30.0)
JavaIndoxClient.request only; the generated ApiClient does not retrynew IndoxClient(key, baseUrl, maxRetries, maxRetryWait)
C# / .NETAny generated API class given c.CreateHttpClient()new IndoxClient(maxRetries: 5, maxRetryWait: TimeSpan.FromSeconds(30))
Goindox.Transport; give the generated client cfg.HTTPClient = c.HTTPc.HTTP.Transport.(*indox.Transport).MaxRetries = 0
RustIndox::request only; the generated functions take a plain reqwest::ClientIndox::new(..)?.with_retries(5, Duration::from_secs(30))

In every language, 0 retries turns retrying off.

Upgrading from 0.5

The API changes every client inherits are in Upgrading from 0.5. Language changes:

  • The helpers now raise or return an error for every status of 400 or above: Go Get/Do, .NET CreateHttpClient(), Ruby request/get/health, Rust get_json/health. IndoxClient.request (Java), IndoxClient::request (PHP), and Indox::new and request (Rust) are new.
  • POST /user/me/email-change/ is not in the generated clients yet; call it through the helper.
  • The signing OTP route is generated as AppsPdfHandlerViewsSigningOtpViewsRequestOtp (Go, .NET), appsPdfHandlerViewsSigningOtpViewsRequestOtp (Java, PHP) and apps_pdf_handler_views_signing_otp_views_request_otp (Ruby, Rust).

Until they ship, call the API directly

Each client is a thin wrapper over the same REST endpoints, so no functionality is gated on the packages. Create an API key under Dashboard → API keys and send it as a bearer token against https://indox.org:

curl -sS https://indox.org/api/v1/health/ \ -H "Authorization: Bearer $INDOX_API_KEY" \ -H "Accept: application/json"

The API reference lists every public endpoint, request shape, and response schema, enough to write a client in any language with an HTTP library.