Skip to content

Authentication

Last updated on

The STACKIT Domain Services API uses JSON Web Tokens (JWT) for authorization. To access protected resources, you must first generate an access token and include it in the HTTP header of every subsequent request.

To get a token, send a POST request to the authentication endpoint with your portal credentials.

Endpoint: POST /api/access-control/token
Content-Type: application/json

Request Body:

{
"email": "YOUR_PORTAL_EMAIL_ADDRESS",
"password": "YOUR_PASSWORD"
}

Example Response:

{
"access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
"token_type": "Bearer",
"expires_in": 3600
}