API quickstart
Last updated on
The STACKIT Domain Services API is a RESTful interface that allows you to automate the management of your domains, DNS zones, and associated resources.
This guide shows you how to gain access to the testing environment, generate your authentication token, and retrieve your organization ID.
Request access to the testing environment
Section titled “Request access to the testing environment”We recommend starting your development in the Operational Testing Environment (OTE). The OTE is a replica of the production system that does not run real, fee-based domain orders.
- Send an email to
domainservices@stackit.cloudto request access. - Include the subject line “API Zugang für OTE System anfordern”.
- Provide the email addresses of all team members who require access.
Generate an access token
Section titled “Generate an access token”The API uses JSON Web Tokens (JWT) for authorization. You must exchange your credentials for an access token before you can call any protected endpoints.
- Send a
POSTrequest to the token endpoint. For the OTE environment, usehttps://api.ote.domains.stackit.cloud/api/access-control/token. - Include your portal email address and password in the request body.
{"email": "YOUR_PORTAL_EMAIL_ADDRESS","password": "YOUR_PASSWORD"}
- Extract the
access_tokenfrom the response.
Retrieve your organization ID
Section titled “Retrieve your organization ID”Almost all API endpoints require an organizationId as a path parameter. You must retrieve this ID using your access token.
- Send a
GETrequest to the organizations endpoint:https://publicapi.ote.domains.stackit.cloud/api/v1/organizations. - Add your token to the HTTP header using the
Authorization: Bearer <JWT_TOKEN>format. - Copy the
organizationIdfrom the JSON response.
You are now ready to use this ID to automate tasks such as checking domain availability, creating DNS zones, or managing resource records.