Download OpenAPI specification:Download
Use the Auth API to manage tokens for secure access to IONOS Cloud APIs (Auth API, Cloud API, Reseller API, Activity Log API, and others).
Users can generate new tokens (JWT or JSON Web Token). By default, new tokens are linked to the user’s contract. Users with multiple contracts must provide the contract number, for which the token is generated, in the X-Contract-Number
header; otherwise, an error response is returned.
To access this endpoint, 'Basic Authentication' or 'Token Authentication' tokens with valid credentials must be encapsulated in the header, by users with one or with multiple contracts.
ttl | integer <int32> [ 60 .. 31536000 ] Default: 31536000 The maximum time that the access token will be valid for use within the application in seconds. |
X-Contract-Number | integer <int32> Users with multiple contracts must provide the contract number, for which the token is generated. |
{- "token": "string"
}
List the details of all tokens, generated by the user. To access this endpoint, 'Basic Authentication' or 'Token Authentication' tokens with valid credentials must be encapsulated in the header. Users with multiple contracts must also provide a valid contract number in the X-Contract-Number
header.
X-Contract-Number | integer <int32> Users with multiple contracts must provide the contract number, for which the token is generated. |
{- "tokens": [
- {
- "id": "string",
- "href": "string",
- "createdDate": "string",
- "expirationDate": "string"
}
]
}
Delete one or multiple tokens by the required criteria
parameter values: ALL
, EXPIRED
and CURRENT
. With parameter values ALL
and EXPIRED
, 'Basic Authentication' or 'Token Authentication' tokens with valid credentials must be encapsulated in the header.
CURRENT
, only the 'Token Authentication' with valid credentials is required. Users with multiple contracts must also provide a valid contract number in the X-Contract-Number
header.
criteria required | string Delete tokens by criteria EXPIRED, ALL, or CURRENT. The tokens are deleted for the specified contract. |
X-Contract-Number | integer <int32> Users with multiple contracts must provide the contract number, for which the token is generated. |
{- "success": true
}
Retrieve the details for a token by the Key ID (tokenId
). To access this endpoint, 'Basic Authentication' or 'Token Authentication' tokens with valid credentials must be encapsulated in the header. Users with multiple contracts must also provide a valid contract number in the X-Contract-Number
header.
tokenId required | string The Key ID of the token (can be retrieved from the header section of the token). |
X-Contract-Number | integer <int32> Users with multiple contracts must provide the contract number, for which the token is generated. |
{- "id": "string",
- "href": "string",
- "createdDate": "string",
- "expirationDate": "string"
}
Delete a token by Key ID (tokenId
). To access the endpoint, 'Basic Authentication' or 'Token Authentication' tokens with valid credentials must be encapsulated in the header.
tokenId required | string The Key ID of the token (can be retrieved from the header section of the token). |
X-Contract-Number | integer <int32> Users with multiple contracts must provide the contract number, for which the token is generated. |
{- "success": true
}