Page cover

Guides, API reference, SDKs, tutorials, and support resources to integrate, build, and scale with our platform.

sparkle

Browse by category

Get started in 5 minutes

Setting up your first API call should be the easiest part of getting started. With clear endpoints, copy-paste-ready examples, and quick authentication, you’ll be up and running in minutes, not hours.

No guesswork, no complexity, just your first successful call, fast.

rocket-launchGet started terminalAPI reference wrenchSDKs & tools

circle-info

The examples below call the Cloud API: GET /cloudapi/v6/datacenters.

Quick test (cURL)
# Credentials for Basic auth (username + password)
export IONOS_USERNAME="your-username"
export IONOS_PASSWORD="your-password"

# 1) Generate an access token
export IONOS_ACCESS_TOKEN="$(
  curl --silent --request GET "https://api.ionos.com/auth/v1/tokens/generate" \
    --user "$IONOS_USERNAME:$IONOS_PASSWORD" \
  | jq -r '.token'
)"

# 2) Make your first request
curl --request GET "https://api.ionos.com/cloudapi/v6/datacenters" \
  --header "Authorization: Bearer $IONOS_ACCESS_TOKEN"
circle-exclamation

SDK examples

All SDK examples assume you have already IONOS_ACCESS_TOKEN exported.

node-js Node.js

index.mjs
const res = await fetch("https://api.ionos.com/cloudapi/v6/datacenters", {
  headers: { Authorization: `Bearer ${process.env.IONOS_ACCESS_TOKEN}` },
});

if (!res.ok) throw new Error(await res.text());
console.log(await res.json());