Skip to content

Authentication

Altoviz API access are secured by :

  • a TLS connection using a Sectigo Limited certificate with an RSA key length of 2048-bit
  • an API key authentication mecanism

API keys are centralized in the Altoviz application itself. Go to the Settings, API access. Here is a direct shortcut https://app.altoviz.com/go/settings/apis.

You can create a new API key or re-generate an existing one.

Create a new Altoviz API key using the app

Every HTTP request must have a header named x-api-key with a valid API key.

Get information about the API server
curl -H "x-api-key:cddb5157-12be-42a9-985a-4501c6e6e2fa" https://api.altoviz.com/hello

Basic authentication is also supported using apikey as user and the API key as password.

Get information about the API server
curl -u "apikey:cddb5157-12be-42a9-985a-4501c6e6e2fa" https://api.altoviz.com/hello

In case you really can’t use a header, you can send the API key using a parameter named apikey. We discourage this method by default as the API key appear in logs, web analytics service or caches.

Get information about the API server using API key by parameter
curl https://api.altoviz.com/hello?apikey=cddb5157-12be-42a9-985a-4501c6e6e2fa

Great, you just made your first Altoviz API call ! 🥳