Authentication
Last updated on
Authentication
Section titled “Authentication”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.
Obtain an Access Token
Section titled “Obtain an Access Token”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}